Skip to content

Commit bb2de98

Browse files
authored
Update README.md
CHANGES: -Formatting relating to broken ToC -Minor format changes to make copy/paste easier with ToC generator
1 parent ebab4bd commit bb2de98

File tree

1 file changed

+28
-22
lines changed

1 file changed

+28
-22
lines changed

README.md

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,24 @@ PythonRAT is a Command and Control (C2) server which can control multiple machin
2828

2929
## Table of Contents
3030
- [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)
3636
- [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)
4443
- [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)
5049

5150

5251
# Usage Manuals
@@ -103,7 +102,7 @@ Python 2.7.14 Releases: https://www.python.org/downloads/release/python-2714/
103102

104103
## Installing Dependencies
105104

106-
┌──(root💀kali)-[~/.wine/drive_c]
105+
┌──(root💀kali)-[~]
107106

108107
└─#
109108

@@ -124,11 +123,14 @@ or,
124123

125124
## Compile to Executable using Pyinstaller (Win) under Wine
126125

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
128130

129131
**alternatively** if an _icon_ has already been created,
130132

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
132134

133135
This will produce _./dist/backdoor.exe_
134136

@@ -150,8 +152,12 @@ SFX archive is not the only method of obfuscating the executable.
150152
We can when compiling using _Pyinstaller_ add the argument _--add-data "/root/wallpaper.jpg;."_ with
151153
_--icon ~/wallpaper.ico_.
152154

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_
155161

156162

157163
## Creating SFX Archive

0 commit comments

Comments
 (0)