Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-reese84
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangmingming
lcc-reese84
Commits
003b9702
Commit
003b9702
authored
Oct 24, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
45b4c348
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
33 deletions
+20
-33
main.py
src/main.py
+18
-26
reese84_bypass.py
src/reese84_bypass.py
+1
-6
vm_env.js
src/vm_env.js
+1
-1
No files found.
src/main.py
View file @
003b9702
import
json
import
os
import
time
import
uuid
from
concurrent.futures
import
ThreadPoolExecutor
,
wait
,
ALL_COMPLETED
import
tls_client
import
logging
import
logging
import
pathlib
import
time
import
traceback
import
traceback
from
threading
import
Thread
import
uuid
from
concurrent.futures
import
ThreadPoolExecutor
import
requests
import
requests
from
reese84_bypass
import
Reese84ByPass
import
pathlib
from
reese84_bypass
import
Reese84ByPass
root_logger
=
logging
.
getLogger
()
root_logger
=
logging
.
getLogger
()
...
@@ -24,15 +21,18 @@ def check_pull():
...
@@ -24,15 +21,18 @@ def check_pull():
get_url
=
'http://ymx-lcc.unififi.com/header/task/pull/cookieY4?brush_name=test'
get_url
=
'http://ymx-lcc.unififi.com/header/task/pull/cookieY4?brush_name=test'
r
=
requests
.
get
(
get_url
)
r
=
requests
.
get
(
get_url
)
return
r
.
json
()
return
r
.
json
()
def
get_proxy
():
def
get_proxy
():
get_proxy_url
=
'http://ymx-lcc.unififi.com/proxy/get-proxy'
get_proxy_url
=
'http://ymx-lcc.unififi.com/proxy/get-proxy'
r
=
requests
.
post
(
get_proxy_url
,
json
=
{
r
=
requests
.
post
(
get_proxy_url
,
json
=
{
'name'
:
'
Y4
'
,
'name'
:
'
TR
'
,
'type'
:
'shopping'
'type'
:
'shopping'
})
})
return
r
.
json
()
return
r
.
json
()
def
add_header
(
headers
:
dict
,
cookies
:
dict
,
px
:
str
,
thread_id
=
0
):
def
add_header
(
headers
:
dict
,
cookies
:
dict
,
px
:
str
,
thread_id
=
0
):
cks
=
[]
cks
=
[]
for
k
,
v
in
cookies
.
items
():
for
k
,
v
in
cookies
.
items
():
cks
.
append
(
f
'{k}={v}'
)
cks
.
append
(
f
'{k}={v}'
)
...
@@ -41,17 +41,19 @@ def add_header(headers:dict, cookies: dict, px: str, thread_id=0):
...
@@ -41,17 +41,19 @@ def add_header(headers:dict, cookies: dict, px: str, thread_id=0):
"brush_fromdate"
:
"2023-06-19"
,
"brush_fromdate"
:
"2023-06-19"
,
"brush_fromto"
:
"BOS-JFK"
,
"brush_fromto"
:
"BOS-JFK"
,
"brush_header"
:
headers
,
"brush_header"
:
headers
,
"brush_name"
:
f
"rever_{thread_id}"
,
"brush_name"
:
f
"rever
se
_{thread_id}"
,
"brush_proxy"
:
px
,
"brush_proxy"
:
px
,
"brush_type"
:
"cookie
Y4
"
"brush_type"
:
"cookie
TR
"
}
}
r
=
requests
.
post
(
"http://ymx-lcc.unififi.com/header/add"
,
json
=
data
)
r
=
requests
.
post
(
"http://ymx-lcc.unififi.com/header/add"
,
json
=
data
)
print
(
r
.
json
())
print
(
r
.
json
())
def
exec
(
thread_id
):
def
exec
(
thread_id
):
id_
=
uuid
.
uuid4
()
.
hex
id_
=
uuid
.
uuid4
()
.
hex
try
:
try
:
px
=
get_proxy
()[
'url'
]
px
=
get_proxy
()[
'url'
]
cf
=
Reese84ByPass
(
target
=
"https://www.
volaris
.com/"
,
proxy
=
px
,
thread_name
=
f
'{thread_id}'
)
cf
=
Reese84ByPass
(
target
=
"https://www.
flyscoot
.com/"
,
proxy
=
px
,
thread_name
=
f
'{thread_id}'
)
headers
,
cookies
=
cf
.
start
()
headers
,
cookies
=
cf
.
start
()
# cf.test()
# cf.test()
add_header
(
headers
,
cookies
,
px
,
thread_id
)
add_header
(
headers
,
cookies
,
px
,
thread_id
)
...
@@ -61,6 +63,7 @@ def exec(thread_id):
...
@@ -61,6 +63,7 @@ def exec(thread_id):
print
(
e
)
print
(
e
)
traceback
.
print_exc
()
traceback
.
print_exc
()
def
run
():
def
run
():
brush_thread
=
1
brush_thread
=
1
while
True
:
while
True
:
...
@@ -93,16 +96,5 @@ def run():
...
@@ -93,16 +96,5 @@ def run():
objs
[
n
]
=
task
objs
[
n
]
=
task
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
run
()
run
()
src/reese84_bypass.py
View file @
003b9702
...
@@ -37,7 +37,7 @@ class Reese84ByPass(object):
...
@@ -37,7 +37,7 @@ class Reese84ByPass(object):
self
.
_init
()
self
.
_init
()
self
.
_repare_js
()
self
.
_repare_js
()
self
.
__auth_token
()
self
.
__auth_token
()
self
.
_test
()
#
self._test()
# time.sleep(random.randint(3,5))
# time.sleep(random.randint(3,5))
# self.__get_session_token()
# self.__get_session_token()
...
@@ -79,7 +79,6 @@ class Reese84ByPass(object):
...
@@ -79,7 +79,6 @@ class Reese84ByPass(object):
datas
=
output
.
decode
()
.
split
(
'
\n
'
)
datas
=
output
.
decode
()
.
split
(
'
\n
'
)
else
:
else
:
raise
Exception
(
"执行 JS 超时"
)
raise
Exception
(
"执行 JS 超时"
)
print
(
filename
)
self
.
log
.
log
(
'VMJS'
,
f
'执行JS: cost:{(time.time() - t2):.3f}s'
)
self
.
log
.
log
(
'VMJS'
,
f
'执行JS: cost:{(time.time() - t2):.3f}s'
)
data
=
json
.
loads
(
open
(
filename
,
'r'
)
.
read
())
data
=
json
.
loads
(
open
(
filename
,
'r'
)
.
read
())
...
@@ -134,8 +133,6 @@ class Reese84ByPass(object):
...
@@ -134,8 +133,6 @@ class Reese84ByPass(object):
url
=
"https://ibe.api.flyscoot.com/v1/account/anonymous"
url
=
"https://ibe.api.flyscoot.com/v1/account/anonymous"
response
=
self
.
_session
.
get
(
url
,
headers
=
headers
)
response
=
self
.
_session
.
get
(
url
,
headers
=
headers
)
print
(
response
.
text
)
print
(
response
)
self
.
_token
=
response
.
json
()[
'data'
][
'accessToken'
]
self
.
_token
=
response
.
json
()[
'data'
][
'accessToken'
]
self
.
log
.
log
(
'REQU'
,
f
'__auth_token: code:{response.status_code} cost:{(time.time() - t1):.3f}s'
)
self
.
log
.
log
(
'REQU'
,
f
'__auth_token: code:{response.status_code} cost:{(time.time() - t1):.3f}s'
)
...
@@ -227,8 +224,6 @@ class Reese84ByPass(object):
...
@@ -227,8 +224,6 @@ class Reese84ByPass(object):
data
=
json
.
dumps
(
data
,
separators
=
(
','
,
':'
))
data
=
json
.
dumps
(
data
,
separators
=
(
','
,
':'
))
response
=
self
.
_session
.
post
(
url
,
headers
=
headers
,
data
=
data
)
response
=
self
.
_session
.
post
(
url
,
headers
=
headers
,
data
=
data
)
print
(
response
.
text
)
print
(
response
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
src/vm_env.js
View file @
003b9702
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment