Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
px3
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
px3
Commits
2febfac9
Commit
2febfac9
authored
Jun 24, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收集环境
parent
6d7c7125
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
45 deletions
+51
-45
f91.js
src/f91.js
+17
-12
test_search.py
test_search.py
+34
-33
No files found.
src/f91.js
View file @
2febfac9
...
...
@@ -160,7 +160,12 @@ class PxBypass {
this
.
seq
=
0
this
.
rsc
=
1
;
this
.
cookies
=
{}
this
.
cookies
=
{
'ASP.NET_SessionId'
:
'v3imqkdyljku5ktusextfbuc'
,
'__RequestVerificationToken'
:
'AJeXz3uOWbbEVS6QfoI7oCycnodOj5yimDS32fQzhMDMsW2uvCV94tqzuCnt23HTuyhOei5BxWlYeBvzHwfKg1rU0IxUAMAuy-XJMLBHZ3hvxSR4uLFQ-BrGm7936V1kwwMQ8w2'
,
'dotrez'
:
'!1ehoAlgbw+nuqY5eETst66jrHkkuv1u2tg2HmfrAh2sxsylFHzozSYCNgr0OuHsw4JSoNinDxdZVRA=='
,
'dtCookie'
:
'v_4_srv_1_sn_9C28C11FEFD474DB1947279D5FC76CC5_perc_100000_ol_0_mul_1_app-3Aea7c4b59f27d43eb_1_rcs-3Acss_0'
,
}
}
...
...
@@ -663,12 +668,12 @@ class PxBypass {
random_tls
:
true
,
}));
if
(
res
.
data
.
status_code
===
200
)
{
// console.log(res.data.text)
this
.
log
.
warn
(
'success'
,
res
.
data
.
status_code
,
res
.
data
.
text
.
includes
(
'FlightData'
),
this
.
ua
)
}
else
{
this
.
log
.
error
(
'error'
,
res
.
data
.
status_code
)
}
//
if (res.data.status_code === 200) {
//
// console.log(res.data.text)
//
this.log.warn('success', res.data.status_code, res.data.text.includes('FlightData'), this.ua)
//
} else {
//
this.log.error('error', res.data.status_code)
//
}
await
this
.
add_headers
(
headers
)
}
...
...
@@ -696,7 +701,7 @@ class PxBypass {
async
init
()
{
this
.
log
.
info
(
"init"
)
let
res
=
await
axios
.
post
(
this
.
tlsUrl
,
JSON
.
stringify
({
url
:
'https://booking.flyfrontier.com/Flight/InternalSelect?
s=true&o1=DEN&d1=LAS&dd1=2024-07-31&dd2=0001-01-01&mon=true&adt=1
'
,
url
:
'https://booking.flyfrontier.com/Flight/InternalSelect?
o1=DEN&d1=LAS&dd1=2024-07-30&ADT=1&umnr=false&mon=true
'
,
headers
:
{
"Host"
:
"booking.flyfrontier.com"
,
"user-agent"
:
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0"
,
...
...
@@ -706,7 +711,7 @@ class PxBypass {
"upgrade-insecure-requests"
:
"1"
,
"sec-fetch-dest"
:
"document"
,
"sec-fetch-mode"
:
"navigate"
,
"sec-fetch-site"
:
"
same-origin
"
,
"sec-fetch-site"
:
"
none
"
,
"sec-fetch-user"
:
"?1"
,
"priority"
:
"u=1"
,
"te"
:
"trailers"
...
...
@@ -1078,9 +1083,9 @@ async function run() {
for
(
let
i
=
0
;
i
<
10
;
i
++
)
{
try
{
let
px
=
new
PxBypass
(
tru
e
)
let
px
=
new
PxBypass
(
fals
e
)
//
await px.init()
await
px
.
init
()
await
px
.
initMongo
()
await
px
.
initMongo2
()
...
...
@@ -1090,7 +1095,7 @@ async function run() {
await
px
.
px11590
()
await
sleep
(
3000
)
if
(
!
px
.
flag
)
await
px
.
px11951
()
if
(
!
px
.
flag
)
await
px
.
px11951
()
if
(
!
px
.
flag
)
await
px
.
do_func
(
px
.
pxenv
.
get_px11891
())
...
...
test_search.py
View file @
2febfac9
...
...
@@ -10,9 +10,11 @@ headers = {
"authority"
:
"www.flyfrontier.com"
,
"accept"
:
"application/json, text/plain, */*"
,
"accept-language"
:
"en-US"
}
url
=
"https://booking.flyfrontier.com/Flight/InternalSelect?o1=BNA&d1=ATL&dd1=Apr
%2027
,
%202024
&ADT=1&mon=true&promo="
cks
=
'
_px2=eyJ1IjoiNjgxZWZiMjAtMzE0NS0xMWVmLTljZTMtM2RkYWExNjUxMjdkIiwidiI6IjY4N2ExYjUyLTMxNDUtMTFlZi1hMDg0LTRhZTJiODZkNzlmMiIsInQiOjE3MTkxMzYyNzc3OTYsImgiOiJhZmQzOWQ2ZDhlZGFkYzkyMDk3M2VmOTI3OTMxM2E4OWZhNDY4MjZmZDc3YzFmY2VhNDJlYTZlMGUxMzYwYmJiIn0=; pxcts=687a2ba4-3145-11ef-a084-acc2414a941d; _pxvid=687a1b52-3145-11ef-a084-4ae2b86d79f2
'
cks
=
'
ASP.NET_SessionId=xufdp010hhdtileqm0uom34u; __RequestVerificationToken=vPZvmQO5IWFtKv_vOwV872WoB9Vt1v9kK1fHpu72eGWXZnBk5KjPdy-oNDEzWAidn8txWQ4qFisIFn4OsRwZfvG7qX9uT59brrPK8xHjXXXsJZ6H3nEADmWBcGvj7Jkf7-qSIQ2; dotrez=!np9e/opo1nqnTrUuf6ZSo6dUbzw/bunc6oaKRrE+Jucgydd2AKbnEkYWWRXKDX1HzMN7SAf8Gy/bpw==; dtCookie=v_4_srv_1_sn_B5225BA9FC7D49F44DBEA20EC8657AF2_perc_100000_ol_0_mul_1_app-3Aea7c4b59f27d43eb_0_rcs-3Acss_0; _pxhd=15d7042ca98f4fb2f1987cb85346e4cb2c34774089bc1ccdedc8b2d4662989d8:0390d252-31da-11ef-bf66-14cb58e5503a; _px2=eyJ1IjoiMWM4MGY2NjAtMzFkYS0xMWVmLThkZDItYWI4ZjVkZWZhZGU4IiwidiI6IjFjYjU3Yjg2LTMxZGEtMTFlZi04NWNkLWY1MmRmMGY0YjgyZSIsInQiOjE3MTkyMDAxNDcxNzksImgiOiJmYzU0YjMzYjJkOTBhYjlhZjViNmUyZjBjZTgwYzAwODgwMTc2YmExNjg1ZWRkOWM1NzIzYmQ2MWU3ZmNiNjFiIn0=; pxcts=1cb58b55-31da-11ef-85cd-0d4099d5c062; _pxvid=1cb57b86-31da-11ef-85cd-f52df0f4b82e
'
# cks += '; __RequestVerificationToken=TJeXz3uOWbbEVS6QfoI7oCycnodOj5yimDS32fQzhMDMsW2uvCV94tqzuCnt23HTuyhOei5BxWlYeBvzHwfKg1rU0IxUAMAuy-XJMLBHZ3hvxSR4uLFQ-BrGm7936V1kwwMQ8w2'
kccs
=
{
'ASP.NET_SessionId'
:
'v3imqkdyljku5ktusextfbuc'
,
'__RequestVerificationToken'
:
'TJeXz3uOWbbEVS6QfoI7oCycnodOj5yimDS32fQzhMDMsW2uvCV94tqzuCnt23HTuyhOei5BxWlYeBvzHwfKg1rU0IxUAMAuy-XJMLBHZ3hvxSR4uLFQ-BrGm7936V1kwwMQ8w2'
,
...
...
@@ -22,9 +24,9 @@ kccs = {
'dotrez'
:
'!1ehoAlgbw+nuqY5eETst66jrHkkuv1u2tg2HmfrAh2sxsylFHzozSYCNgr0OuHsw4JSoNinDxdZVRA=='
,
'dtCookie'
:
'v_4_srv_1_sn_9C28C11FEFD474DB1947279D5FC76CC5_perc_100000_ol_0_mul_1_app-3Aea7c4b59f27d43eb_1_rcs-3Acss_0'
,
'pxcts'
:
'687a2ba4-3145-11ef-a084-acc2414a941d'
}
}
cks
=
'; '
.
join
([
f
'{k}={v}'
for
k
,
v
in
kccs
.
items
()])
#
cks = '; '.join([f'{k}={v}' for k, v in kccs.items()])
# prox = 'http://user-uni001-region-us-sessid-1114-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
# prox = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{random.randint(10000, 13500)}'
...
...
@@ -32,44 +34,43 @@ prox = 'http://user-uni001-region-us-sessid-4909-sesstime-5-keep-true:q39CEBTs5A
# prox = 'http://74.48.159.194:33080'
# prox = 'http://uni00002_custom_zone_US2_sid_4524195_time_5:FdkiGHty9a@us.ipwo.net:7878'
# print(prox)
prox
=
'http://uni00002_custom_zone_US2_sid_4428759_time_5:FdkiGHty9a@us.ipwo.net:7878'
# prox = 'http://uni00002_custom_zone_US2_sid_4428759_time_5:FdkiGHty9a@us.ipwo.net:7878'
for
i
in
range
(
20
):
# prox = 'http://127.0.0.1:7890'
# url = "http://httpbin.org/ip"
#
response = requests.post('http://52.52.23.116/tls/forward',
# response = requests.post('http://lcc.unififi.com/tls/forward',
response
=
session
.
post
(
'http://127.0.0.1:58000/tls/forward'
,
# response = requests.post('http://192.168.50.197:58000/tls/forward',
response
=
requests
.
post
(
'http://52.52.23.116/tls/forward'
,
# response = requests.post('http://lcc.unififi.com/tls/forward',
#
response = session.post('http://127.0.0.1:58000/tls/forward',
# response = requests.post('http://192.168.50.197:58000/tls/forward',
json
=
{
'url'
:
'https://booking.flyfrontier.com/Flight/InternalSelect?o1=DEN&d1=LAS&dd1=2024-07-30&ADT=1&umnr=false&mon=true'
,
'headers'
:
{
"accept-language"
:
"en,en-US;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6"
,
"pragma"
:
"no-cache"
,
"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"
,
"sec-ch-ua-platform"
:
"
\"
MacIntel
\"
"
,
"cache-control"
:
"no-cache"
,
"sec-ch-ua"
:
"
\"
Not/A)Brand
\"
;v=
\"
8
\"
,
\"
Chromium
\"
;v=
\"
126
\"
,
\"
Google Chrome
\"
;v=
\"
126
\"
"
,
"sec-ch-ua-mobile"
:
"?0"
,
"sec-fetch-mode"
:
"navigate"
,
"priority"
:
"u=0, i"
,
"upgrade-insecure-requests"
:
"1"
,
"user-agent"
:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
,
"sec-fetch-dest"
:
"document"
,
"sec-fetch-site"
:
"same-site"
,
"cookie"
:
cks
,
'url'
:
'https://booking.flyfrontier.com/Flight/InternalSelect?o1=DEN&d1=LAS&dd1=2024-07-30&ADT=1&umnr=false&mon=true'
,
'headers'
:
{
"accept-language"
:
"en,en-US;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6"
,
"pragma"
:
"no-cache"
,
"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"
,
"sec-ch-ua-platform"
:
"
\"
MacIntel
\"
"
,
"cache-control"
:
"no-cache"
,
"sec-ch-ua"
:
"
\"
Not/A)Brand
\"
;v=
\"
8
\"
,
\"
Chromium
\"
;v=
\"
126
\"
,
\"
Google Chrome
\"
;v=
\"
126
\"
"
,
"sec-ch-ua-mobile"
:
"?0"
,
"sec-fetch-mode"
:
"navigate"
,
"priority"
:
"u=0, i"
,
"upgrade-insecure-requests"
:
"1"
,
"user-agent"
:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
,
"sec-fetch-dest"
:
"document"
,
"sec-fetch-site"
:
"same-site"
,
"cookie"
:
cks
,
},
'allow_redirects'
:
True
,
'debug'
:
True
,
'method'
:
"GET"
,
'proxy'
:
prox
,
'random_tls'
:
True
,
},
'allow_redirects'
:
True
,
'debug'
:
True
,
'method'
:
"GET"
,
'proxy'
:
prox
,
'random_tls'
:
True
,
}
}
)
...
...
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