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
e4f58eaf
Commit
e4f58eaf
authored
Nov 09, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a6d1fdca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
12 deletions
+23
-12
reese84_bypass.py
src/reese84_bypass.py
+22
-11
vm_env.js
src/vm_env.js
+1
-1
No files found.
src/reese84_bypass.py
View file @
e4f58eaf
import
hashlib
import
json
import
json
import
platform
import
platform
import
random
import
subprocess
import
subprocess
import
tempfile
import
time
import
time
from
pathlib
import
Path
from
pathlib
import
Path
import
tempfile
import
requests
import
tls_client
import
tls_client
from
loguru
import
logger
from
loguru
import
logger
...
@@ -21,6 +20,10 @@ if platform.platform().startswith('mac'):
...
@@ -21,6 +20,10 @@ if platform.platform().startswith('mac'):
Path
(
log_dir
)
.
mkdir
(
exist_ok
=
True
,
parents
=
True
)
Path
(
log_dir
)
.
mkdir
(
exist_ok
=
True
,
parents
=
True
)
Path
(
work_dir
)
.
mkdir
(
exist_ok
=
True
,
parents
=
True
)
Path
(
work_dir
)
.
mkdir
(
exist_ok
=
True
,
parents
=
True
)
def
md5
(
text
):
m
=
hashlib
.
md5
()
m
.
update
(
text
.
encode
())
return
m
.
hexdigest
()
class
Reese84ByPass
(
object
):
class
Reese84ByPass
(
object
):
_session
=
tls_client
.
Session
(
'chrome_112'
)
_session
=
tls_client
.
Session
(
'chrome_112'
)
...
@@ -36,9 +39,10 @@ class Reese84ByPass(object):
...
@@ -36,9 +39,10 @@ class Reese84ByPass(object):
Path
(
log_dir
)
.
joinpath
(
thread_name
)
.
mkdir
(
exist_ok
=
True
,
parents
=
True
)
Path
(
log_dir
)
.
joinpath
(
thread_name
)
.
mkdir
(
exist_ok
=
True
,
parents
=
True
)
self
.
log
=
logger
.
bind
(
module_name
=
thread_name
)
self
.
log
=
logger
.
bind
(
module_name
=
thread_name
)
self
.
log
.
info
(
f
'proxy:{proxy} target:{target}'
)
self
.
log
.
info
(
f
'proxy:{proxy} target:{target}'
)
self
.
_cache_md5
=
''
def
start
(
self
):
def
start
(
self
):
self
.
_init
()
#
self._init()
self
.
_repare_js
()
self
.
_repare_js
()
self
.
__auth_token
()
self
.
__auth_token
()
# self._test()
# self._test()
...
@@ -69,14 +73,20 @@ class Reese84ByPass(object):
...
@@ -69,14 +73,20 @@ class Reese84ByPass(object):
def
_repare_js
(
self
):
def
_repare_js
(
self
):
t1
=
time
.
time
()
t1
=
time
.
time
()
r1
=
self
.
_session
.
get
(
'https://beta.makeabooking.flyscoot.com/Two-discharted-Not-ere-int-when-is-are-Poss-A-Sa'
)
r1
=
self
.
_session
.
get
(
'https://beta.makeabooking.flyscoot.com/Two-discharted-Not-ere-int-when-is-are-Poss-A-Sa'
)
self
.
log
.
log
(
'REQU'
,
f
'JSURL: code:{r1.status_code} cost:{(time.time() - t1):.3f}s'
)
self
.
log
.
log
(
'REQU'
,
f
'JSURL: code:{r1.status_code} cost:{(time.time() - t1):.3f}s'
)
a
,
filename
=
tempfile
.
mkstemp
()
a
,
filename
=
tempfile
.
mkstemp
()
cache_md5
=
md5
(
r1
.
text
)
if
self
.
_cache_md5
!=
cache_md5
:
self
.
_cache_md5
=
cache_md5
self
.
log
.
log
(
'VMJS'
,
f
'JS变化'
)
envCode
=
open
(
work_dir
+
'src/run.js'
,
'r'
)
.
read
()
envCode
=
open
(
work_dir
+
'src/run.js'
,
'r'
)
.
read
()
with
open
(
work_dir
+
'src/vm_env.js'
,
'w'
)
as
f
:
with
open
(
work_dir
+
'src/vm_env.js'
,
'w'
)
as
f
:
f
.
write
(
envCode
+
r1
.
text
)
f
.
write
(
envCode
+
r1
.
text
)
t2
=
time
.
time
()
t2
=
time
.
time
()
p
=
subprocess
.
Popen
([
'node'
,
f
'{work_dir}src/vm_env.js'
,
filename
],
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
p
=
subprocess
.
Popen
([
'node'
,
f
'{work_dir}src/vm_env.js'
,
filename
],
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
stderr
=
subprocess
.
PIPE
)
output
,
err
=
p
.
communicate
(
timeout
=
10
)
output
,
err
=
p
.
communicate
(
timeout
=
10
)
if
p
.
returncode
==
0
:
if
p
.
returncode
==
0
:
...
@@ -84,7 +94,7 @@ class Reese84ByPass(object):
...
@@ -84,7 +94,7 @@ class Reese84ByPass(object):
else
:
else
:
raise
Exception
(
"执行 JS 超时"
)
raise
Exception
(
"执行 JS 超时"
)
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
())
# print(len(data['solution']['interrogation']['p']))
# print(len(data['solution']['interrogation']['p']))
t3
=
time
.
time
()
t3
=
time
.
time
()
...
@@ -245,4 +255,5 @@ class Reese84ByPass(object):
...
@@ -245,4 +255,5 @@ class Reese84ByPass(object):
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
# r = Reese84ByPass('https://www.flyscoot.com/', 'http://user-uni002-region-de:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600')
# r = Reese84ByPass('https://www.flyscoot.com/', 'http://user-uni002-region-de:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600')
r
=
Reese84ByPass
(
'https://www.flyscoot.com/'
,
'http://127.0.0.1:8890'
)
r
=
Reese84ByPass
(
'https://www.flyscoot.com/'
,
'http://127.0.0.1:8890'
)
while
True
:
print
(
r
.
start
())
print
(
r
.
start
())
src/vm_env.js
View file @
e4f58eaf
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