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
80010ded
Commit
80010ded
authored
May 09, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
af920e63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
21 deletions
+22
-21
reese84_bypass.py
src/reese84_bypass.py
+21
-20
run.js
src/run.js
+1
-1
No files found.
src/reese84_bypass.py
View file @
80010ded
import
hashlib
import
hashlib
import
json
import
json
import
platform
import
platform
import
random
import
subprocess
import
subprocess
import
tempfile
import
tempfile
import
time
import
time
from
pathlib
import
Path
from
pathlib
import
Path
import
requests
# import tls_client
# import tls_client
# from curl_cffi import requests
# from curl_cffi import requests
import
urllib3
import
urllib3
import
requests
urllib3
.
disable_warnings
()
urllib3
.
disable_warnings
()
from
loguru
import
logger
from
loguru
import
logger
...
@@ -86,8 +86,8 @@ class Reese84ByPass(object):
...
@@ -86,8 +86,8 @@ class Reese84ByPass(object):
self
.
_session
.
cookies
.
clear
()
self
.
_session
.
cookies
.
clear
()
t1
=
time
.
time
()
t1
=
time
.
time
()
r1
=
self
.
_session
.
get
(
r1
=
self
.
_session
.
get
(
'https://
www.flyscoot.com/g-Then-And-meeting-beding-O-Scena-Quarre-allowt-
'
)
'https://
booking.flyscoot.com/xildrong-in-I-confusing-freene-of-Duncannothin-b
'
)
self
.
log
.
log
(
'REQU'
,
f
'jsURL:
{"https://makeabooking.flyscoot.com/rtaliuery-Doct-The-Then-throngling-Was-Son-Hes-I"}
'
)
self
.
log
.
log
(
'REQU'
,
f
'jsURL:
https://booking.flyscoot.com/xildrong-in-I-confusing-freene-of-Duncannothin-b
'
)
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'
)
cache_md5
=
md5
(
r1
.
text
)
cache_md5
=
md5
(
r1
.
text
)
if
self
.
_cache_md5
!=
cache_md5
:
if
self
.
_cache_md5
!=
cache_md5
:
...
@@ -112,21 +112,22 @@ class Reese84ByPass(object):
...
@@ -112,21 +112,22 @@ class Reese84ByPass(object):
# print(len(data['solution']['interrogation']['p']))
# print(len(data['solution']['interrogation']['p']))
t3
=
time
.
time
()
t3
=
time
.
time
()
url
=
"https://
www.flyscoot.com/g-Then-And-meeting-beding-O-Scena-Quarre-allowt-?d=www
.flyscoot.com"
url
=
"https://
booking.flyscoot.com/xildrong-in-I-confusing-freene-of-Duncannothin-b?d=booking
.flyscoot.com"
response
=
self
.
_session
.
post
(
url
,
headers
=
{
response
=
self
.
_session
.
post
(
url
,
headers
=
{
"Host"
:
"www.flyscoot.com"
,
"authority"
:
"booking.flyscoot.com"
,
"sec-ch-ua"
:
"
\"
Google Chrome
\"
;v=
\"
120
\"
,
\"
Not;A=Brand
\"
;v=
\"
8
\"
,
\"
Chromium
\"
;v=
\"
120
\"
"
,
"accept"
:
"application/json; charset=utf-8"
,
"Accept"
:
"application/json; charset=utf-8"
,
"accept-language"
:
"en"
,
"sec-ch-ua-platform"
:
"
\"
macOS
\"
"
,
"cache-control"
:
"no-cache"
,
"Content-Type"
:
"text/plain; charset=utf-8"
,
"content-type"
:
"text/plain; charset=utf-8"
,
"origin"
:
"https://booking.flyscoot.com"
,
"pragma"
:
"no-cache"
,
"sec-ch-ua"
:
"
\"
Not_A Brand
\"
;v=
\"
8
\"
,
\"
Chromium
\"
;v=
\"
120
\"
,
\"
Google Chrome
\"
;v=
\"
120
\"
"
,
"sec-ch-ua-mobile"
:
"?0"
,
"sec-ch-ua-mobile"
:
"?0"
,
"User-Agent"
:
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
,
"sec-ch-ua-platform"
:
"
\"
macOS
\"
"
,
"Origin"
:
"https://www.flyscoot.com"
,
"sec-fetch-dest"
:
"empty"
,
"Sec-Fetch-Site"
:
"same-origin"
,
"sec-fetch-mode"
:
"cors"
,
"Sec-Fetch-Mode"
:
"cors"
,
"sec-fetch-site"
:
"same-origin"
,
"Sec-Fetch-Dest"
:
"empty"
,
"user-agent"
:
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
"Referer"
:
"https://www.flyscoot.com/en/"
,
"Accept-Language"
:
"en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6"
},
json
=
data
)
},
json
=
data
)
self
.
log
.
log
(
'REQU'
,
f
'JSURL: code:{response.status_code} cost:{(time.time() - t3):.3f}s'
)
self
.
log
.
log
(
'REQU'
,
f
'JSURL: code:{response.status_code} cost:{(time.time() - t3):.3f}s'
)
# self.log.info(f'{response.json().keys()}')
# self.log.info(f'{response.json().keys()}')
...
@@ -160,7 +161,7 @@ class Reese84ByPass(object):
...
@@ -160,7 +161,7 @@ class Reese84ByPass(object):
"sec-fetch-dest"
:
"empty"
,
"sec-fetch-dest"
:
"empty"
,
"accept-language"
:
"en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6"
"accept-language"
:
"en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6"
}
}
url
=
"https://
ibe
.api.flyscoot.com/v1/account/anonymous"
url
=
"https://
booking
.api.flyscoot.com/v1/account/anonymous"
response
=
self
.
_session
.
get
(
url
,
headers
=
headers
,
timeout
=
10
)
response
=
self
.
_session
.
get
(
url
,
headers
=
headers
,
timeout
=
10
)
print
(
response
.
text
)
print
(
response
.
text
)
self
.
_token
=
response
.
json
()[
'data'
][
'accessToken'
]
self
.
_token
=
response
.
json
()[
'data'
][
'accessToken'
]
...
@@ -271,13 +272,13 @@ class Reese84ByPass(object):
...
@@ -271,13 +272,13 @@ class Reese84ByPass(object):
print
(
self
.
_get_cookie
())
print
(
self
.
_get_cookie
())
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
# session.proxies = {
# session.proxies = {
# 'http': "http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000",
# 'http': "http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000",
# 'https': "http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000",
# 'https': "http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000",
# }
# }
r
=
Reese84ByPass
(
'https://www.flyscoot.com/'
,
'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000'
)
r
=
Reese84ByPass
(
'https://www.flyscoot.com/'
,
'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000'
)
r
=
Reese84ByPass
(
'https://www.flyscoot.com/'
,
'http://user-uni007-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
)
r
=
Reese84ByPass
(
'https://www.flyscoot.com/'
,
'http://user-uni007-region-us: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'
)
# r = Reese84ByPass('https://www.flyscoot.com/', f'http://uni00001_custom_zone_US_sid_{random.randint(67336718, 67336728)}_time_5:q39CEBTs5A@us.foxyip.com:7778')
# r = Reese84ByPass('https://www.flyscoot.com/', f'http://uni00001_custom_zone_US_sid_{random.randint(67336718, 67336728)}_time_5:q39CEBTs5A@us.foxyip.com:7778')
...
...
src/run.js
View file @
80010ded
...
@@ -1312,7 +1312,7 @@ const {
...
@@ -1312,7 +1312,7 @@ const {
const dom = new JSDOM(
const dom = new JSDOM(
'\n' +
'\n' +
' <!DOCTYPE html> <html lang="en" en-sg IR> <head><script src="/
g-Then-And-meeting-beding-O-Scena-Quarre-allowt-
" async></script> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta charset="utf-8" /><script type="text/html" id="sf-tracking-consent-manager">\n' +
' <!DOCTYPE html> <html lang="en" en-sg IR> <head><script src="/
xildrong-in-I-confusing-freene-of-Duncannothin-b
" async></script> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta charset="utf-8" /><script type="text/html" id="sf-tracking-consent-manager">\n' +
'\t<div id="tracking-consent-dialog" style="display:none;" class="hidden"> \n' +
'\t<div id="tracking-consent-dialog" style="display:none;" class="hidden"> \n' +
'</div>\n' +
'</div>\n' +
'</script><script type="text/javascript" src="/WebResource.axd?d=DzHrpQl5URXarFHAtrmzFiVGCp9k3PJKAh3Au6tULwI3z2EKZIWdZjHIKorXmVWtqfboHFuCdj6oa1XUJAP5fA3f4Iqu4x90S3aDJ9UC6y8T1XJIHmjzt0iedHwMeb8hvKIBNUtZpwwmosLi2qggI96FCNOD3Bf3q9GkuZENu9ZjYmUuSvaKCV9uZxDDJ8q_0&t=637885997880000000">\n' +
'</script><script type="text/javascript" src="/WebResource.axd?d=DzHrpQl5URXarFHAtrmzFiVGCp9k3PJKAh3Au6tULwI3z2EKZIWdZjHIKorXmVWtqfboHFuCdj6oa1XUJAP5fA3f4Iqu4x90S3aDJ9UC6y8T1XJIHmjzt0iedHwMeb8hvKIBNUtZpwwmosLi2qggI96FCNOD3Bf3q9GkuZENu9ZjYmUuSvaKCV9uZxDDJ8q_0&t=637885997880000000">\n' +
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