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
1f941649
Commit
1f941649
authored
Aug 29, 2022
by
TesterYao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0da35fe0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
dingMessage.py
dingMessage.py
+5
-2
wx-cli-ck.py
wx-cli-ck.py
+9
-1
No files found.
dingMessage.py
View file @
1f941649
...
@@ -6,17 +6,20 @@ import requests
...
@@ -6,17 +6,20 @@ import requests
import
time
import
time
import
urllib
import
urllib
def
send_messages
(
content
):
def
send_messages
(
content
,
mobile
):
webhook
=
'https://oapi.dingtalk.com/robot/send?access_token='
webhook
=
'https://oapi.dingtalk.com/robot/send?access_token='
headers
=
{
"Content-Type"
:
"application/json; charset=utf-8"
}
headers
=
{
"Content-Type"
:
"application/json; charset=utf-8"
}
token
=
'76332b31c5604e23d386c771202f4581a3bed8b4e73df7968f34e19b1f284738'
token
=
'76332b31c5604e23d386c771202f4581a3bed8b4e73df7968f34e19b1f284738'
secret
=
'SECb4efc8c7305357f3b0beb1b53650061a7f165ae5e247a03533e02156f3fbad5a'
secret
=
'SECb4efc8c7305357f3b0beb1b53650061a7f165ae5e247a03533e02156f3fbad5a'
atMobiles
=
[
'17816616945'
,
'13875018906'
,
'18612924181'
]
if
mobile
:
atMobiles
.
append
(
mobile
)
data_info
=
{
data_info
=
{
"msgtype"
:
"text"
,
"msgtype"
:
"text"
,
"text"
:
{
"text"
:
{
"content"
:
content
"content"
:
content
},
},
"at"
:
{
'atMobiles'
:
[
'15010432637'
,
'13875018906'
,
'18518552824'
,
'18612924181'
]
}
"at"
:
{
'atMobiles'
:
atMobiles
}
}
}
timestamp
=
str
(
round
(
time
.
time
()
*
1000
))
timestamp
=
str
(
round
(
time
.
time
()
*
1000
))
# 密钥进行编码
# 密钥进行编码
...
...
wx-cli-ck.py
View file @
1f941649
...
@@ -66,6 +66,11 @@ if __name__ == '__main__':
...
@@ -66,6 +66,11 @@ if __name__ == '__main__':
if
check_domain
(
v
):
if
check_domain
(
v
):
ding_list
.
append
(
v
)
ding_list
.
append
(
v
)
if
ding_list
.
count
(
v
)
<
4
:
if
ding_list
.
count
(
v
)
<
4
:
if
k
.
find
(
'&'
)
>-
1
:
title
=
k
.
split
(
'&'
)[
0
]
phone
=
k
.
split
(
'&'
)[
1
]
send_messages
(
title
+
'被封,被封链接为:'
+
v
,
phone
)
else
:
send_messages
(
k
+
'被封,被封链接为:'
+
v
)
send_messages
(
k
+
'被封,被封链接为:'
+
v
)
if
k
.
startswith
(
'全民'
):
if
k
.
startswith
(
'全民'
):
qm
.
post_block_list
(
v
)
qm
.
post_block_list
(
v
)
...
@@ -81,3 +86,6 @@ if __name__ == '__main__':
...
@@ -81,3 +86,6 @@ if __name__ == '__main__':
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