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
9196bd29
Commit
9196bd29
authored
Jan 08, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
1ec9e92e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
24 deletions
+60
-24
reese84_bypass.py
src/reese84_bypass.py
+60
-24
No files found.
src/reese84_bypass.py
View file @
9196bd29
...
...
@@ -53,7 +53,7 @@ class Reese84ByPass(object):
def
start
(
self
):
# self._init()
self
.
_repare_js
()
#
self.__auth_token()
self
.
__auth_token
()
# self._test()
# time.sleep(random.randint(3,5))
# self.__get_session_token()
...
...
@@ -213,43 +213,79 @@ class Reese84ByPass(object):
# "x-scoot-client-version": "0.0.0"
# }
headers
=
{
"
Host"
:
"makeabooking
.flyscoot.com"
,
"accept
-language"
:
"en-US,en;q=0.9
"
,
"a
uthority"
:
"makeabooking.flyscoot.com
"
,
"
authority"
:
"ibe.api
.flyscoot.com"
,
"accept
"
:
"application/json, text/plain, */*
"
,
"a
ccept-language"
:
"en,en-US;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6
"
,
"cache-control"
:
"no-cache"
,
"content-type"
:
"application/json"
,
"origin"
:
"https://beta.makeabooking.flyscoot.com"
,
"pragma"
:
"no-cache"
,
"sec-ch-ua"
:
"
\"
Google Chrome
\"
;v=
\"
117
\"
,
\"
Not;A=Brand
\"
;v=
\"
8
\"
,
\"
Chromium
\"
;v=
\"
117
\"
"
,
"sec-ch-ua"
:
"
\"
Not_A Brand
\"
;v=
\"
8
\"
,
\"
Chromium
\"
;v=
\"
120
\"
,
\"
Google Chrome
\"
;v=
\"
120
\"
"
,
"sec-ch-ua-mobile"
:
"?0"
,
"sec-ch-ua-platform"
:
"
\"
macOS
\"
"
,
"sec-fetch-dest"
:
"document"
,
"sec-fetch-mode"
:
"navigate"
,
"sec-fetch-site"
:
"none"
,
"sec-fetch-user"
:
"?1"
,
"upgrade-insecure-requests"
:
"1"
,
"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-fetch-dest"
:
"empty"
,
"sec-fetch-mode"
:
"cors"
,
"sec-fetch-site"
:
"same-site"
,
"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"
,
"x-scoot-appsource"
:
"IBE-WEB"
,
"x-scoot-client-environment"
:
"PROD"
,
"x-scoot-client-session"
:
"cb3e2a71-ad4c-4894-b4e8-2e684ad62b3e"
,
"x-scoot-client-version"
:
"0.0.0"
,
"authorization"
:
self
.
_token
,
}
return
headers
,
self
.
_session
.
cookies
.
items
()
def
_test
(
self
):
headers
=
{
"authority"
:
"
makeabooking
.flyscoot.com"
,
"accept"
:
"
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
"
,
"accept-language"
:
"en
-US,en;q=0.9
"
,
"authority"
:
"
ibe.api
.flyscoot.com"
,
"accept"
:
"
application/json, text/plain, */*
"
,
"accept-language"
:
"en
,en-US;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6
"
,
"cache-control"
:
"no-cache"
,
"content-type"
:
"application/json"
,
"origin"
:
"https://beta.makeabooking.flyscoot.com"
,
"pragma"
:
"no-cache"
,
"sec-ch-ua"
:
"
\"
Google Chrome
\"
;v=
\"
117
\"
,
\"
Not;A=Brand
\"
;v=
\"
8
\"
,
\"
Chromium
\"
;v=
\"
117
\"
"
,
"sec-ch-ua"
:
"
\"
Not_A Brand
\"
;v=
\"
8
\"
,
\"
Chromium
\"
;v=
\"
120
\"
,
\"
Google Chrome
\"
;v=
\"
120
\"
"
,
"sec-ch-ua-mobile"
:
"?0"
,
"sec-ch-ua-platform"
:
"
\"
macOS
\"
"
,
"sec-fetch-dest"
:
"document"
,
"sec-fetch-mode"
:
"navigate"
,
"sec-fetch-site"
:
"none"
,
"sec-fetch-user"
:
"?1"
,
"upgrade-insecure-requests"
:
"1"
,
"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-fetch-dest"
:
"empty"
,
"sec-fetch-mode"
:
"cors"
,
"sec-fetch-site"
:
"same-site"
,
"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"
,
"x-scoot-appsource"
:
"IBE-WEB"
,
"x-scoot-client-environment"
:
"PROD"
,
"x-scoot-client-session"
:
"cb3e2a71-ad4c-4894-b4e8-2e684ad62b3e"
,
"x-scoot-client-version"
:
"0.0.0"
,
"authorization"
:
self
.
_token
,
}
url
=
"https://makeabooking.flyscoot.com/Book/Flight?culture=en-SG&type=oneway&dst1=SIN&ast1=ADL&dst2=ADL&ast2=SIN&dd=2023-12-15&rd=null&adt=1&chd=0&inf=0#"
response
=
self
.
_session
.
get
(
url
,
headers
=
headers
)
url
=
"https://ibe.api.flyscoot.com/v1/booking/flight/availability"
data
=
{
"flightCriteria"
:
[
{
"origin"
:
"SIN"
,
"destination"
:
"BKK"
,
"departureDate"
:
"2024-01-10"
}
],
"passengerCriteria"
:
{
"adult"
:
1
,
"child"
:
0
,
"infant"
:
0
},
"currencyCode"
:
"SGD"
,
"promoCode"
:
None
,
"salesCode"
:
None
,
"flightFare"
:
{
"fareType"
:
[],
"classOfService"
:
[]
},
"cultureCode"
:
"zh-CN"
,
"organizationCode"
:
None
}
data
=
json
.
dumps
(
data
,
separators
=
(
','
,
':'
))
response
=
self
.
_session
.
post
(
url
,
headers
=
headers
,
data
=
data
)
print
(
response
.
text
)
self
.
log
.
debug
(
f
"resp {'Flight Search Results' in response.text}"
)
print
(
self
.
_get_cookie
())
...
...
@@ -263,7 +299,7 @@ if __name__ == '__main__':
# }
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://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')
# while True:
r
.
start
()
...
...
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