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
4aacba69
Commit
4aacba69
authored
Oct 06, 2023
by
wangmingming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
请求造纸
parent
2297df14
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
9 deletions
+42
-9
jetblue.py
b6/src/jetblue.py
+2
-2
start.js
b6/src/start.js
+40
-7
No files found.
b6/src/jetblue.py
View file @
4aacba69
...
...
@@ -117,7 +117,7 @@ while True:
# # with open('js_dom_run1.js', 'w', encoding='utf-8') as f:
# # f.write(code1 + '\n\n' + c)`
t1
=
time
.
time
()
token
=
list
(
db
.
token_shape
.
aggregate
(
[
{
'$sample'
:
{
'size'
:
1
}
}
]
))[
0
][
'_id'
]
#
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_run.js', selectId, '11'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
...
...
@@ -141,7 +141,7 @@ while True:
headers
.
update
(
r
)
# headers = r
logger
.
info
(
f
"success:{success} total:{total} {(time.time() - t1) *1000:.3f}ms {len(headers['X-1ItxWO9i-a'.lower()])} {selectId} {headers['user-agent']}"
)
logger
.
info
(
f
"success:{success} proxy: {proxy}
token: {token}
"
)
logger
.
info
(
f
"success:{success} proxy: {proxy}"
)
url
=
"https://jbrest.jetblue.com/lfs-rwb/outboundLFS"
data
=
{
...
...
b6/src/start.js
View file @
4aacba69
...
...
@@ -40,10 +40,26 @@ http.createServer((request,response)=>{
window.mouse_move(startx,starty,endx,endy)
}
sid = keys[parseInt(
Math.
random() * keys.length)]
sid = keys[parseInt(
_
random() * keys.length)]
// sid = "b93e97591189a5841d0288ba"
ENV = ENVS[sid]
navis = {
appCodeName: "Mozilla",
appName: ENV.navigatorparams.appname,
appVersion: ENV.navigatorparams.appversion,
language: "en-US",
languages: ['en-US', 'en', 'ru'],
maxTouchPoints: 0,
platform: ENV.navigatorparams.platform,
product: ENV.navigatorparams.product,
productSub: ENV.navigatorparams.productsub,
userAgent: ENV.navigatorparams.useragent,
vendor: ENV.navigatorparams.vendor,
vendorSub: "",
webdriver: false,
hardwareconcurrency: ENV.navigatorparams.hardwareconcurrency
}
var xhr = new XMLHttpRequest();
xhr.open('POST', "https://jbrest.jetblue.com/lfs-rwb/outboundLFS", false);
xhr.send("")
...
...
@@ -68,11 +84,11 @@ http.createServer((request,response)=>{
// console.log(apps)
// console.log()
})
pm2
.
start
({
interpreter
:
'python3'
,
script
:
'jetblue.py'
,
name
:
'main'
})
//
pm2.start({
//
interpreter: 'python3',
//
script: 'jetblue.py',
//
name:'main'
//
})
setInterval
(
async
function
()
{
let
res
=
await
fetch
(
'https://www.jetblue.com/js/src/jb-74873.js'
);
...
...
@@ -93,10 +109,27 @@ http.createServer((request,response)=>{
window.mouse_move(startx,starty,endx,endy)
}
sid = keys[parseInt(
Math.
random() * keys.length)]
sid = keys[parseInt(
_
random() * keys.length)]
// sid = "b93e97591189a5841d0288ba"
ENV = ENVS[sid]
navis = {
appCodeName: "Mozilla",
appName: ENV.navigatorparams.appname,
appVersion: ENV.navigatorparams.appversion,
language: "en-US",
languages: ['en-US', 'en', 'ru'],
maxTouchPoints: 0,
platform: ENV.navigatorparams.platform,
product: ENV.navigatorparams.product,
productSub: ENV.navigatorparams.productsub,
userAgent: ENV.navigatorparams.useragent,
vendor: ENV.navigatorparams.vendor,
vendorSub: "",
webdriver: false,
hardwareconcurrency: ENV.navigatorparams.hardwareconcurrency
}
var xhr = new XMLHttpRequest();
xhr.open('POST', "https://jbrest.jetblue.com/lfs-rwb/outboundLFS", false);
xhr.send("")
...
...
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