Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxScanck
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
yaozheng
wxScanck
Commits
f40c9153
Commit
f40c9153
authored
Apr 15, 2022
by
TesterYao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e269997e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
ssp.py
ssp.py
+1
-0
No files found.
ssp.py
View file @
f40c9153
...
@@ -33,6 +33,7 @@ class SSP:
...
@@ -33,6 +33,7 @@ class SSP:
def
post_block_list
(
self
,
b_url
):
def
post_block_list
(
self
,
b_url
):
LOG
.
info
(
'SSP上报被封域名:'
+
b_url
)
LOG
.
info
(
'SSP上报被封域名:'
+
b_url
)
r
=
self
.
session
.
get
(
url
=
self
.
host
+
self
.
block_list_url
+
b_url
.
split
(
'https://'
)[
1
]
+
'&resulting=1'
)
r
=
self
.
session
.
get
(
url
=
self
.
host
+
self
.
block_list_url
+
b_url
.
split
(
'https://'
)[
1
]
+
'&resulting=1'
)
LOG
.
info
(
'上报结果:'
+
r
.
text
)
if
r
.
status_code
==
200
and
r
.
json
()
.
get
(
'desc'
)
==
"成功"
:
if
r
.
status_code
==
200
and
r
.
json
()
.
get
(
'desc'
)
==
"成功"
:
LOG
.
info
(
'上报成功:'
+
r
.
text
)
LOG
.
info
(
'上报成功:'
+
r
.
text
)
else
:
else
:
...
...
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