myph~ shellcode loader for your evasion needs |
| git clone https://github.com/matro7sh/myph.git |
| log | files | refs | archive | README | LICENSE |
defaults.go (729B)
1 package cli 2 3 import ( 4 "crypto/rand" 5 ) 6 7 // Get default value for Options struct 8 func GetDefaultCLIOptions() Options { 9 opts := Options{ 10 ShellcodePath: "msf.raw", 11 OutName: "payload", 12 OS: "windows", 13 Arch: "amd64", 14 Target: "cmd.exe", 15 Encryption: EncKindAES, 16 Key: "", 17 Technique: "CRT", 18 SleepTime: 0, 19 PEFilePath: "payload.exe", 20 VersionFilePath: "goversion.json", 21 WithDebug: false, 22 BuildType: "exe", 23 Persistence: "", 24 UseAPIHashing: false, 25 APIHashingType: "DJB2", 26 } 27 28 return opts 29 } 30 31 // Generate a random list of bytes 32 func RandBytes(length int) []byte { 33 b := make([]byte, length) 34 rand.Read(b) 35 return b 36 }