Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-reese84
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
lcc-reese84
Commits
ae75e627
Commit
ae75e627
authored
Oct 12, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
22d82751
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1463 additions
and
3199 deletions
+1463
-3199
decode_p.js
decode_p.js
+74
-0
HTMLCanvasElement-impl.js
src/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js
+7
-7
mitm.py
src/mitm.py
+70
-0
reese84_bypass.py
src/reese84_bypass.py
+2
-1
run.js
src/run.js
+1243
-3135
test.py
test.py
+67
-56
No files found.
decode_p.js
0 → 100644
View file @
ae75e627
This diff is collapsed.
Click to expand it.
src/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js
View file @
ae75e627
...
...
@@ -2313,13 +2313,13 @@ class TextMetrics {
this
.
_TextMetrics
=
metrics
[
this
.
_font
][
this
.
_text
]
}
catch
(
e
)
{
console
.
log
(
'_TextMetrics'
,
this
.
_text
,
this
.
_font
)
this
.
_TextMetrics
=
{
width
:
180.55
,
"actualboundingboxascent"
:
714
,
"actualboundingboxdescent"
:
0
,
"actualboundingboxleft"
:
-
64
,
"actualboundingboxright"
:
537
,
}
//
this._TextMetrics = {
//
width: 180.55,
//
"actualboundingboxascent": 714,
//
"actualboundingboxdescent": 0,
//
"actualboundingboxleft": -64,
//
"actualboundingboxright": 537,
//
}
}
}
...
...
src/mitm.py
0 → 100644
View file @
ae75e627
"""Add an HTTP header to each response."""
import
base64
import
json
import
subprocess
class
AddHeader
:
def
__init__
(
self
):
self
.
num
=
0
def
request
(
self
,
flow
):
req
=
flow
.
request
# if req.method == 'GET' and req.path.endswith('comfort'):
print
(
req
.
url
)
# with open('/tmp/body2.txt', 'w') as f:
# # print(dir(req.headers))
# headers = {i[0]: i[1]for i in req.headers.items()}
# print(headers['x-kpsdk-dt'], len(headers['x-kpsdk-dt']))
# print(len(req.content))
# f.write(json.dumps({
# 'body': base64.b64encode(req.content).decode(),
# 'headers': headers
# }))
# p = subprocess.Popen(['/Users/wang/Desktop/node/out/Release/node', '/Users/wang/Documents/mine-vm/xbk.js'],
# # p = subprocess.Popen(['/Users/wang/Documents/node/nodemacintel', '/Users/wang/Documents/mine-vm/xbk.js'],
# stdin=subprocess.PIPE,
# stdout=subprocess.PIPE,
# stderr=subprocess.PIPE)
# output, err = p.communicate(timeout=30)
# print('err', err)
# print('out', output)
# # if p.returncode != 0:
# # raise Exception("")
# # input('....')
# d = json.loads(open('/tmp/body.txt', 'r').read())
# req.content = base64.b64decode(d['body'].encode())
# print(d['headers']['x-kpsdk-dt'], len(d['headers']['x-kpsdk-dt']))
# req.headers.update({
# # 'x-kpsdk-dt': d['headers']['x-kpsdk-dt'],
# 'x-kpsdk-dt': '16gx42ux1d9y73x5gx36z217z0in',
# # 'x-kpsdk-ct': d['headers']['x-kpsdk-ct'],
# })
def
response
(
self
,
flow
):
req
=
flow
.
request
res
=
flow
.
response
if
req
.
method
==
'GET'
and
req
.
path
.
endswith
(
'comfort'
):
print
(
'res'
,
req
.
url
)
res
.
content
=
open
(
'/Users/wang/Documents/jsvmp/reese84.js'
,
'rb'
)
.
read
()
# if req.path.find('ips.js') > -1:
# with open('/Users/wang/Documents/mine-vm/tests/ksada2.js', 'wb') as f:
# # with open('/Users/wang/Documents/jsvmp/t.js', 'wb') as f:
# f.write(res.content)
# if req.path.find('/tl') > -1:
# d = json.loads(open('/tmp/body3.txt', 'r').read())
# res.headers.update({
# 'x-kpsdk-st': str(d['st']),
# 'x-kpsdk-ct': d['ct'],
# 'x-kpsdk-r': str(d['ct']),
# })
# res.headers.pop('set-cookie')
#
# res.headers.insert(0,'set-cookie', f'ak_bm_vw_1.1-ssn={d["ct"]}; Max-Age=86400; Path=/; Expires=Fri, 16 Aug 2024 10:25:31 GMT; HttpOnly; Secure; SameSite=None')
# res.headers.insert(1,'set-cookie', f'ak_bm_vw_1.1={d["ct"]}; Max-Age=86400; Path=/; Expires=Fri, 16 Aug 2024 10:25:31 GMT; HttpOnly; Secure; SameSite=None')
addons
=
[
AddHeader
()]
\ No newline at end of file
src/reese84_bypass.py
View file @
ae75e627
...
...
@@ -121,6 +121,7 @@ class Reese84ByPass(object):
def
_repare_js
(
self
):
self
.
_session
.
cookies
.
clear
()
t1
=
time
.
time
()
self
.
_js_url
=
'/rgeonseart-Cawdor-mine-no-our-selfe-Wife-comfort'
r1
=
self
.
_session
.
get
(
'https://www.transavia.com'
+
self
.
_js_url
,
headers
=
{
"authority"
:
"www.transavia.com"
,
...
...
@@ -359,7 +360,7 @@ if __name__ == '__main__':
r
=
Reese84ByPass
(
'https://www.transavia.com/'
,
'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:9000'
)
# r = Reese84ByPass('https://www.transavia.com/', 'http://user-uni007-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600')
r
=
Reese84ByPass
(
'https://www.transavia.com/'
,
'http://127.0.0.1:
8
890'
)
r
=
Reese84ByPass
(
'https://www.transavia.com/'
,
'http://127.0.0.1:
7
890'
)
# r = Reese84ByPass('https://www.transavia.com/', f'http://uni00001_custom_zone_US_sid_{random.randint(67336718, 67336728)}_time_5:q39CEBTs5A@us.foxyip.com:7778')
# while True:
r
.
start
()
...
...
src/run.js
View file @
ae75e627
This diff is collapsed.
Click to expand it.
test.py
View file @
ae75e627
This diff is collapsed.
Click to expand it.
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