Commit 33c263bf authored by wang's avatar wang

test

parent 5465bac3
...@@ -52,7 +52,7 @@ class Reese84ByPass(object): ...@@ -52,7 +52,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()
...@@ -82,7 +82,7 @@ class Reese84ByPass(object): ...@@ -82,7 +82,7 @@ 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://makeabooking.flyscoot.com/rtaliuery-Doct-The-Then-throngling-Was-Son-Hes-I')
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:
...@@ -107,7 +107,7 @@ class Reese84ByPass(object): ...@@ -107,7 +107,7 @@ 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://makeabooking.flyscoot.com/rtaliuery-Doct-The-Then-throngling-Was-Son-Hes-I?d=makeabooking.flyscoot.com"
response = self._session.post(url, headers={ response = self._session.post(url, headers={
"Host": "www.flyscoot.com", "Host": "www.flyscoot.com",
"sec-ch-ua": "\"Google Chrome\";v=\"117\", \"Not;A=Brand\";v=\"8\", \"Chromium\";v=\"117\"", "sec-ch-ua": "\"Google Chrome\";v=\"117\", \"Not;A=Brand\";v=\"8\", \"Chromium\";v=\"117\"",
...@@ -246,7 +246,7 @@ class Reese84ByPass(object): ...@@ -246,7 +246,7 @@ class Reese84ByPass(object):
"upgrade-insecure-requests": "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/117.0.0.0 Safari/537.36" "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"
} }
url = "https://makeabooking.flyscoot.com/Book/Flight?culture=en-SG&type=oneway&dst1=SIN&ast1=ADL&dst2=ADL&ast2=SIN&dd=2023-11-24&rd=null&adt=1&chd=0&inf=0#" 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) response = self._session.get(url, headers=headers)
print(response.text) print(response.text)
...@@ -257,6 +257,7 @@ if __name__ == '__main__': ...@@ -257,6 +257,7 @@ if __name__ == '__main__':
# '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://127.0.0.1:8890') 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')
# while True: # while True:
print(r.start()) print(r.start())
...@@ -1277,26 +1277,26 @@ Date.prototype.toString = v_saf(function () { ...@@ -1277,26 +1277,26 @@ Date.prototype.toString = v_saf(function () {
if (!process.argv[2]){ if (!process.argv[2]){
Date.now = function now() { Date.now = function now() {
return 1685096207545 return 1685096207545
}; };
Date.parse = function () { Date.parse = function () {
return 1685096207545 return 1685096207545
}; };
Date.prototype.valueOf = function () { Date.prototype.valueOf = function () {
return 1685096207545 return 1685096207545
}; };
Date.prototype.getTime = function () { Date.prototype.getTime = function () {
return 1685096207545 return 1685096207545
}; };
Date.prototype.toString = function () { Date.prototype.toString = function () {
return 1685096207545 return 1685096207545
}; };
Performance.prototype.now = function now() { Performance.prototype.now = function now() {
return Number('1685096207545'.slice(8)) return Number('1685096207545'.slice(8))
} }
Math.random = function random() { Math.random = function random() {
return 0.08636862211354912 return 0.08636862211354912
}; };
} }
...@@ -1313,7 +1313,7 @@ const dom = new JSDOM( ...@@ -1313,7 +1313,7 @@ const dom = new JSDOM(
`<!DOCTYPE html> `<!DOCTYPE html>
<html lang="en"> <html lang="en">
<head><script src="/g-Then-And-meeting-beding-O-Scena-Quarre-allowt-" async></script> <head><script src="/rtaliuery-Doct-The-Then-throngling-Was-Son-Hes-I" async></script>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>IBE</title> <title>IBE</title>
<base href="/" /> <base href="/" />
......
...@@ -4835,7 +4835,7 @@ const { ...@@ -4835,7 +4835,7 @@ const {
const dom = new JSDOM( const dom = new JSDOM(
`<!DOCTYPE html> `<!DOCTYPE html>
<html lang="en"> <html lang="en">
<head><script src="/Two-discharted-Not-ere-int-when-is-are-Poss-A-Sa" async></script> <head><script src="/rtaliuery-Doct-The-Then-throngling-Was-Son-Hes-I" async></script>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>IBE</title> <title>IBE</title>
<base href="/" /> <base href="/" />
......
...@@ -9,12 +9,11 @@ session.proxies = { ...@@ -9,12 +9,11 @@ session.proxies = {
'https': px, 'https': px,
} }
session.proxies = { session.proxies = {
'http': "http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000", 'http': "http://user-uni007-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600",
'https': "http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000", 'https': "http://user-uni007-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600",
} }
headers = {"sec-fetch-dest": "document", "sec-fetch-user": "?1", "cookie": "reese84=3:HxlAVGoXfmGH32gr12cY5w==:5yDV4ndvry+Cxx22UGaOCAVSy5ZuwU1p/8AqUIZAQgfdasRwrwXv8Z42l8U4n/acdGpTuzjuk2LlWBfGP+KdB+cxL2Zqhh2Kmu2iE3cbFtTaMh9RrnacLk3n4j7+EdE+/tzx2GJKwVjQnnQprw38SDOm3BtpmkkoexCbpuqOLX/rekgSQswHq+I/khQZImkagOF9tZpNWV0RK49urKs9PZ5TjBMUqg7gbvb4o/QCxGIglwj9xrPjUMCEmP4edUsJu5TqawigBmD+H16PUb0BqhC+W5LdO8Y4M32/nMukG9ra5waBr16XuZHFYK9HnyzOugPJz5HkzgNxt1aqxX46X8rqxI2wx0WuRw+uQKXP0ifyXYNe0C188z2Y3Ti/YgliMlecQgyKugyonyxr0Q9mYFJyCbfarHN3fjQxnzDrYCPsuX4TPQ2x7lDWbtm+GTt9qoh/sYW7UdCDL0GOyByunw==:eXQIPq0x1prDbIGujtZxsHT3LHxKcxGe/+4rVo//2PU=; incap_ses_526_2444926=2fxdbr9K61pOzrfxabtMB9N3YGUAAAAAv4CkHR7fUz+vGIE/JFSlww==; nlbi_2444926_2147483392=XYavPJcfS1vT0kvTgG/1SgAAAAAwuzz2MdxNeQ+/jYIZOYcc", "authority": "makeabooking.flyscoot.com", "sec-ch-ua": "\"Google Chrome\";v=\"117\", \"Not;A=Brand\";v=\"8\", \"Chromium\";v=\"117\"", "sec-ch-ua-platform": "\"macOS\"", "upgrade-insecure-requests": "1", "accept-language": "en-US,en;q=0.9", "cache-control": "no-cache", "pragma": "no-cache", "sec-fetch-site": "none", "sec-fetch-mode": "navigate", "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36", "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", "sec-ch-ua-mobile": "?0"} headers = {"authority": "makeabooking.flyscoot.com", "sec-ch-ua": "\"Google Chrome\";v=\"117\", \"Not;A=Brand\";v=\"8\", \"Chromium\";v=\"117\"", "sec-fetch-mode": "navigate", "accept-language": "en-US,en;q=0.9", "pragma": "no-cache", "sec-ch-ua-mobile": "?0", "sec-fetch-user": "?1", "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", "cache-control": "no-cache", "sec-ch-ua-platform": "\"macOS\"", "sec-fetch-site": "none", "upgrade-insecure-requests": "1", "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36", "sec-fetch-dest": "document", "cookie": "reese84=3:4CmdPwLvfBRc6A36T09R0w==:tKDETX3kQXeYfkFw2EfPXCvTc3fOybw+e73DWigYe9Ihs/hjv94ARAsU1hVXjB70ZJSeGaPf66tqtTi4s4jamm0CossreLcFI7PTBhMqgtKmLuaiXNMl9zClgbwjacQ7stELU4ozLcvvmCT4d1YkI4Ik3YpL49nQNDIw0fOgXmd/GljSMf0hNUZBiICP2hmERgMgwNBB5QuitSZzcJjbVM8zZ5Ws9Qdy5QiCa30DCq3niVrK4tFI5Q9G5r4gaG5xqye+vpZH9ckjSDS9LZaj1lXVF4FYe5M6cup4Xxs2VxmjuHcnNjaCHndoHLOZpyP1buptOOuV/RG7x10rjrwTbPv2qw31vm8RXK7W3heh8MsBhRFzNf7Wy5WIXWL4kbGONiZITLjOCdddXrlT+XZPLPXAwJ3zjeJr4IndPOONrlp3u7bnm7GO+VTdfj4WkgpTKtkulLBftxLFzk5MWaWDYg==:ZhgVCth+sGQAZXY3Hh/AbMNS1sI7NSy3t60KbI1oyig="}
url = "https://makeabooking.flyscoot.com/Book/Flight?culture=en-SG&type=oneway&dst1=HKT&ast1=TAO&dd=2023-12-15&rd=null&adt=1&chd=0&inf=0#" url = "https://makeabooking.flyscoot.com/Book/Flight?culture=en-SG&type=oneway&dst1=HKT&ast1=TAO&dd=2023-12-15&rd=null&adt=1&chd=0&inf=0#"
url = "https://makeabooking.flyscoot.com/Book/Flight?culture=en-SG&type=oneway&dst1=SIN&ast1=ADL&dst2=ADL&ast2=SIN&dd=2023-12-18&rd=null&adt=1&chd=0&inf=0" url = "https://makeabooking.flyscoot.com/Book/Flight?culture=en-SG&type=oneway&dst1=SIN&ast1=ADL&dst2=ADL&ast2=SIN&dd=2023-12-18&rd=null&adt=1&chd=0&inf=0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment