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
7beaac0c
Commit
7beaac0c
authored
May 29, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
f9
parent
2d754fd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
14 deletions
+23
-14
f91.js
src/f91.js
+13
-10
test.js
src/test.js
+10
-4
No files found.
src/f91.js
View file @
7beaac0c
...
...
@@ -170,16 +170,19 @@ class PxBypass {
let
cks
=
Object
.
keys
(
this
.
cookies
).
map
((
v
,
k
)
=>
`
${
v
}
=
${
this
.
cookies
[
v
]}
`
).
join
(
'; '
)
this
.
log
.
info
(
'cookie'
,
cks
)
let
headers
=
{
"user-agent"
:
this
.
ua
,
"authority"
:
"www.flyfrontier.com"
,
"accept"
:
"application/json, text/plain, */*"
,
"accept-language"
:
"en-US"
,
"cache-control"
:
"no-cache"
,
"content-type"
:
"application/json"
,
"origin"
:
"https://www.flyfrontier.com"
,
"pragma"
:
"no-cache"
,
"referer"
:
"https://www.flyfrontier.com/"
,
"cookie"
:
cks
"Host"
:
"booking.flyfrontier.com"
,
"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
\"
"
,
"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"
,
"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-fetch-site"
:
"same-site"
,
"sec-fetch-mode"
:
"navigate"
,
"sec-fetch-user"
:
"?1"
,
"sec-fetch-dest"
:
"document"
,
"accept-language"
:
"en"
,
"cookie"
:
cks
}
let
res
=
await
axios
.
post
(
'http://ymx-lcc.unififi.com/header/add'
,
JSON
.
stringify
({
'brush_fromto'
:
'LAS-BOS'
,
...
...
src/test.js
View file @
7beaac0c
...
...
@@ -2,11 +2,16 @@ import axios from "axios";
const
tlsUrl
=
'http://52.52.23.116/tls/forward'
;
let
cks
=
'_pxvid=33d7e349-1d9a-11ef-8481-4d2726792e52; _px2=eyJ1IjoiMzM3YTU5MDAtMWQ5YS0xMWVmLWFiMGUtMjE0MzJkYTI1YzFiIiwidiI6IjMzZDdlMzQ5LTFkOWEtMTFlZi04NDgxLTRkMjcyNjc5MmU1MiIsInQiOjE3MTY5NzM2NjI3MTUsImgiOiI3MTE1MzgxMjI1NGRmYTJkYTY1NzJkNWYxOWMyMTA2YTVkY2Q4ZDIzYzFlMmRiNDJlYmZmMzUzMzhiNGE2MTEyIn0='
let
cks
=
"_pxvid=bd50bc51-1d9d-11ef-a3fc-f403f760dd61; _px2=eyJ1IjoiYmQxNTEwODAtMWQ5ZC0xMWVmLWFiMGUtMjE0MzJkYTI1YzFiIiwidiI6ImJkNTBiYzUxLTFkOWQtMTFlZi1hM2ZjLWY0MDNmNzYwZGQ2MSIsInQiOjE3MTY5NzUxODE3MTYsImgiOiJmZGZjYmI1NWFiNDcyZmUzYzY1NjFiZTQ2ZmE5ODMyZTE1MTUyNWE0N2U0NmQ4MzRhYzFmNDQyYmZjNmIyNzk4In0="
let
prox
=
'http://uni00002_custom_zone_US2_sid_4428759_time_5:FdkiGHty9a@us.ipwo.net:7878'
;
let
prox
=
'http://uni00002_custom_zone_US2_sid_4142218_time_5:FdkiGHty9a@us.ipwo.net:7878'
;
console
.
log
(
JSON
.
stringify
({
url
:
'https://booking.flyfrontier.com/Flight/InternalSelect?o1=BNA&d1=ATL&dd1=Apr%2027,%202024&ADT=1&mon=true&promo='
,
headers
:
{
...
...
@@ -32,7 +37,8 @@ console.log(JSON.stringify({
}))
let
res
=
await
axios
.
post
(
tlsUrl
,
JSON
.
stringify
({
url
:
'https://booking.flyfrontier.com/Flight/InternalSelect?o1=BNA&d1=ATL&dd1=Apr%2027,%202024&ADT=1&mon=true&promo='
,
// url: 'https://booking.flyfrontier.com/Flight/InternalSelect?o1=BNA&d1=ATL&dd1=Apr%2027,%202024&ADT=1&mon=true&promo=',
url
:
'https://booking.flyfrontier.com/Flight/InternalSelect?o1=SEA&d1=DEN&dd1=Jun+21%2C+2024&ADT=3&mon=true&dd1='
,
headers
:
{
"Host"
:
"booking.flyfrontier.com"
,
"sec-ch-ua"
:
"
\"
Not_A Brand
\"
;v=
\"
8
\"
,
\"
Chromium
\"
;v=
\"
120
\"
,
\"
Google Chrome
\"
;v=
\"
120
\"
"
,
...
...
@@ -55,7 +61,7 @@ let res = await axios.post(tlsUrl, JSON.stringify({
random_tls
:
true
,
}));
console
.
log
(
res
.
data
.
text
)
console
.
log
(
res
.
data
.
text
.
includes
(
'FlightData'
)
)
if
(
res
.
data
.
status_code
===
200
)
{
// console.log(res.data.text)
this
.
log
.
warn
(
'success'
,
res
.
data
.
status_code
,
res
.
data
.
text
.
includes
(
'FlightData'
))
...
...
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