Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-shape
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wangmingming
lcc-shape
Commits
939bc2e4
Commit
939bc2e4
authored
Dec 20, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc test
parent
8fbf14a1
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
30 deletions
+29
-30
jetblue.py
jetblue.py
+16
-15
src_run_chrome_105.js
src_run_chrome_105.js
+5
-5
src_run_company_chrome.js
src_run_company_chrome.js
+8
-10
No files found.
jetblue.py
View file @
939bc2e4
...
...
@@ -86,12 +86,12 @@ while True:
tlsV
=
f
'chrome_{random.randint(105, 113)}'
tlsV
=
'chrome_112'
session
=
tls_client
.
Session
(
tlsV
)
#
if platform.uname().system == 'Darwin':
#
proxy = 'http://127.0.0.1:7890'
#
session.proxies = {
#
'http': proxy,
#
'https': proxy,
#
}
if
platform
.
uname
()
.
system
==
'Darwin'
:
proxy
=
'http://127.0.0.1:7890'
session
.
proxies
=
{
'http'
:
proxy
,
'https'
:
proxy
,
}
# selectId = 'a74b38e7115cf4d1b1f6976c'
c
=
session
.
get
(
'https://www.southwest.com/assets/app/scripts/swa-common.js'
,
insecure_skip_verify
=
True
)
.
text
m5
=
md5
(
c
)
...
...
@@ -114,12 +114,13 @@ while True:
# token = list(db.token_shape.aggregate( [ { '$sample': { 'size': 1 } } ] ))[0]['_id']
# r = requests.get('http://127.0.0.1:5000/getinfo').json()['message']
# r = requests.get('http://127.0.0.1:3001').json()
#
p = subprocess.Popen(['node', 'js_dom_run1.js', selectId, '11'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
p
=
subprocess
.
Popen
([
'node'
,
'src_run_chrome_105.js'
,
selectId
,
'11'
,
token
],
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
p
=
subprocess
.
Popen
([
'node'
,
'js_dom_run1.js'
,
selectId
,
'11'
],
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
#
p = subprocess.Popen(['node', 'src_run_chrome_105.js', selectId, '11', token], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
# p = subprocess.Popen(['node', 'src_run_company_chrome.js', selectId, '11', token], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
# p = subprocess.Popen(['node', 'src_run1.js', selectId, '11', token], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr
=
subprocess
.
PIPE
)
output
,
err
=
p
.
communicate
(
timeout
=
10
)
tmp
=
''
if
p
.
returncode
==
0
:
tmp
=
output
.
decode
()
.
split
(
'
\n
'
)[
-
2
]
...
...
@@ -160,13 +161,13 @@ while True:
#
# # session = requests.Session()
#
#
response = session.post(url, headers=headers, json=data, insecure_skip_verify=True)
#
status_code = response.status_code
response
=
requests
.
post
(
'http://52.52.23.116/tls/forward'
,
json
=
dict
(
url
=
url
,
headers
=
headers
,
data
=
json
.
dumps
(
data
),
method
=
"POST"
,
proxy
=
proxy
,
debug
=
True
,
allow_redirects
=
True
))
status_code
=
response
.
json
()[
'status_code'
]
response
=
session
.
post
(
url
,
headers
=
headers
,
json
=
data
,
insecure_skip_verify
=
True
)
status_code
=
response
.
status_code
#
response = requests.post('http://52.52.23.116/tls/forward',
#
json=dict(url=url, headers=headers,data=json.dumps(data), method="POST", proxy=proxy, debug=True
#
, allow_redirects=True
#
))
#
status_code = response.json()['status_code']
logger
.
info
(
f
'tls:{tlsV} proxy:{proxy} res:: {status_code}'
)
# total += 1
print
(
response
.
text
)
...
...
src_run_chrome_105.js
View file @
939bc2e4
This diff is collapsed.
Click to expand it.
src_run_company_chrome.js
View file @
939bc2e4
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