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
edc7e158
Commit
edc7e158
authored
Sep 20, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
30f54cbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
reese84_bypass.py
src/reese84_bypass.py
+10
-1
No files found.
src/reese84_bypass.py
View file @
edc7e158
...
@@ -7,6 +7,7 @@ import tempfile
...
@@ -7,6 +7,7 @@ import tempfile
import
time
import
time
from
pathlib
import
Path
from
pathlib
import
Path
import
requests
import
tls_client
import
tls_client
# import tls_client
# import tls_client
# from curl_cffi import requests
# from curl_cffi import requests
...
@@ -41,6 +42,7 @@ class Reese84ByPass(object):
...
@@ -41,6 +42,7 @@ class Reese84ByPass(object):
# self._session = requests.Session()
# self._session = requests.Session()
self
.
_session
.
verify
=
False
self
.
_session
.
verify
=
False
self
.
__target
=
target
self
.
__target
=
target
self
.
proxy
=
proxy
if
proxy
!=
''
:
if
proxy
!=
''
:
self
.
_session
.
proxies
=
{
self
.
_session
.
proxies
=
{
'http'
:
proxy
,
'http'
:
proxy
,
...
@@ -232,7 +234,14 @@ class Reese84ByPass(object):
...
@@ -232,7 +234,14 @@ class Reese84ByPass(object):
self
.
token
=
response
.
json
()[
'token'
]
self
.
token
=
response
.
json
()[
'token'
]
def
_get_cookie
(
self
):
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'
])
return
self
.
add_header
,
self
.
_session
.
cookies
.
items
()
return
self
.
add_header
,
self
.
_session
.
cookies
.
items
()
def
_test
(
self
):
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