Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
px3
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
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangmingming
px3
Commits
6acd511d
Commit
6acd511d
authored
Jun 26, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收集环境
parent
945c3394
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
collect_px.py
collect_env/collect_px.py
+7
-3
f91.js
src/f91.js
+3
-4
No files found.
collect_env/collect_px.py
View file @
6acd511d
from
flask
import
Flask
,
request
,
render_template
,
send_file
from
flask
import
Flask
,
request
,
render_template
,
send_file
,
jsonify
app
=
Flask
(
__name__
)
...
...
@@ -26,8 +25,13 @@ def mouses():
def
collectMouse
():
print
(
request
.
data
.
decode
())
return
'ok'
@
app
.
route
(
'/tl'
,
methods
=
[
'POST'
])
def
tl
():
print
(
request
.
data
)
return
jsonify
({
'reload'
:
True
})
if
__name__
==
'__main__'
:
# app.run(host='0.0.0.0',debug=True, port=1123
3)
app
.
run
(
host
=
'0.0.0.0'
,
debug
=
True
,
port
=
1122
3
)
import
random
username
=
'brd-customer-hl_70986309-zone-isp'
...
...
src/f91.js
View file @
6acd511d
...
...
@@ -11,7 +11,6 @@ let keys = Object.keys(ENVS);
let
uri
;
if
(
plt
!==
'darwin'
)
{
uri
=
"mongodb://lcc-spider:JIUsfhiad&^@54.183.159.9:27017/?authSource=admin&directConnection=true"
;
}
else
{
uri
=
'mongodb://root:123456@192.168.50.110:27017/'
...
...
@@ -232,7 +231,7 @@ class PxBypass {
if
(
!
this
.
is_local
)
{
let
proxyRes
=
await
axios
({
method
:
'post'
,
url
:
'http://
ymx
-lcc.unififi.com/proxy/get-proxy'
,
url
:
'http://
aws
-lcc.unififi.com/proxy/get-proxy'
,
headers
:
{
'Content-Type'
:
'application/json'
},
...
...
@@ -294,7 +293,7 @@ class PxBypass {
let
cks
=
Object
.
keys
(
this
.
cookies
).
map
((
v
,
k
)
=>
`
${
v
}
=
${
this
.
cookies
[
v
]}
`
).
join
(
'; '
)
this
.
log
.
info
(
'cookie'
,
cks
)
let
res
=
await
axios
.
post
(
'http://
ymx
-lcc.unififi.com/header/add'
,
JSON
.
stringify
({
let
res
=
await
axios
.
post
(
'http://
aws
-lcc.unififi.com/header/add'
,
JSON
.
stringify
({
'brush_fromto'
:
'LAS-BOS'
,
'brush_fromdate'
:
'2023-05-26'
,
'brush_header'
:
headers
,
...
...
@@ -1074,7 +1073,7 @@ class PxBypass {
async
function
run
()
{
while
(
true
)
{
try
{
// let res = await axios.get('http://
ymx
-lcc.unififi.com/header/task/pull/cookieF9?brush_name=test')
// let res = await axios.get('http://
aws
-lcc.unififi.com/header/task/pull/cookieF9?brush_name=test')
// let data = res.data;
//
let
data
=
{
...
...
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