Changeset 436
- Timestamp:
- 03/27/06 14:27:39 (3 years ago)
- Files:
-
- nepenthes/trunk/modules/shellcode-signatures/Makefile.am (modified) (1 diff)
- nepenthes/trunk/modules/shellcode-signatures/parser.h (modified) (1 diff)
- nepenthes/trunk/modules/shellcode-signatures/parser.l (modified) (1 diff)
- nepenthes/trunk/modules/shellcode-signatures/parser.y (modified) (4 diffs)
- nepenthes/trunk/modules/shellcode-signatures/sch_engine_unicode.cpp (added)
- nepenthes/trunk/modules/shellcode-signatures/sch_engine_unicode.hpp (added)
- nepenthes/trunk/modules/shellcode-signatures/sch_namespace_base64.cpp (added)
- nepenthes/trunk/modules/shellcode-signatures/sch_namespace_base64.hpp (added)
- nepenthes/trunk/modules/shellcode-signatures/sch_namespace_konstanzxor.cpp (added)
- nepenthes/trunk/modules/shellcode-signatures/sch_namespace_konstanzxor.hpp (added)
- nepenthes/trunk/modules/shellcode-signatures/shellcode-signatures.cpp (modified) (4 diffs)
- nepenthes/trunk/modules/shellcode-signatures/shellcode-signatures.sc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nepenthes/trunk/modules/shellcode-signatures/Makefile.am
r433 r436 23 23 shellcodesignatures_la_SOURCES += sch_namespace_connectbackfiletransfer.cpp sch_namespace_connectbackfiletransfer.hpp 24 24 shellcodesignatures_la_SOURCES += sch_namespace_bindfiletransfer.cpp sch_namespace_bindfiletransfer.hpp 25 shellcodesignatures_la_SOURCES += sch_namespace_base64.cpp sch_namespace_base64.hpp 26 shellcodesignatures_la_SOURCES += sch_engine_unicode.cpp sch_engine_unicode.hpp 27 shellcodesignatures_la_SOURCES += sch_namespace_konstanzxor.cpp sch_namespace_konstanzxor.hpp 25 28 shellcodesignatures_la_LDFLAGS = -module -no-undefined -avoid-version 26 29 nepenthes/trunk/modules/shellcode-signatures/parser.h
r433 r436 15 15 sc_download, 16 16 sc_url, 17 sc_bindfiletransfer 17 sc_bindfiletransfer, 18 sc_base64 18 19 19 20 }; nepenthes/trunk/modules/shellcode-signatures/parser.l
r433 r436 53 53 "url" { return SC_URL; } 54 54 "bindfiletransfer" { return SC_BIND_FILETRANSFER; } 55 "base64" { return SC_BASE64; } 55 56 56 57 "hostkey" { return SC_HOSTKEY; } nepenthes/trunk/modules/shellcode-signatures/parser.y
r433 r436 33 33 SC_DOWNLOAD 34 34 SC_URL 35 SC_BASE64 35 36 SC_KEY SC_SUBKEY SC_SIZE SC_SIZEINVERT SC_HOST SC_PORT SC_COMMAND 36 37 SC_URI … … 134 135 { 135 136 shellcodes->nspace = sc_bindfiletransfer; 137 } 138 | 139 SC_BASE64 140 { 141 shellcodes->nspace = sc_base64; 136 142 } 137 143 ; … … 276 282 "download", 277 283 "url", 278 "bindfiletransfer" 284 "bindfiletransfer", 285 "base64" 279 286 }; 280 287 281 if ( num > sizeof(namespacemapping)/sizeof(char *) )288 if ( num >= sizeof(namespacemapping)/sizeof(char *) ) 282 289 return "unmapped"; 283 290 else … … 304 311 "portkey" 305 312 }; 306 if ( num > sizeof(mapmapping)/sizeof(char *) )313 if ( num >= sizeof(mapmapping)/sizeof(char *) ) 307 314 return "unmapped"; 308 315 else nepenthes/trunk/modules/shellcode-signatures/shellcode-signatures.cpp
r433 r436 47 47 #include "sch_namespace_connectbackfiletransfer.hpp" 48 48 #include "sch_namespace_bindfiletransfer.hpp" 49 #include "sch_namespace_base64.hpp" 50 #include "sch_engine_unicode.hpp" 51 #include "sch_namespace_konstanzxor.hpp" 49 52 50 53 #include "ShellcodeManager.hpp" … … 84 87 { 85 88 m_ModuleManager = m_Nepenthes->getModuleMgr(); 89 90 g_Nepenthes->getShellcodeMgr()->registerShellcodeHandler(new EngineUnicode()); 86 91 return loadSignaturesFromFile(string("/tmp/shellcode-signatures.sc")); 87 92 } … … 141 146 142 147 case sc_konstanzxor: 148 sch = new NamespaceKonstanzXOR(sc); 143 149 break; 144 150 … … 173 179 break; 174 180 181 case sc_base64: 182 sch = new NamespaceBase64(sc); 183 break; 175 184 } 176 185 nepenthes/trunk/modules/shellcode-signatures/shellcode-signatures.sc
r435 r436 26 26 [n] [+] 21) HODBind handles oc192 dcom bindshell 27 27 [n] [+] 22) HODConnect handles oc192 dcom bindshell 28 [ s] [ ] 23) HODBind handles house of dabus msmq bindshells28 [n] [+] 23) HODBind handles house of dabus msmq bindshells (xor::msfPexEnvSub & bindshell::schoenborn do the trick) 29 29 [n] [+] 24) HODBind handles house of dabus netdde bindshells 30 30 [n] [+] 25) HODConnect handles house of dabus netdde bindshells … … 766 766 pattern 767 767 ".*\\x53\\x53\\x68(....)\\x68\\x02\\x00(..)\\x8B\\xD4\\x8B\\xD8\\x6A" 768 //^^^^->ip ^^-> port768 // ^^^^->ip ^^-> port 769 769 "\\x10\\x52\\x53\\xBA\\x63\\x30\\x60\\x5A\\xFF\\xD6\\x50\\xB4\\x02\\x50\\x55\\x53\\xBA" 770 770 "\\x00\\x58\\x60\\xE2\\xFF\\xD6\\xBF(....)\\xFF\\xE5.*"; 771 //^^^^-> auth key771 // ^^^^-> auth key 772 772 mapping(none,host,port,key); 773 773 }; … … 946 946 947 947 948 949 950 948 base64::iis_asn1 949 { 950 pattern 951 "GET.*Authorization.*Negotiate (.*)"; 952 mapping (none,post); 953 }; 954 955 956 957
