You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-9Lines changed: 22 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,11 @@
1
1
# Shellcode Compiler
2
2
3
-
Shellcode Compiler is a program that compiles C/C++ style code into a small, position-independent and NULL-free shellcode for Windows. It is possible to call any Windows API function in a user-friendly way.
3
+
Shellcode Compiler is a program that compiles C/C++ style code into a small, position-independent and NULL-free shellcode for Windows (x86 and x64) and Linux (x86 and x64). It is possible to call any Windows API function or Linux syscall in a user-friendly way.
4
4
5
5
Shellcode Compiler takes as input a source file and it uses it's own compiler to interpret the code and generate an assembly file which is assembled with Keystone engine.
6
6
7
-
Shellcode compiler was released at DefCamp security conference in Romania, November 2016.
ShellcodeCompiler.exe -r Source.txt -o Shellcode.bin -a Assembly.asm
37
+
38
+
ShellcodeCompiler.exe -r Source.txt -o Shellcode.bin -a Assembly.asm -p win_x64
30
39
31
40
# Limitations
41
+
32
42
1. It is not possible to use the return value of an API call
33
43
2. It is not possible to use pointers or buffers
34
44
3. It is not possible to declare variables
35
45
36
-
All these limitations will be fixed as soon as possible. However, many other limitations will exist.
46
+
Multiple other limitations exists as well.
37
47
This is an Alpha version. Please report any bugs or suggestions.
38
48
39
49
# Changelog
50
+
40
51
1. Initial support for Windows x64
52
+
2. Initial support for Linux (x86 and x64) shellcodes
41
53
42
54
# Keystone compilation
55
+
43
56
1. Download Keystone Engine source code
44
57
2. Download, install and put in PATH cmake and python
45
-
3. Open Visual Studio 2019 - x86 (for 32 bits) and x64 (for 64 bits) Native Tools Command Prompts and go to Keystone source directory
58
+
3. Open Visual Studio 2019 - x86 (for 32 bits) and x64 (for 64 bits) "Native Tools Command Prompts" and go to Keystone source directory
46
59
4. Edit nmake-lib.bat file and replace -DLLVM_TARGETS_TO_BUILD="all" with -DLLVM_TARGETS_TO_BUILD="X86"
47
60
5. Run mkdir build and cd build commands
48
61
6. Run ..\nmake-lib.bat command
49
-
7. Copy the resulted lib file from keystone-src\build\llvm\lib\keystone.lib to ShellcodeCompiler\Keystone\keystone_x86.lib and keystone_x64.lib
62
+
7. Copy the resulted lib file from keystone-src\build\llvm\lib\keystone.lib to ShellcodeCompiler\Keystone\keystone_x86.lib (for 32 bits) and keystone_x64.lib (for 64 bits)
0 commit comments