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
d4422d11
Commit
d4422d11
authored
Sep 20, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
0a55c65f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
reese84_bypass.py
src/reese84_bypass.py
+8
-8
No files found.
src/reese84_bypass.py
View file @
d4422d11
...
...
@@ -234,14 +234,14 @@ class Reese84ByPass(object):
self
.
token
=
response
.
json
()[
'token'
]
def
_get_cookie
(
self
):
r
=
requests
.
post
(
'http://aws-lcc.unififi.com/akamai/gen'
,
json
=
{
'type'
:
"VA"
,
# 'proxy': 'http://uni00002_custom_zone_US2_sid_85468327_time_5:FdkiGHty9a@us.ipwo.net:7878'
# 'proxy': 'http://user-uni001-region-us-sessid-ussjSyPZaN-sesstime-1-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
'proxy'
:
self
.
proxy
,
},
timeout
=
600
)
print
(
r
.
text
)
self
.
_session
.
cookies
.
update
(
r
.
json
()[
'cookies'
])
#
r = requests.post('http://aws-lcc.unififi.com/akamai/gen', json={
#
'type': "VA",
#
# 'proxy': 'http://uni00002_custom_zone_US2_sid_85468327_time_5:FdkiGHty9a@us.ipwo.net:7878'
#
# 'proxy': 'http://user-uni001-region-us-sessid-ussjSyPZaN-sesstime-1-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
#
'proxy': self.proxy,
#
}, timeout=600)
#
print(r.text)
#
self._session.cookies.update(r.json()['cookies'])
return
self
.
add_header
,
self
.
_session
.
cookies
.
items
()
def
_test
(
self
):
...
...
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