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
2d754fd5
Commit
2d754fd5
authored
May 29, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
f9
parent
0d67550d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
136 additions
and
33 deletions
+136
-33
f91.js
src/f91.js
+21
-20
test.js
src/test.js
+65
-0
test.py
test.py
+12
-0
test_search.py
test_search.py
+38
-13
No files found.
src/f91.js
View file @
2d754fd5
...
...
@@ -4,6 +4,7 @@ import axios from "axios";
import
{
PxEnv
}
from
'./px.js'
import
{
MongoClient
}
from
"mongodb"
;
import
*
as
fs
from
"fs"
;
let
ENVS
=
JSON
.
parse
(
fs
.
readFileSync
(
'./env.json'
,
'utf-8'
).
toString
())
let
keys
=
Object
.
keys
(
ENVS
);
const
uri
=
"mongodb://lcc-spider:JIUsfhiad&^@54.183.159.9:27017/?authSource=admin&directConnection=true"
;
...
...
@@ -455,7 +456,7 @@ class PxBypass {
let
res
=
await
this
.
do_collector
(
data
)
}
async
test
()
{
async
test
()
{
// this.prox = 'http://127.0.0.1:8890'
// this.tlsUrl = 'http://127.0.0.1:58000/tls/forwardios'
...
...
@@ -511,12 +512,12 @@ async test() {
async
function
run
()
{
while
(
true
)
{
try
{
//
let res = await axios.get('http://ymx-lcc.unififi.com/header/task/pull/cookieF9?brush_name=test')
//
let data = res.data;
let
data
=
{
status
:
0
}
let
res
=
await
axios
.
get
(
'http://ymx-lcc.unififi.com/header/task/pull/cookieF9?brush_name=test'
)
let
data
=
res
.
data
;
//
//
let data = {
//
status: 0
//
}
console
.
log
(
data
)
// if r.json()['status'] != 0:
// # logger.debug(f'不需要刷值')
...
...
src/test.js
0 → 100644
View file @
2d754fd5
import
axios
from
"axios"
;
const
tlsUrl
=
'http://52.52.23.116/tls/forward'
;
let
cks
=
'_pxvid=33d7e349-1d9a-11ef-8481-4d2726792e52; _px2=eyJ1IjoiMzM3YTU5MDAtMWQ5YS0xMWVmLWFiMGUtMjE0MzJkYTI1YzFiIiwidiI6IjMzZDdlMzQ5LTFkOWEtMTFlZi04NDgxLTRkMjcyNjc5MmU1MiIsInQiOjE3MTY5NzM2NjI3MTUsImgiOiI3MTE1MzgxMjI1NGRmYTJkYTY1NzJkNWYxOWMyMTA2YTVkY2Q4ZDIzYzFlMmRiNDJlYmZmMzUzMzhiNGE2MTEyIn0='
let
prox
=
'http://uni00002_custom_zone_US2_sid_4428759_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
:
{
"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
},
allow_redirects
:
true
,
debug
:
true
,
method
:
"GET"
,
proxy
:
prox
,
random_tls
:
true
,
}))
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='
,
headers
:
{
"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
},
allow_redirects
:
true
,
debug
:
true
,
method
:
"GET"
,
proxy
:
prox
,
random_tls
:
true
,
}));
console
.
log
(
res
.
data
.
text
)
if
(
res
.
data
.
status_code
===
200
)
{
// console.log(res.data.text)
this
.
log
.
warn
(
'success'
,
res
.
data
.
status_code
,
res
.
data
.
text
.
includes
(
'FlightData'
))
await
this
.
add_headers
()
}
else
{
this
.
log
.
error
(
'error'
,
res
.
data
.
status_code
)
}
\ No newline at end of file
test.py
View file @
2d754fd5
...
...
@@ -84,3 +84,15 @@ I0I0II|14e5dd68-46df-11ee-be3b-6b4862687642
IIIIII|fp|60|1
00III0|86809e0cf02a54019055668b6cd60d5f437718e85c33cbadb17c156f134514b5
'''
params
=
{
"o1"
:
"BNA"
,
"d1"
:
"ATL"
,
"dd1"
:
"Apr 27, 2024"
,
"ADT"
:
"1"
,
"mon"
:
"true"
,
"promo"
:
""
}
for
k
,
v
in
params
.
items
():
params
.
Set
(
"o1"
,
s
.
Args
.
OriginPort
)
test_search.py
View file @
2d754fd5
...
...
@@ -4,20 +4,24 @@ import tls_client
session
=
tls_client
.
Session
(
client_identifier
=
'chrome_117'
)
headers
=
{
'Host'
:
'booking.flyfrontier.com'
,
'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'
,
'accept-language'
:
'en'
,
'cookie'
:
'_pxvid=694eb30a-a54a-11ee-9983-ba7a378a394d; pxcts=694f492a-a54a-11ee-9984-2fa97b2fd312; _px2=eyJ1IjoiNjkxYTJjNzAtYTU0YS0xMWVlLThmMWMtM2YzZDgzNzU0NGRhIiwidiI6IjY5NGViMzBhLWE1NGEtMTFlZS05OTgzLWJhN2EzNzhhMzk0ZCIsInQiOjE3MDM3NDUyNTM0NzEsImgiOiI0NGU3NGRhYzdlOGI1ZGI2NWQ3YTJlYWU3YTE2MDEzNjIyNGNkZTI5ODE5NWY0YmMzNThjOTkxOTNkYTlhMGIxIn0='
}
url
=
"https://booking.flyfrontier.com/Flight/InternalSelect?o1=DEN&d1=LAS&dd1=2023-11-30&ADT=1&umnr=false&mon=true"
"user-agent"
:
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.5359.95 Safari/537.36"
,
"pragma"
:
"no-cache"
,
"referer"
:
"https://www.flyfrontier.com/"
,
"cache-control"
:
"no-cache"
,
"content-type"
:
"application/json"
,
"origin"
:
"https://www.flyfrontier.com"
,
"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
=
'_pxvid=f26bf1ac-1d97-11ef-9ab5-5f69ec42bf03; _px2=eyJ1IjoiZjIxMmE0YjAtMWQ5Ny0xMWVmLWFiMGUtMjE0MzJkYTI1YzFiIiwidiI6ImYyNmJmMWFjLTFkOTctMTFlZi05YWI1LTVmNjllYzQyYmYwMyIsInQiOjE3MTY5NzI2OTM4NTEsImgiOiIwYzE3ZDlhYzYzYzg5OGM1MjljOWViYzZmYTU1MTczMTczZjM1OGNlMWNiZWZmOWQ5MDk5NWE4MzRkZDFlM2MxIn0='
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)}'
# prox = 'http://user-uni001-region-us-sessid-4909-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
# 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'
for
i
in
range
(
20
):
...
...
@@ -26,9 +30,30 @@ for i in range(20):
response
=
requests
.
post
(
'http://52.52.23.116/tls/forward'
,
# response = requests.post('http://127.0.0.1:58000/tls/forward',
json
=
dict
(
url
=
url
,
method
=
"GET"
,
proxy
=
prox
,
headers
=
headers
,
debug
=
True
,
allow_redirects
=
True
)
json
=
{
'url'
:
'https://booking.flyfrontier.com/Flight/InternalSelect?o1=BNA&d1=ATL&dd1=Apr
%2027
,
%202024
&ADT=1&mon=true&promo='
,
'headers'
:
{
"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
},
'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