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
612edbd7
Commit
612edbd7
authored
Dec 04, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志管理
parent
99a00431
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
51 deletions
+65
-51
index.html
index.html
+3
-3
px.js
src/px.js
+9
-4
run.js
src/run.js
+49
-33
test_url.py
test_url.py
+4
-11
No files found.
index.html
View file @
612edbd7
...
@@ -10,18 +10,18 @@
...
@@ -10,18 +10,18 @@
<body>
<body>
<script>
<script>
window
.
_pxVid
=
''
;
window
.
_pxVid
=
''
;
window
.
_pxUuid
=
'
afb0a6c4-926d-11ee-af61-d93b244f679
0'
;
window
.
_pxUuid
=
'
438d10e4-9273-11ee-ad9d-d43c17640b0
0'
;
window
.
_pxAppId
=
'PXVb73hTEg'
;
window
.
_pxAppId
=
'PXVb73hTEg'
;
window
.
_pxHostUrl
=
'https://collector-PXVb73hTEg.perimeterx.net'
;
window
.
_pxHostUrl
=
'https://collector-PXVb73hTEg.perimeterx.net'
;
window
.
_pxCustomLogo
=
''
;
window
.
_pxCustomLogo
=
''
;
window
.
_pxJsClientSrc
=
'//client.perimeterx.net/PXVb73hTEg/main.min.js'
;
window
.
_pxJsClientSrc
=
'//client.perimeterx.net/PXVb73hTEg/main.min.js'
;
window
.
_pxFirstPartyEnabled
=
'false'
;
window
.
_pxFirstPartyEnabled
=
'false'
;
var
script
=
document
.
createElement
(
'script'
);
var
script
=
document
.
createElement
(
'script'
);
script
.
src
=
'//captcha.perimeterx.net/PXVb73hTEg/captcha.js?a=c&u=
afb0a6c4-926d-11ee-af61-d93b244f679
0&v=&m=0'
;
script
.
src
=
'//captcha.perimeterx.net/PXVb73hTEg/captcha.js?a=c&u=
438d10e4-9273-11ee-ad9d-d43c17640b0
0&v=&m=0'
;
document
.
head
.
appendChild
(
script
);
document
.
head
.
appendChild
(
script
);
script
.
onerror
=
function
()
{
script
.
onerror
=
function
()
{
script
=
document
.
createElement
(
'script'
);
script
=
document
.
createElement
(
'script'
);
script
.
src
=
'https://captcha.px-cloud.net/PXVb73hTEg/captcha.js?a=c&u=
afb0a6c4-926d-11ee-af61-d93b244f679
0&v=&m=0'
;
script
.
src
=
'https://captcha.px-cloud.net/PXVb73hTEg/captcha.js?a=c&u=
438d10e4-9273-11ee-ad9d-d43c17640b0
0&v=&m=0'
;
script
.
onerror
=
window
.
_pxDisplayErrorMessage
;
script
.
onerror
=
window
.
_pxDisplayErrorMessage
;
document
.
head
.
appendChild
(
script
);
document
.
head
.
appendChild
(
script
);
};
};
...
...
src/px.js
View file @
612edbd7
...
@@ -2,6 +2,7 @@ import {randint, randomFloat, sha256} from './utils.js'
...
@@ -2,6 +2,7 @@ import {randint, randomFloat, sha256} from './utils.js'
import
{
createPx2
,
getNoPX
,
getPaths
,
getPX12573
}
from
'./pxenvutils.js'
import
{
createPx2
,
getNoPX
,
getPaths
,
getPX12573
}
from
'./pxenvutils.js'
import
md5
from
"md5"
;
import
md5
from
"md5"
;
import
{
call_12590_12610
}
from
"./pxwasm.js"
;
import
{
call_12590_12610
}
from
"./pxwasm.js"
;
import
*
as
fs
from
"fs"
;
export
class
PxEnv
{
export
class
PxEnv
{
...
@@ -4718,6 +4719,10 @@ export class PxEnv {
...
@@ -4718,6 +4719,10 @@ export class PxEnv {
"navigatorfunc"
:
[
1
,
1
,
1
,
1
,
1
,
1
]
"navigatorfunc"
:
[
1
,
1
,
1
,
1
,
1
,
1
]
}
}
if
(
env
){
this
.
ENV
=
env
}
this
.
screen
=
this
.
ENV
.
screenparams
;
this
.
screen
=
this
.
ENV
.
screenparams
;
this
.
navigator
=
this
.
ENV
.
navigatorparams
;
this
.
navigator
=
this
.
ENV
.
navigatorparams
;
this
.
window
=
this
.
ENV
.
windowparams
;
this
.
window
=
this
.
ENV
.
windowparams
;
...
@@ -5191,7 +5196,6 @@ export class PxEnv {
...
@@ -5191,7 +5196,6 @@ export class PxEnv {
"PX11496"
:
this
.
uuid
,
"PX11496"
:
this
.
uuid
,
"PX12564"
:
null
,
"PX12564"
:
null
,
"PX12565"
:
-
1
,
"PX12565"
:
-
1
,
"PX11379"
:
false
,
"PX11719"
:
true
,
"PX11719"
:
true
,
"PX12307"
:
"PX11745"
,
"PX12307"
:
"PX11745"
,
"PX11668"
:
"pxhc"
,
"PX11668"
:
"pxhc"
,
...
@@ -5411,9 +5415,10 @@ export class PxEnv {
...
@@ -5411,9 +5415,10 @@ export class PxEnv {
"PX11313"
:
touchScreenY
,
"PX11313"
:
touchScreenY
,
"PX11772"
:
downTime
,
"PX11772"
:
downTime
,
"PX11529"
:
9232191
,
"PX11529"
:
this
.
memory
().
usedJSHeapSize
,
// usedJSHeapSize
"PX11555"
:
4294705152
,
// "PX11529": 74208842,// usedJSHeapSize
"PX11833"
:
16707175
,
"PX11555"
:
this
.
memory
().
jsHeapSizeLimit
,
// jsHeapSizeLimit
"PX11833"
:
this
.
memory
().
totalJSHeapSize
,
// totalJSHeapSize
// # 松开的
// # 松开的
"PX12024"
:
touchX
,
"PX12024"
:
touchX
,
"PX11759"
:
touchY
,
"PX11759"
:
touchY
,
...
...
src/run.js
View file @
612edbd7
import
log4js
from
'log4js'
import
log4js
from
'log4js'
import
qs
from
'qs'
import
qs
from
'qs'
import
{
genPayload2
,
genPayload4
}
from
"./step2.js"
import
{
genPc
,
genUuid
,
ie
,
randint
}
from
"./utils.js"
import
{
genPc
,
genUuid
,
randint
,
ie
}
from
"./utils.js"
import
axios
from
"axios"
;
import
axios
from
"axios"
;
import
{
encodePayload
}
from
'./encodepayload.js'
import
{
encodePayload
}
from
'./encodepayload.js'
import
{
PxEnv
}
from
'./px.js'
import
{
PxEnv
}
from
'./px.js'
import
*
as
fs
from
"fs"
;
log4js
.
configure
({
log4js
.
configure
({
...
@@ -29,12 +23,36 @@ log4js.configure({
...
@@ -29,12 +23,36 @@ log4js.configure({
});
});
async
function
sleep
(
ms
)
{
return
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
ms
));
}
class
PxBypass
{
class
PxBypass
{
tag
=
"v8.7.2"
tag
=
"v8.7.2"
ft
=
"317"
ft
=
"317"
appId
=
"PXVb73hTEg"
appId
=
"PXVb73hTEg"
ua
=
'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'
ua
=
'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'
pxHeaders
=
{
pxUrl
=
`https://collector-
${
this
.
appId
}
.px-cloud.net/api/v2/collector`
tlsUrl
=
'http://52.52.23.116/tls/forward'
prox
=
`http://user-uni001-region-us-sessid-
${
randint
(
1000
,
5000
)}
-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600`
prox
=
`http://uni00001_custom_zone_US_sid_
${
randint
(
67336718
,
67336728
)}
_time_5:q39CEBTs5A@us.foxyip.com:7778`
prox
=
`http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:
${
randint
(
10000
,
13500
)}
`
// prox = 'http://127.0.0.1:7890'
// tlsUrl = 'http://127.0.0.1:58000/tls/forward'
constructor
(
options
)
{
// let env = fs.readFileSync('./env.json', 'utf-8')
// env = JSON.parse(env);
// let keys = Object.keys(env)
// let selectId = keys[randint(0, keys.length - 1)]
// this.env = env[selectId]
// this.ua = this.env.navigatorparams.useragent
this
.
pxHeaders
=
{
"authority"
:
"collector-pxvb73hteg.px-cloud.net"
,
"authority"
:
"collector-pxvb73hteg.px-cloud.net"
,
"accept"
:
"*/*"
,
"accept"
:
"*/*"
,
"accept-language"
:
"en-US,en;q=0.9"
,
"accept-language"
:
"en-US,en;q=0.9"
,
...
@@ -44,16 +62,6 @@ class PxBypass {
...
@@ -44,16 +62,6 @@ class PxBypass {
"pragma"
:
"no-cache"
,
"pragma"
:
"no-cache"
,
"user-agent"
:
this
.
ua
"user-agent"
:
this
.
ua
}
}
pxUrl
=
`https://collector-
${
this
.
appId
}
.px-cloud.net/api/v2/collector`
tlsUrl
=
'http://52.52.23.116/tls/forward'
prox
=
`http://user-uni001-region-us-sessid-
${
randint
(
1000
,
5000
)}
-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600`
prox
=
`http://uni00001_custom_zone_US_sid_67336718_time_5:q39CEBTs5A@us.foxyip.com:7778`
// prox = `http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:${randint(10000, 13500)}`
// prox = 'http://127.0.0.1:8890'
// tlsUrl = 'http://127.0.0.1:58000/tls/forward'
constructor
(
options
)
{
this
.
log
=
log4js
.
getLogger
(
'px'
)
this
.
log
=
log4js
.
getLogger
(
'px'
)
...
@@ -77,13 +85,8 @@ class PxBypass {
...
@@ -77,13 +85,8 @@ class PxBypass {
this
.
cookies
=
{}
this
.
cookies
=
{}
}
}
async
sleep
(
ms
)
{
return
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
ms
));
}
async
add_headers
()
{
async
add_headers
()
{
let
cks
=
Object
.
keys
(
this
.
cookies
).
map
((
v
,
k
)
=>
`
${
v
}
=
${
this
.
cookies
[
v
]}
`
).
join
(
'; '
)
let
cks
=
Object
.
keys
(
this
.
cookies
).
map
((
v
,
k
)
=>
`
${
v
}
=
${
this
.
cookies
[
v
]}
`
).
join
(
'; '
)
...
@@ -113,7 +116,7 @@ class PxBypass {
...
@@ -113,7 +116,7 @@ class PxBypass {
if
(
typeof
data
===
'object'
)
{
if
(
typeof
data
===
'object'
)
{
data
=
JSON
.
stringify
(
data
)
data
=
JSON
.
stringify
(
data
)
}
}
this
.
log
.
info
(
data
)
//
this.log.info(data)
let
payload
=
encodePayload
(
data
,
this
.
uuid
,
this
.
ts
)
let
payload
=
encodePayload
(
data
,
this
.
uuid
,
this
.
ts
)
let
pc
=
genPc
(
data
,
`
${
this
.
uuid
}
:
${
this
.
tag
}
:
${
this
.
ft
}
`
)
let
pc
=
genPc
(
data
,
`
${
this
.
uuid
}
:
${
this
.
tag
}
:
${
this
.
ft
}
`
)
let
body
=
{
let
body
=
{
...
@@ -250,7 +253,7 @@ class PxBypass {
...
@@ -250,7 +253,7 @@ class PxBypass {
let
res
=
await
this
.
do_collector
(
data
)
let
res
=
await
this
.
do_collector
(
data
)
this
.
seq
++
;
this
.
seq
++
;
this
.
pxenv
=
new
PxEnv
(
''
,
this
.
url
,
this
.
sid
,
this
.
vid
,
this
.
ts
,
this
.
num1
,
this
.
num2
,
this
.
pxenv
=
new
PxEnv
(
this
.
env
,
this
.
url
,
this
.
sid
,
this
.
vid
,
this
.
ts
,
this
.
num1
,
this
.
num2
,
this
.
str1
,
this
.
uuid
,
this
.
str1
,
this
.
uuid
,
this
.
startTs
,
this
.
startTs2
,
this
.
performanceNow
,
this
.
px12280
)
this
.
startTs
,
this
.
startTs2
,
this
.
performanceNow
,
this
.
px12280
)
...
@@ -326,16 +329,29 @@ class PxBypass {
...
@@ -326,16 +329,29 @@ class PxBypass {
}
}
async
function
run
()
{
async
function
run
()
{
// while (true) {
let
px
=
new
PxBypass
()
let
px
=
new
PxBypass
()
await
px
.
step1
()
await
px
.
step1
()
// await px.test()
await
px
.
step2
()
await
px
.
step2
()
await
px
.
sleep
(
1500
)
// await sleep(1500)
await
px
.
step3
()
await
px
.
step3
()
// await sleep(1500)
await
px
.
step4
()
await
px
.
step4
()
await
px
.
sleep
(
1500
)
// await sleep(1500)
await
px
.
test
()
await
px
.
test
()
// }
}
}
...
...
test_url.py
View file @
612edbd7
...
@@ -5,23 +5,16 @@ import tls_client
...
@@ -5,23 +5,16 @@ import tls_client
session
=
tls_client
.
Session
(
client_identifier
=
'chrome_112'
)
session
=
tls_client
.
Session
(
client_identifier
=
'chrome_112'
)
prox
=
f
'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{random.randint(10000, 13500)}'
prox
=
f
'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{random.randint(10000, 13500)}'
prox
=
'http://uni00001_custom_zone_US_sid_67336720_time_5:q39CEBTs5A@us.foxyip.com:7778'
# prox = 'http://user-uni001-region-us-sessid-1111-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
# prox = 'http://user-uni001-region-us-sessid-1111-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
cks
=
'_px2=eyJ1IjoiOGRjYjQ3NjAt1ODljYi011xMWVlLTkwMmUtODE4MTcxMjRjOTBlIiwidiI6IjhlOGIyMGMzLTg5Y2ItMTFlZS05YWI1LTAwMjc4Njk4ZmY1ZiIsInQiOjYyMDIzMzg4MDAwNCwiaCI6Ijk4NjYzMWNkZDBmNTBjMWE5NjZjYjgwOGNlNzFjYTJkMWNkYzc2MjdjYTc4MTBlZDVhODdmN2FiMzYzOGU1OTgifQ=='
cks
=
'_px2=eyJ1IjoiOGRjYjQ3NjAt1ODljYi011xMWVlLTkwMmUtODE4MTcxMjRjOTBlIiwidiI6IjhlOGIyMGMzLTg5Y2ItMTFlZS05YWI1LTAwMjc4Njk4ZmY1ZiIsInQiOjYyMDIzMzg4MDAwNCwiaCI6Ijk4NjYzMWNkZDBmNTBjMWE5NjZjYjgwOGNlNzFjYTJkMWNkYzc2MjdjYTc4MTBlZDVhODdmN2FiMzYzOGU1OTgifQ=='
# cks = ''
# cks = ''
url
=
'https://booking.flyfrontier.com/Flight/InternalSelect?o1=DEN&d1=LAS&dd1=2023-11-30&ADT=1&umnr=false&mon=true'
url
=
'https://booking.flyfrontier.com/Flight/InternalSelect?o1=DEN&d1=LAS&dd1=2023-11-30&ADT=1&umnr=false&mon=true'
response
=
requests
.
post
(
'http://52.52.23.116/tls/forward'
,
response
=
requests
.
post
(
'http://52.52.23.116/tls/forward'
,
json
=
dict
(
url
=
url
,
headers
=
{
json
=
dict
(
url
=
url
,
headers
=
{
...
@@ -41,7 +34,7 @@ response = requests.post('http://52.52.23.116/tls/forward',
...
@@ -41,7 +34,7 @@ response = requests.post('http://52.52.23.116/tls/forward',
"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"
,
"cookie"
:
cks
"cookie"
:
cks
},
method
=
"GET"
,
proxy
=
prox
,
debug
=
True
},
method
=
"GET"
,
proxy
=
prox
,
debug
=
True
,
allow_redirects
=
True
,
allow_redirects
=
True
))
))
response
=
response
.
json
()
response
=
response
.
json
()
print
(
response
)
print
(
response
)
...
...
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