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
c6795c1a
Commit
c6795c1a
authored
Dec 13, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
captcha
parent
495eadd8
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
73 additions
and
67 deletions
+73
-67
index.html
index.html
+3
-3
all.js
src/all.js
+5
-6
run.js
src/run.js
+50
-52
test_search.py
test_search.py
+10
-4
test_url.py
test_url.py
+5
-2
No files found.
index.html
View file @
c6795c1a
...
...
@@ -10,18 +10,18 @@
<body>
<script>
window
.
_pxVid
=
''
;
window
.
_pxUuid
=
'
bdf12ccb-9712-11ee-81cf-b514cd7cdb99
'
;
window
.
_pxUuid
=
'
6fa01e60-9997-11ee-ba04-19528ba2f4ae
'
;
window
.
_pxAppId
=
'PXVb73hTEg'
;
window
.
_pxHostUrl
=
'https://collector-PXVb73hTEg.perimeterx.net'
;
window
.
_pxCustomLogo
=
''
;
window
.
_pxJsClientSrc
=
'//client.perimeterx.net/PXVb73hTEg/main.min.js'
;
window
.
_pxFirstPartyEnabled
=
'false'
;
var
script
=
document
.
createElement
(
'script'
);
script
.
src
=
'//captcha.perimeterx.net/PXVb73hTEg/captcha.js?a=c&u=
bdf12ccb-9712-11ee-81cf-b514cd7cdb99
&v=&m=0'
;
script
.
src
=
'//captcha.perimeterx.net/PXVb73hTEg/captcha.js?a=c&u=
6fa01e60-9997-11ee-ba04-19528ba2f4ae
&v=&m=0'
;
document
.
head
.
appendChild
(
script
);
script
.
onerror
=
function
()
{
script
=
document
.
createElement
(
'script'
);
script
.
src
=
'https://captcha.px-cloud.net/PXVb73hTEg/captcha.js?a=c&u=
bdf12ccb-9712-11ee-81cf-b514cd7cdb99
&v=&m=0'
;
script
.
src
=
'https://captcha.px-cloud.net/PXVb73hTEg/captcha.js?a=c&u=
6fa01e60-9997-11ee-ba04-19528ba2f4ae
&v=&m=0'
;
script
.
onerror
=
window
.
_pxDisplayErrorMessage
;
document
.
head
.
appendChild
(
script
);
};
...
...
src/all.js
View file @
c6795c1a
...
...
@@ -114,11 +114,11 @@ export function getPayload(uuid, vid, sid, ci, ts,cts, t) {
for
(
var
m
=
Vc
(),
M
=
0
;
M
<
t
[
"length"
];
M
++
)
{
var
g
=
t
[
M
];
g
[
"d"
][
"PX11379"
]
=
false
;
m
&&
(
g
[
"d"
][
"PX12307"
]
=
m
);
g
[
"d"
][
"PX12615"
]
=
Bu
;
vh
&&
(
g
[
"d"
][
"PX11375"
]
=
vh
);
var
y
=
rl
();
y
&&
(
g
[
"d"
][
"PX11668"
]
=
y
,
g
[
"d"
][
"PX12348"
]
=
sl
());
//
m && (g["d"]["PX12307"] = m);
//
g["d"]["PX12615"] = Bu;
//
vh && (g["d"]["PX11375"] = vh);
//
var y = rl();
//
y && (g["d"]["PX11668"] = y, g["d"]["PX12348"] = sl());
}
!
function
(
t
)
{
t
[
0
]
&&
t
[
0
][
"d"
]
&&
((
t
[
0
]
&&
t
[
0
][
"d"
])[
"PX11645"
]
=
su
);
...
...
@@ -475,7 +475,6 @@ var bl = function (t, e, ts = '') {
return Ve(q(e), 10);
}();
var o = ht(i);
console.log('payload', o)
i = q(Ve(o, 50));
var c = e[yl];
var f = function (t, e, n) {
...
...
src/run.js
View file @
c6795c1a
...
...
@@ -5,6 +5,7 @@ import axios from "axios";
import
{
encodePayload
}
from
'./encodepayload.js'
import
{
PxEnv
}
from
'./px.js'
import
*
as
fs
from
"fs"
;
import
{
getPayload
}
from
"./all.js"
;
log4js
.
configure
({
...
...
@@ -39,7 +40,7 @@ class PxBypass {
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:
7
890'
// prox = 'http://127.0.0.1:
8
890'
// tlsUrl = 'http://127.0.0.1:58000/tls/forward'
constructor
()
{
...
...
@@ -49,6 +50,7 @@ class PxBypass {
env
=
JSON
.
parse
(
env
);
let
keys
=
Object
.
keys
(
env
)
let
selectId
=
keys
[
randint
(
0
,
keys
.
length
-
1
)]
// selectId = 'd3e94c1cb84038031357a52f'
this
.
log
.
info
(
'select env'
,
selectId
)
this
.
env
=
env
[
selectId
]
this
.
ua
=
this
.
env
.
navigatorparams
.
useragent
...
...
@@ -103,16 +105,9 @@ class PxBypass {
"accept-language"
:
"en-US,en;q=0.9"
,
"cache-control"
:
"no-cache"
,
"pragma"
:
"no-cache"
,
"sec-ch-ua"
:
"
\"
Google Chrome
\"
;v=
\"
117
\"
,
\"
Not;A=Brand
\"
;v=
\"
8
\"
,
\"
Chromium
\"
;v=
\"
117
\"
"
,
"sec-ch-ua-mobile"
:
"?0"
,
"sec-ch-ua-platform"
:
"
\"
macOS
\"
"
,
"sec-fetch-dest"
:
"document"
,
"sec-fetch-mode"
:
"navigate"
,
"sec-fetch-site"
:
"none"
,
"sec-fetch-user"
:
"?1"
,
"upgrade-insecure-requests"
:
"1"
,
//
"user-agent": this.ua,
"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"
:
this
.
ua
,
//
"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
}
let
res
=
await
axios
.
post
(
'http://ymx-lcc.unififi.com/header/add'
,
JSON
.
stringify
({
...
...
@@ -129,44 +124,47 @@ class PxBypass {
}
async
do_collector
(
data
)
{
if
(
typeof
data
===
'object'
)
{
data
=
JSON
.
stringify
(
data
)
}
try
{
// if (typeof data === 'object') {
// data = ht(data)
// }
// this.log.info(data)
let
payload
=
encodePayload
(
data
,
this
.
uuid
,
this
.
ts
)
let
pc
=
genPc
(
data
,
`
${
this
.
uuid
}
:
${
this
.
tag
}
:
${
this
.
ft
}
`
)
let
body
=
{
"appId"
:
this
.
appId
,
"tag"
:
this
.
tag
,
"uuid"
:
this
.
uuid
,
"ft"
:
this
.
ft
,
"seq"
:
this
.
seq
,
"en"
:
"NTA"
,
"pc"
:
pc
,
"rsc"
:
this
.
rsc
,
"payload"
:
payload
,
}
body
=
this
.
updateBody
(
body
);
// let payload = encodePayload(data, this.uuid, this.ts)
// let pc = genPc(data, `${this.uuid}:${this.tag}:${this.ft}`)
// let body = {
// "appId": this.appId,
// "tag": this.tag,
// "uuid": this.uuid,
// "ft": this.ft,
// "seq": this.seq,
// "en": "NTA",
// "pc": pc,
// "rsc": this.rsc,
// "payload": payload,
// }
// body = this.updateBody(body);
let
body
=
getPayload
(
this
.
uuid
,
this
.
vid
,
this
.
sid
,
this
.
px755
,
this
.
ts
,
this
.
cts
,
data
)
// this.log.info(body)
let
res
=
await
axios
.
post
(
this
.
tlsUrl
,
JSON
.
stringify
({
url
:
this
.
pxUrl
,
data
:
qs
.
stringify
(
body
),
method
:
"POST"
,
// data: qs.stringify(body),
data
:
body
.
join
(
'&'
),
headers
:
this
.
pxHeaders
,
allow_redirects
:
true
,
debug
:
true
,
proxy
:
this
.
prox
,
}),
{
timeout
:
5000
});
id
:
(
new
Date
().
getTime
())
+
''
,
}));
let
inRes
=
JSON
.
parse
(
res
.
data
.
text
)
// this.log.info(inRes)
this
.
parseRes
(
inRes
)
this
.
seq
++
;
this
.
rsc
++
;
}
catch
(
err
)
{
console
.
error
(
err
.
data
);
}
};
...
...
@@ -283,7 +281,7 @@ class PxBypass {
}
async
step3
()
{
this
.
performanceNow
+=
randint
(
1000
,
2
000
)
this
.
performanceNow
=
randint
(
3000
,
4
000
)
// let data = genPayload2(this.url, this.sid, this.vid, this.ts, this.num1, this.num2,
// this.str1, this.uuid,
// this.startTs, this.startTs2, this.performanceNow, this.px12280)
...
...
@@ -364,7 +362,7 @@ async function run() {
await
px
.
step1
()
// await px.test()
//
await px.step2()
await
px
.
step2
()
// await sleep(1500)
...
...
@@ -372,7 +370,7 @@ async function run() {
if
(
px
.
check
())
{
continue
}
//
await sleep(1000)
await
sleep
(
1000
)
await
px
.
step4
()
if
(
px
.
check
())
{
...
...
@@ -380,9 +378,9 @@ async function run() {
}
// await sleep(1500)
//
await px.test()
await
px
.
test
()
await
px
.
add_headers
()
//
await px.add_headers()
await
sleep
(
1000
)
}
catch
(
e
)
{
console
.
log
(
e
)
...
...
test_search.py
View file @
c6795c1a
...
...
@@ -9,7 +9,13 @@ headers = {"authority": "booking.flyfrontier.com",
"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-US,en;q=0.9"
,
"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"
:
'_gcl_au=1.1.19136717.1701421425; _uetsid=8848d5e0902811ee86afbbbf17c51ed6; _uetvid=8848f420902811ee8161cf4462ff114d; _gid=GA1.2.1912190365.1701421426; _ga=GA1.1.1638578950.1701421426; _rdt_uuid=1701421425738.dd458a21-21bf-480c-969a-9bfc11c9aa48; wisepops_visits=
%5
B
%222023
-12-01T09
%3
A03
%3
A45.329Z
%22%5
D; pxcts=8901436c-9028-11ee-b437-0e393bfed68a; _pxvid=89013846-9028-11ee-b437-e84770752d96; _px2=eyJ1IjoiODc1ZGIxMjAtOTAyOC0xMWVlLTk0MDEtMTk3YzNlMTcxMzM0IiwidiI6Ijg5MDEzODQ2LTkwMjgtMTFlZS1iNDM3LWU4NDc3MDc1MmQ5NiIsInQiOjYyMDIzMzg4MDAwNCwiaCI6ImY1MTNhZjAyYTVlYmZlODFjODFlNjk2YWEyNWM2OWJjNzVhNGE4Yzc3NTA4MWRlMWU5OTFiYTY2YzliNTRhMWUifQ==; _up=1.2.189366662.1701421429; _fbp=fb.1.1701421441538.52436412; _tt_enable_cookie=1; _ttp=l1Aeh5a0ZbtNcwEfGckRaa6atkS; _pin_unauth=dWlkPVpXSmxNV0ptTm1VdE1EQmhaaTAwWkdJNUxXSXhOemd0TVRKbU1EQmpZamd4TjJSbQ; ORA_FPC=id=10cc0c64-522d-4ed2-8a00-203101d0550c; WTPERSIST=; wisepops_session=
%7
B
%22
arrivalOnSite
%22%3
A
%222023
-12-01T09
%3
A03
%3
A45.329Z
%22%2
C
%22
mtime
%22%3
A1701421456739
%2
C
%22
pageviews
%22%3
A1
%2
C
%22
popups
%22%3
A
%7
B
%22429858%22%3
A0
%7
D
%2
C
%22
bars
%22%3
A
%7
B
%7
D
%2
C
%22
sticky
%22%3
A
%7
B
%7
D
%2
C
%22
countdowns
%22%3
A
%7
B
%7
D
%2
C
%22
src
%22%3
Anull
%2
C
%22
utm
%22%3
A
%7
B
%7
D
%2
C
%22
testIp
%22%3
Anull
%7
D; wisepops=
%7
B
%22
csd
%22%3
A1
%2
C
%22
popups
%22%3
A
%7
B
%22429858%22%3
A
%7
B
%22
dc
%22%3
A1
%2
C
%22
d
%22%3
A1701421456739
%2
C
%22
cl
%22%3
A1
%7
D
%7
D
%2
C
%22
sub
%22%3
A0
%2
C
%22
ucrn
%22%3
A83
%2
C
%22
cid
%22%3
A
%2278471%22%2
C
%22
v
%22%3
A4
%2
C
%22
bandit
%22%3
A
%7
B
%22
recos
%22%3
A
%7
B
%7
D
%7
D
%7
D; _ga_P2WLKWBNNW=GS1.1.1701421425.1.0.1701421482.3.0.0'
"cookie"
:
'_pxvid=bdb471ca-9997-11ee-af3a-bd978ee09ba1; pxcts=bdb47dcd-9997-11ee-af3a-dd61ace0b9fc; _px2=eyJ1IjoiYmQzYjVlMDAtOTk5Ny0xMWVlLWEwM2MtNDk4NzU3ODQ4ZGJmIiwidiI6ImJkYjQ3MWNhLTk5OTctMTFlZS1hZjNhLWJkOTc4ZWUwOWJhMSIsInQiOjE3MDI0NTkwNTEyMjIsImgiOiJmMTIxNGQxYzI3YWQ5ZmJlN2M0ODMyNTc3ODNjZWY2ZDIxZjJjNWU2NjAyZjMzZWVlZWQzMjY4NDAwYjEyOWMwIn0='
}
...
...
@@ -49,10 +55,10 @@ prox = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrac
for
i
in
range
(
20
):
#
prox = 'http://127.0.0.1:8890'
prox
=
'http://127.0.0.1:8890'
# url = "http://httpbin.org/ip"
response
=
requests
.
post
(
'http://52.52.23.116/tls/forward'
,
#
response = requests.post('http://127.0.0.1:58000/tls/forward',
#
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
...
...
test_url.py
View file @
c6795c1a
...
...
@@ -13,7 +13,10 @@ prox = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrac
prox
=
'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:12019'
cks
=
'_px2=eyJ1IjoiOGRjYjQ3NjAt1ODljYi011xMWVlLTkwMmUtODE4MTcxMjRjOTBlIiwidiI6IjhlOGIyMGMzLTg5Y2ItMTFlZS05YWI1LTAwMjc4Njk4ZmY1ZiIsInQiOjYyMDIzMzg4MDAwNCwiaCI6Ijk4NjYzMWNkZDBmNTBjMWE5NjZjYjgwOGNlNzFjYTJkMWNkYzc2MjdjYTc4MTBlZDVhODdmN2FiMzYzOGU1OTgifQ=='
cks
=
'pxcts=703e9339-9997-11ee-93dd-00aad2ea56e5; _pxvid=703db0db-9997-11ee-93dd-c5ac7d2bc76f; _px2=eyJ1IjoiNmZhMDFlNjAtOTk5Ny0xMWVlLWJhMDQtMTk1MjhiYTJmNGFlIiwidiI6IjcwM2RiMGRiLTk5OTctMTFlZS05M2RkLWM1YWM3ZDJiYzc2ZiIsInQiOjE3MDI0NTg5MjE2NjksImgiOiIzOGE5MTY0NDYwYTI0YWJlMzQ1ZDBlYTJjZDQyMTY5NTNmOTZkZWI3ZDdjOTQzNWE1ZTBlN2QwOTgyZDYyMTUwIn0='
# cks = '_pxvid=568dad46-943f-11ee-97cd-fc5e04cd8e29; pxcts=568dbb9e-943f-11ee-97cd-a3273e57225d; _px2=eyJ1IjoiNTRhNDJjODAtOTQzZi0xMWVlLWJjYjUtYTkwODI5MTk5MTNiIiwidiI6IjU2OGRhZDQ2LTk0M2YtMTFlZS05N2NkLWZjNWUwNGNkOGUyOSIsInQiOjE3MDE4NzEzMjg3MjEsImgiOiIxYzNlNmVhNmI5NDQ4ZjE1YjA2MDA1OGU5MDJhN2UyMTJmMzk2Yzc5YmMwMWM0NmUxYWJlZDVmNzU2ZWI4NjQ4In0='
...
...
@@ -22,7 +25,7 @@ cks = '_px2=eyJ1IjoiOGRjYjQ3NjAt1ODljYi011xMWVlLTkwMmUtODE4MTcxMjRjOTBlIiwidiI6I
url
=
'https://booking.flyfrontier.com/Flight/InternalSelect?o1=DEN&d1=LAS&dd1=2023-1
1
-30&ADT=1&umnr=false&mon=true'
url
=
'https://booking.flyfrontier.com/Flight/InternalSelect?o1=DEN&d1=LAS&dd1=2023-1
2
-30&ADT=1&umnr=false&mon=true'
response
=
requests
.
post
(
'http://52.52.23.116/tls/forward'
,
json
=
dict
(
url
=
url
,
headers
=
{
"authority"
:
"booking.flyfrontier.com"
,
...
...
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