@@ -28,25 +28,24 @@ PythonRAT is a Command and Control (C2) server which can control multiple machin
28
28
29
29
## Table of Contents
30
30
- [ Usage Manuals] ( #usage-manuals )
31
- * [ C2 Manual] ( #c2-manual )
32
- * [ Session Manual] ( #session-manual )
33
- - [ Wine and Pyinstaller (Win version) Installation on Linux] ( #wine-and-pyinstaller-- win-version- -installation-on-linux )
34
- * [ Environment Setup] ( #environment-setup )
35
- * [ Installing Dependencies] ( #installing-dependencies )
31
+ - [ C2 Manual] ( #c2-manual )
32
+ - [ Session Manual] ( #session-manual )
33
+ - [ Wine and Pyinstaller (Win version) Installation on Linux] ( #wine-and-pyinstaller-win-version-installation-on-linux )
34
+ - [ Environment Setup] ( #environment-setup )
35
+ - [ Installing Dependencies] ( #installing-dependencies )
36
36
- [ Backdoor Compilation and Obfuscation for Windows] ( #backdoor-compilation-and-obfuscation-for-windows )
37
- * [ Compile to Executable using Pyinstaller Linux] ( #compile-to-executable-using-pyinstaller-linux )
38
- * [ Compile to Executable using Pyinstaller (Win) under Wine] ( #compile-to-executable-using-pyinstaller--win--under-wine )
39
- * [ Obfuscation using SFX Archive (Theory)] ( #obfuscation-using-sfx-archive--theory- )
40
- + [ NOTE: SFX Archive] ( #note--sfx-archive )
41
- * [ Creating SFX Archive] ( #creating-sfx-archive )
42
- * [ Creating SFX Archive - Visual] ( #creating-sfx-archive---visual )
43
- * [ Task Manager] ( #task-manager )
37
+ - [ Compile to Executable using Pyinstaller Linux] ( #compile-to-executable-using-pyinstaller-linux )
38
+ - [ Compile to Executable using Pyinstaller (Win) under Wine] ( #compile-to-executable-using-pyinstaller-win-under-wine )
39
+ - [ Obfuscation using SFX Archive (Theory)] ( #obfuscation-using-sfx-archive-theory )
40
+ - [ Creating SFX Archive] ( #creating-sfx-archive )
41
+ - [ Creating SFX Archive - Visual] ( #creating-sfx-archive---visual )
42
+ - [ Task Manager] ( #task-manager )
44
43
- [ Preview Images] ( #preview-images )
45
- * [ Target Connection to C2 Server] ( #target-Connection -to-c2-server )
46
- * [ Interacting with Session] ( #interacting-with-session )
47
- * [ Test Commands on Target] ( #test-commands-on-target )
48
- * [ Session Options] ( #session-options )
49
- * [ Backgrounding and Killing Session] ( #backgrounding-and-killing-session )
44
+ - [ Target Connection to C2 Server] ( #target-connection -to-c2-server )
45
+ - [ Interacting with Session] ( #interacting-with-session )
46
+ - [ Test Commands on Target] ( #test-commands-on-target )
47
+ - [ Session Options] ( #session-options )
48
+ - [ Backgrounding and Killing Session] ( #backgrounding-and-killing-session )
50
49
51
50
52
51
# Usage Manuals
@@ -103,7 +102,7 @@ Python 2.7.14 Releases: https://www.python.org/downloads/release/python-2714/
103
102
104
103
## Installing Dependencies
105
104
106
- ┌──(root💀kali)-[ ~ /.wine/drive_c ]
105
+ ┌──(root💀kali)-[ ~ ]
107
106
108
107
└─#
109
108
@@ -124,11 +123,14 @@ or,
124
123
125
124
## Compile to Executable using Pyinstaller (Win) under Wine
126
125
127
- # wine /root/.wine/drive_c/Python27/Scripts/pyinstaller.exe --onefile --noconsole ~/backdoor.py
126
+ ┌──(root💀kali)-[ ~ ]
127
+
128
+ └─#
129
+ wine /root/.wine/drive_c/Python27/Scripts/pyinstaller.exe --onefile --noconsole ~ /backdoor.py
128
130
129
131
** alternatively** if an _ icon_ has already been created,
130
132
131
- # wine /root/.wine/drive_c/Python27/Scripts/pyinstaller.exe --onefile --noconsole --icon ~ /malware_128x128.ico ~ /backdoor.py
133
+ wine /root/.wine/drive_c/Python27/Scripts/pyinstaller.exe --onefile --noconsole --icon ~ /malware_128x128.ico ~ /backdoor.py
132
134
133
135
This will produce _ ./dist/backdoor.exe_
134
136
@@ -150,8 +152,12 @@ SFX archive is not the only method of obfuscating the executable.
150
152
We can when compiling using _ Pyinstaller_ add the argument _ --add-data "/root/wallpaper.jpg;."_ with
151
153
_ --icon ~ /wallpaper.ico_ .
152
154
153
- # wine /root/.wine/drive_c/Python27/Scripts/pyinstaller.exe --onefile --noconsole --add-data "/root/wallpaper.jpg;." --icon ~/malware_128x128.ico ~/backdoor.py
154
- # mv ./dist/_backdoor.exe_ ./dist/_wallpaper.jpg.exe_
155
+ ┌──(root💀kali)-[ ~ ]
156
+
157
+ └─#
158
+
159
+ wine /root/.wine/drive_c/Python27/Scripts/pyinstaller.exe --onefile --noconsole --add-data "/root/wallpaper.jpg;." --icon ~/malware_128x128.ico ~/backdoor.py
160
+ mv ./dist/_backdoor.exe_ ./dist/_wallpaper.jpg.exe_
155
161
156
162
157
163
## Creating SFX Archive
0 commit comments