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
b507a38c
Commit
b507a38c
authored
Jan 13, 2024
by
wangmingming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
8269e494
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
93 additions
and
56 deletions
+93
-56
src.js
wn/src.js
+67
-30
wn.py
wn/wn.py
+26
-26
No files found.
wn/src.js
View file @
b507a38c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
wn/wn.py
View file @
b507a38c
...
@@ -31,7 +31,7 @@ db = client.env
...
@@ -31,7 +31,7 @@ db = client.env
# with open('env.json', 'w', encoding='utf-8') as f:
# with open('env.json', 'w', encoding='utf-8') as f:
# f.write(json.dumps(data))
# f.write(json.dumps(data))
with
open
(
'
../
env.json'
,
'r'
,
encoding
=
'utf-8'
)
as
f
:
with
open
(
'env.json'
,
'r'
,
encoding
=
'utf-8'
)
as
f
:
data
=
json
.
loads
(
f
.
read
())
data
=
json
.
loads
(
f
.
read
())
envs
=
data
.
keys
()
envs
=
data
.
keys
()
...
@@ -71,7 +71,8 @@ headers = {
...
@@ -71,7 +71,8 @@ headers = {
# 'safari_ios_15_6'
# 'safari_ios_15_6'
# ]
# ]
success
=
0
total
=
0
while
True
:
while
True
:
# r = requests.get('http://ymx-lcc.unififi.com/header/task/pull/headerB6?brush_name=test')
# r = requests.get('http://ymx-lcc.unififi.com/header/task/pull/headerB6?brush_name=test')
# if r.json()['status'] != 0:
# if r.json()['status'] != 0:
...
@@ -82,8 +83,7 @@ while True:
...
@@ -82,8 +83,7 @@ while True:
selectId
=
random
.
choice
(
list
(
envs
))
selectId
=
random
.
choice
(
list
(
envs
))
lastHash
=
''
lastHash
=
''
usedTime
=
10
usedTime
=
10
success
=
0
total
=
0
code
=
open
(
'src.js'
,
'r'
,
encoding
=
'utf-8'
)
.
read
()
code
=
open
(
'src.js'
,
'r'
,
encoding
=
'utf-8'
)
.
read
()
for
i
in
range
(
30
):
for
i
in
range
(
30
):
try
:
try
:
...
@@ -91,9 +91,9 @@ while True:
...
@@ -91,9 +91,9 @@ while True:
proxy
=
f
'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{int(random.randint(10000, 11149))}'
proxy
=
f
'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{int(random.randint(10000, 11149))}'
proxy
=
requests
.
post
(
'http://ymx-lcc.unififi.com/proxy/get-proxy'
,
json
=
{
'name'
:
"B6"
,
'type'
:
'shopping'
})
.
json
()[
'url'
]
proxy
=
requests
.
post
(
'http://ymx-lcc.unififi.com/proxy/get-proxy'
,
json
=
{
'name'
:
"B6"
,
'type'
:
'shopping'
})
.
json
()[
'url'
]
# proxy = f'http://ynfflcc2023.hotmail.com:gdcfh9@69.30.227.194:{random.randint(20001, 20250)}'
# proxy = f'http://ynfflcc2023.hotmail.com:gdcfh9@69.30.227.194:{random.randint(20001, 20250)}'
#
proxy = f'http://user-uni003-region-us-sessid-${random.randint(1000,5000)}-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
proxy
=
f
'http://user-uni003-region-us-sessid-${random.randint(1000,5000)}-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
# proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@198.147.25.26:{int(random.randint(10000, 11149))}'
# proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@198.147.25.26:{int(random.randint(10000, 11149))}'
proxy
=
'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
#
proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
tlsV
=
f
'chrome_{random.randint(105, 113)}'
tlsV
=
f
'chrome_{random.randint(105, 113)}'
tlsV
=
'chrome_112'
tlsV
=
'chrome_112'
...
@@ -175,32 +175,32 @@ while True:
...
@@ -175,32 +175,32 @@ while True:
#
#
response
=
session
.
post
(
url
,
headers
=
headers
,
json
=
data
,
insecure_skip_verify
=
True
)
response
=
session
.
post
(
url
,
headers
=
headers
,
json
=
data
,
insecure_skip_verify
=
True
)
logger
.
info
(
f
'tls:{tlsV} proxy:{proxy} res:: {response.status_code}'
)
logger
.
info
(
f
'tls:{tlsV} proxy:{proxy} res:: {response.status_code}'
)
#
total += 1
total
+=
1
print
(
response
.
text
)
print
(
response
.
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)},
# {"$inc": {"success": 1}}
# {"$inc": {"success": 1}}
# )
# )
# # proxy = requests.post('http://ymx-lcc.unififi.com/proxy/get-proxy', json={
# proxy = requests.post('http://ymx-lcc.unififi.com/proxy/get-proxy', json={
# # 'type':'headerB6'
# 'type':'headerB6'
# # })
# uri = 'http://ymx-lcc.unififi.com/header/add'
# # uri = 'http://52.52.23.116/header/add'
# # proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{int(random.randint(10000, 11149))}'
# # proxy = 'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:10042'
# # proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
# r = requests.post(uri, json={
# 'brush_fromto': 'LAS-BOS',
# 'brush_fromdate': '2023-05-26',
# 'brush_header': headers,
# 'brush_proxy': proxy,
# 'brush_mode': 'shopping',
# 'brush_name': 'ts1',
# 'brush_type': 'headerB6',
# })
# })
# success += 1
uri
=
'http://ymx-lcc.unififi.com/header/add'
# logger.success(f'添加成功 {success}')
# uri = 'http://52.52.23.116/header/add'
# proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:{int(random.randint(10000, 11149))}'
# proxy = 'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@usa.rotating.proxyrack.net:10042'
# proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
r
=
requests
.
post
(
uri
,
json
=
{
'brush_fromto'
:
'LAS-BOS'
,
'brush_fromdate'
:
'2023-05-26'
,
'brush_header'
:
headers
,
'brush_proxy'
:
proxy
,
'brush_mode'
:
'shopping'
,
'brush_name'
:
'ts1'
,
'brush_type'
:
'cookieWN'
,
})
success
+=
1
logger
.
success
(
f
'添加成功 {success}'
)
# time.sleep(3)
# time.sleep(3)
except
Exception
as
e
:
except
Exception
as
e
:
print
(
e
)
print
(
e
)
...
...
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