Skip to content

Commit 85c9471

Browse files
WillowSauceRWillowSauceR
authored andcommitted
Add auto scanning
1 parent 83e1128 commit 85c9471

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222

2323
#### 注意:代理功能处于开发阶段,不建议使用。默认使用[GitHub上的代理](https://github.com/ShiftyTR/Proxy-List),如果需要使用其他代理,请将socks5.txt文件填充为你的代理IP端口
2424

25+
#### 注意:目标地址可以填IP,域名,或 文件名:motd。如11.4.5.14,114514.com,ipList.txt:motd
26+
27+
#### 注意:如果同时填写文件名和端口8,那么在对方服务器不在线时自动使用扫描来更新文件
28+
2529
## motd.py
2630

2731
### 使用方法: `python3 motd.py [目标地址] [端口]`

send.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ def sendPacket(target: str, port, payloadFile: str, loops, interval):
129129
except:
130130
if isDisplayMotd:
131131
log(f"Target server offline.")
132-
#log(f"Sending packet...")
132+
if ":" in target and int(port) == 8:
133+
targetFile, targetInfo = target.split(":")
134+
os.system(f"py scan.py {targetFile} 10000-21000 nn 0 {targetFile}")
135+
#log(f"Sending packet...")
133136
try:
134137
if port == "*":
135138
for port in range(65535):

0 commit comments

Comments
 (0)