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
ab409dd2
Commit
ab409dd2
authored
Sep 10, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws 测试
parent
d6be9a5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
main.py
ws/src/main.py
+15
-8
No files found.
ws/src/main.py
View file @
ab409dd2
...
@@ -191,6 +191,9 @@ headers = {
...
@@ -191,6 +191,9 @@ headers = {
success
=
0
success
=
0
total
=
0
total
=
0
token
=
''
token
=
''
run_js_md5
=
''
run_js_cache
=
''
run_js_code
=
''
while
True
:
while
True
:
r
=
requests
.
get
(
'http://aws-lcc.unififi.com/header/task/pull/cookieWS?brush_name=test'
)
r
=
requests
.
get
(
'http://aws-lcc.unififi.com/header/task/pull/cookieWS?brush_name=test'
)
if
platform
.
uname
()
.
system
==
'Darwin'
:
if
platform
.
uname
()
.
system
==
'Darwin'
:
...
@@ -257,16 +260,20 @@ while True:
...
@@ -257,16 +260,20 @@ while True:
usedTime
=
0
usedTime
=
0
logger
.
debug
(
'js变化'
)
logger
.
debug
(
'js变化'
)
js_uri
=
re
.
findall
(
'(https://www
\
.westjet
\
.com/resources/.+?)"'
,
c1
)[
0
]
js_uri
=
re
.
findall
(
'(https://www
\
.westjet
\
.com/resources/.+?)"'
,
c1
)[
0
]
logger
.
info
(
f
'get {js_uri}'
)
response
=
requests
.
post
(
'http://52.52.23.116/tls/forward'
,
if
run_js_cache
!=
js_uri
:
json
=
dict
(
url
=
js_uri
,
logger
.
info
(
f
'get {js_uri}'
)
headers
=
headers
,
method
=
"GET"
,
proxy
=
proxy
,
debug
=
True
run_js_cache
=
js_uri
,
allow_redirects
=
True
,
random_tls
=
True
response
=
requests
.
post
(
'http://52.52.23.116/tls/forward'
,
))
json
=
dict
(
url
=
js_uri
,
c2
=
response
.
json
()[
'text'
]
headers
=
headers
,
method
=
"GET"
,
proxy
=
proxy
,
debug
=
True
,
allow_redirects
=
True
,
random_tls
=
True
))
c2
=
response
.
json
()[
'text'
]
run_js_code
=
c2
code
=
open
(
'src2.js'
,
'r'
,
encoding
=
'utf-8'
)
.
read
()
code
=
open
(
'src2.js'
,
'r'
,
encoding
=
'utf-8'
)
.
read
()
with
open
(
'src_run3.js'
,
'w'
,
encoding
=
'utf-8'
)
as
f
:
with
open
(
'src_run3.js'
,
'w'
,
encoding
=
'utf-8'
)
as
f
:
f
.
write
(
code
+
'
\n\n
'
+
';;'
+
c1
+
';;;
\n\n
;;;'
+
c2
f
.
write
(
code
+
'
\n\n
'
+
';;'
+
c1
+
';;;
\n\n
;;;'
+
run_js_code
+
+
';;;
\n\n
'
+
'''
';;;
\n\n
'
+
'''
...
...
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