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
fa2b95d8
Commit
fa2b95d8
authored
Dec 18, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc test
parent
59ac25b8
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
550 additions
and
1270 deletions
+550
-1270
src.js
wn/src.js
+523
-1264
test.py
wn/test.py
+1
-1
wn.py
wn/wn.py
+26
-5
No files found.
wn/src.js
View file @
fa2b95d8
This diff is collapsed.
Click to expand it.
wn/test.py
View file @
fa2b95d8
This diff is collapsed.
Click to expand it.
wn/wn.py
View file @
fa2b95d8
...
@@ -122,7 +122,23 @@ while True:
...
@@ -122,7 +122,23 @@ while True:
})
})
code
=
open
(
'src.js'
,
'r'
,
encoding
=
'utf-8'
)
.
read
()
code
=
open
(
'src.js'
,
'r'
,
encoding
=
'utf-8'
)
.
read
()
with
open
(
'src_run1.js'
,
'w'
,
encoding
=
'utf-8'
)
as
f
:
with
open
(
'src_run1.js'
,
'w'
,
encoding
=
'utf-8'
)
as
f
:
f
.
write
(
code
+
'
\n\n
'
+
c
)
with
open
(
'src_run1.js'
,
'w'
,
encoding
=
'utf-8'
)
as
f
:
f
.
write
(
code
+
'
\n\n
'
+
c
+
';;;
\n\n
'
+
'''
if (randomEvent){
window.mouse_move(startx,starty,endx,endy)
}
var xhr = new XMLHttpRequest();
xhr.open('POST', "https://www.southwest.com/api/air-booking/v1/air-booking/page/air/booking/shopping", false);
xhr.send(`{
\"
tripType
\"
:
\"
oneWay
\"
,
\"
from
\"
:
\"
ZLA
\"
,
\"
to
\"
:
\"
NAS
\"
,
\"
depart
\"
:
\"
2023-04-11
\"
,
\"
cabin
\"
:
\"
economy
\"
,
\"
refundable
\"
:false,
\"
dates
\"
:{
\"
before
\"
:
\"
3
\"
,
\"
after
\"
:
\"
3
\"
},
\"
pax
\"
:{
\"
ADT
\"
:1,
\"
CHD
\"
:0,
\"
INF
\"
:0,
\"
UNN
\"
:0},
\"
redempoint
\"
:false,
\"
pointsBreakup
\"
:{
\"
option
\"
:
\"\"
,
\"
value
\"
:0},
\"
isMultiCity
\"
:false}`)
xhr.setRequestHeader('user-agent', ENV.navigatorparams.useragent)
print(JSON.stringify(xhr.headers))
_process.exit(0)
'''
)
# # with open('js_dom_run1.js', 'w', encoding='utf-8') as f:
# # with open('js_dom_run1.js', 'w', encoding='utf-8') as f:
# # f.write(code1 + '\n\n' + c)`
# # f.write(code1 + '\n\n' + c)`
t1
=
time
.
time
()
t1
=
time
.
time
()
...
@@ -156,7 +172,7 @@ while True:
...
@@ -156,7 +172,7 @@ while True:
data
=
{
data
=
{
"originationAirportCode"
:
"LAS"
,
"originationAirportCode"
:
"LAS"
,
"destinationAirportCode"
:
"LAX"
,
"destinationAirportCode"
:
"LAX"
,
"departureDate"
:
"2023-1
0
-03"
,
"departureDate"
:
"2023-1
2
-03"
,
"departureTimeOfDay"
:
"ALL_DAY"
,
"departureTimeOfDay"
:
"ALL_DAY"
,
"returnTimeOfDay"
:
"ALL_DAY"
,
"returnTimeOfDay"
:
"ALL_DAY"
,
"adultPassengersCount"
:
"1"
,
"adultPassengersCount"
:
"1"
,
...
@@ -173,10 +189,15 @@ while True:
...
@@ -173,10 +189,15 @@ while True:
#
#
# # session = requests.Session()
# # session = requests.Session()
#
#
response
=
session
.
post
(
url
,
headers
=
headers
,
json
=
data
,
insecure_skip_verify
=
True
)
response
=
requests
.
post
(
'http://52.52.23.116/tls/forward'
,
logger
.
info
(
f
'tls:{tlsV} proxy:{proxy} res:: {response.status_code}'
)
json
=
dict
(
url
=
url
,
headers
=
headers
,
method
=
"POST"
,
data
=
json
.
dumps
(
data
),
proxy
=
proxy
,
debug
=
True
,
allow_redirects
=
True
))
status_code
=
response
.
json
()[
'status_code'
]
text
=
response
.
json
()[
'text'
]
logger
.
info
(
f
'tls:{tlsV} proxy:{proxy} res:: {status_code}'
)
# total += 1
# total += 1
print
(
response
.
text
)
print
(
text
)
# if response.status_code != 403:
# if response.status_code != 403:
# res = db.env_shape.update_one(
# res = db.env_shape.update_one(
# {'_id': ObjectId(selectId)},
# {'_id': ObjectId(selectId)},
...
...
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