Changeset 439
- Timestamp:
- 03/27/06 20:11:55 (3 years ago)
- Files:
-
- nepenthes/trunk/modules/vuln-asn1/Makefile.am (modified) (1 diff)
- nepenthes/trunk/modules/vuln-asn1/SMBDialogue.cpp (modified) (1 diff)
- nepenthes/trunk/modules/vuln-asn1/sch_asn1_iis.cpp (deleted)
- nepenthes/trunk/modules/vuln-asn1/sch_asn1_iis.hpp (deleted)
- nepenthes/trunk/modules/vuln-asn1/sch_asn1_smb_bind.cpp (deleted)
- nepenthes/trunk/modules/vuln-asn1/sch_asn1_smb_bind.hpp (deleted)
- nepenthes/trunk/modules/vuln-asn1/vuln-asn1.cpp (modified) (2 diffs)
- nepenthes/trunk/modules/vuln-asn1/vuln-asn1.hpp (modified) (1 diff)
- nepenthes/trunk/modules/vuln-dcom/Makefile.am (modified) (1 diff)
- nepenthes/trunk/modules/vuln-dcom/sch_dcom_oc192_bind.cpp (deleted)
- nepenthes/trunk/modules/vuln-dcom/sch_dcom_oc192_bind.hpp (deleted)
- nepenthes/trunk/modules/vuln-dcom/sch_dcom_sol2k_bind.cpp (deleted)
- nepenthes/trunk/modules/vuln-dcom/sch_dcom_sol2k_bind.hpp (deleted)
- nepenthes/trunk/modules/vuln-dcom/sch_dcom_sol2k_connect.cpp (deleted)
- nepenthes/trunk/modules/vuln-dcom/sch_dcom_sol2k_connect.hpp (deleted)
- nepenthes/trunk/modules/vuln-dcom/vuln-dcom.cpp (modified) (4 diffs)
- nepenthes/trunk/modules/vuln-dcom/vuln-dcom.hpp (modified) (1 diff)
- nepenthes/trunk/modules/vuln-iis/Makefile.am (modified) (1 diff)
- nepenthes/trunk/modules/vuln-iis/sch_iis_tc_bind.cpp (deleted)
- nepenthes/trunk/modules/vuln-iis/sch_iis_tc_bind.hpp (deleted)
- nepenthes/trunk/modules/vuln-iis/sch_iis_thc_bind.cpp (deleted)
- nepenthes/trunk/modules/vuln-iis/sch_iis_thc_bind.hpp (deleted)
- nepenthes/trunk/modules/vuln-iis/sch_iis_thc_connect.cpp (deleted)
- nepenthes/trunk/modules/vuln-iis/sch_iis_thc_connect.hpp (deleted)
- nepenthes/trunk/modules/vuln-iis/vuln-iis.cpp (modified) (2 diffs)
- nepenthes/trunk/modules/vuln-iis/vuln-iis.hpp (modified) (1 diff)
- nepenthes/trunk/modules/vuln-lsass/Makefile.am (modified) (1 diff)
- nepenthes/trunk/modules/vuln-lsass/sch_lsass_hod_bind.cpp (deleted)
- nepenthes/trunk/modules/vuln-lsass/sch_lsass_hod_bind.hpp (deleted)
- nepenthes/trunk/modules/vuln-lsass/sch_lsass_hod_connect.cpp (deleted)
- nepenthes/trunk/modules/vuln-lsass/sch_lsass_hod_connect.hpp (deleted)
- nepenthes/trunk/modules/vuln-lsass/vuln-lsass.cpp (modified) (2 diffs)
- nepenthes/trunk/modules/vuln-lsass/vuln-lsass.hpp (modified) (1 diff)
- nepenthes/trunk/modules/vuln-msmq/Makefile.am (modified) (1 diff)
- nepenthes/trunk/modules/vuln-msmq/sch_msmq_hod_bind.cpp (deleted)
- nepenthes/trunk/modules/vuln-msmq/sch_msmq_hod_bind.hpp (deleted)
- nepenthes/trunk/modules/vuln-msmq/vuln-msmq.cpp (modified) (2 diffs)
- nepenthes/trunk/modules/vuln-msmq/vuln-msmq.hpp (modified) (1 diff)
- nepenthes/trunk/modules/vuln-netdde/Makefile.am (modified) (1 diff)
- nepenthes/trunk/modules/vuln-netdde/sch_netdde_hod_bind.cpp (deleted)
- nepenthes/trunk/modules/vuln-netdde/sch_netdde_hod_bind.hpp (deleted)
- nepenthes/trunk/modules/vuln-netdde/sch_netdde_hod_connect.cpp (deleted)
- nepenthes/trunk/modules/vuln-netdde/sch_netdde_hod_connect.hpp (deleted)
- nepenthes/trunk/modules/vuln-netdde/vuln-netdde.cpp (modified) (2 diffs)
- nepenthes/trunk/modules/vuln-netdde/vuln-netdde.hpp (modified) (1 diff)
- nepenthes/trunk/modules/vuln-sasserftpd/Makefile.am (modified) (1 diff)
- nepenthes/trunk/modules/vuln-sasserftpd/sch_sasserftpd_mandragore_bind.cpp (deleted)
- nepenthes/trunk/modules/vuln-sasserftpd/sch_sasserftpd_mandragore_bind.hpp (deleted)
- nepenthes/trunk/modules/vuln-sasserftpd/sch_sasserftpd_mandragore_connect.cpp (deleted)
- nepenthes/trunk/modules/vuln-sasserftpd/sch_sasserftpd_mandragore_connect.hpp (deleted)
- nepenthes/trunk/modules/vuln-sasserftpd/vuln-sasserftpd.cpp (modified) (2 diffs)
- nepenthes/trunk/modules/vuln-sasserftpd/vuln-sasserftpd.hpp (modified) (1 diff)
- nepenthes/trunk/modules/vuln-wins/Makefile.am (modified) (1 diff)
- nepenthes/trunk/modules/vuln-wins/sch_wins_hs_bind.cpp (deleted)
- nepenthes/trunk/modules/vuln-wins/sch_wins_hs_bind.hpp (deleted)
- nepenthes/trunk/modules/vuln-wins/sch_wins_hs_connect.cpp (deleted)
- nepenthes/trunk/modules/vuln-wins/sch_wins_hs_connect.hpp (deleted)
- nepenthes/trunk/modules/vuln-wins/sch_wins_zuc_connect.cpp (deleted)
- nepenthes/trunk/modules/vuln-wins/sch_wins_zuc_connect.hpp (deleted)
- nepenthes/trunk/modules/vuln-wins/vuln-wins.cpp (modified) (4 diffs)
- nepenthes/trunk/modules/vuln-wins/vuln-wins.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nepenthes/trunk/modules/vuln-asn1/Makefile.am
r321 r439 11 11 pkglib_LTLIBRARIES = vulnasn1.la 12 12 13 vulnasn1_la_SOURCES = vuln-asn1.conf.dist asn1-shellcodes.h IISDialogue.hpp SMBDialogue.hpp sch_asn1_iis.hpp sch_asn1_smb_bind.hpp vuln-asn1.hpp IISDialogue.cpp SMBDialogue.cpp sch_asn1_iis.cpp sch_asn1_smb_bind.cpp vuln-asn1.cpp 13 vulnasn1_la_SOURCES = vuln-asn1.conf.dist asn1-shellcodes.h 14 vulnasn1_la_SOURCES += vuln-asn1.hpp vuln-asn1.cpp 15 vulnasn1_la_SOURCES += IISDialogue.hpp IISDialogue.cpp 16 vulnasn1_la_SOURCES += SMBDialogue.hpp SMBDialogue.cpp 17 18 19 20 14 21 15 22 vulnasn1_la_LDFLAGS = -module -no-undefined -avoid-version nepenthes/trunk/modules/vuln-asn1/SMBDialogue.cpp
r332 r439 44 44 #include "ShellcodeManager.hpp" 45 45 46 #include "vuln-asn1.hpp" 47 46 48 #ifdef STDTAGS 47 49 #undef STDTAGS nepenthes/trunk/modules/vuln-asn1/vuln-asn1.cpp
r321 r439 33 33 #include "IISDialogue.hpp" 34 34 #include "SMBDialogue.hpp" 35 #include "sch_asn1_iis.hpp"36 #include "sch_asn1_smb_bind.hpp"37 35 38 36 #include "SocketManager.hpp" … … 130 128 m_Nepenthes->getSocketMgr()->bindTCPSocket(0,m_SMBPort,0,timeout,this); 131 129 132 m_ShellcodeHandlers.push_back( new ASN1IISBase64 (m_Nepenthes->getShellcodeMgr()));133 m_ShellcodeHandlers.push_back( new ASN1SMBBind (m_Nepenthes->getShellcodeMgr()));134 135 list <ShellcodeHandler *>::iterator handler;136 for (handler = m_ShellcodeHandlers.begin(); handler != m_ShellcodeHandlers.end(); handler++)137 {138 if ((*handler)->Init() == false)139 {140 logCrit("ERROR %s\n",__PRETTY_FUNCTION__);141 return false;142 }143 REG_SHELLCODE_HANDLER((*handler));144 145 }146 147 130 return true; 148 131 } nepenthes/trunk/modules/vuln-asn1/vuln-asn1.hpp
r321 r439 55 55 uint16_t m_SMBPort; 56 56 uint16_t m_IISPort; 57 list <ShellcodeHandler *> m_ShellcodeHandlers;58 57 }; 59 58 nepenthes/trunk/modules/vuln-dcom/Makefile.am
r321 r439 11 11 pkglib_LTLIBRARIES = vulndcom.la 12 12 13 vulndcom_la_SOURCES = vuln-dcom.conf.dist dcom-shellcodes.h DCOMDialogue.hpp sch_dcom_oc192_bind.hpp sch_dcom_sol2k_bind.hpp sch_dcom_sol2k_connect.hpp vuln-dcom.hpp DCOMDialogue.cpp sch_dcom_oc192_bind.cpp sch_dcom_sol2k_bind.cpp sch_dcom_sol2k_connect.cpp vuln-dcom.cpp 13 vulndcom_la_SOURCES = vuln-dcom.conf.dist dcom-shellcodes.h 14 vulndcom_la_SOURCES += DCOMDialogue.hpp DCOMDialogue.cpp 15 vulndcom_la_SOURCES += vuln-dcom.hpp vuln-dcom.cpp 16 17 14 18 15 19 vulndcom_la_LDFLAGS = -module -no-undefined -avoid-version nepenthes/trunk/modules/vuln-dcom/vuln-dcom.cpp
r336 r439 43 43 44 44 45 #include "sch_dcom_sol2k_bind.hpp"46 #include "sch_dcom_sol2k_connect.hpp"47 #include "sch_dcom_oc192_bind.hpp"48 49 45 #ifdef STDTAGS 50 46 #undef STDTAGS … … 71 67 { 72 68 logPF(); 73 while (m_ShellcodeHandlers.size() > 0)74 {75 delete m_ShellcodeHandlers.front();76 m_ShellcodeHandlers.pop_front();77 }78 69 } 79 70 … … 108 99 m_ModuleManager = m_Nepenthes->getModuleMgr(); 109 100 110 // removed as they were not seen during the last 2 month and need a new pcre111 // m_ShellcodeHandlers.push_back( new SOL2KBind (m_Nepenthes->getShellcodeMgr()));112 // m_ShellcodeHandlers.push_back( new SOL2KConnect (m_Nepenthes->getShellcodeMgr()));113 114 // replaced by adenau xor & Parthenstein Bind115 // m_ShellcodeHandlers.push_back( new OC192Bind (m_Nepenthes->getShellcodeMgr()));116 117 118 list <ShellcodeHandler *>::iterator handler;119 for (handler = m_ShellcodeHandlers.begin(); handler != m_ShellcodeHandlers.end(); handler++)120 {121 if ((*handler)->Init() == false)122 {123 logCrit("ERROR %s\n",__PRETTY_FUNCTION__);124 return false;125 }126 REG_SHELLCODE_HANDLER((*handler));127 128 }129 101 return true; 130 102 } … … 132 104 bool DCOMVuln::Exit() 133 105 { 134 list <ShellcodeHandler *>::iterator handler;135 for (handler = m_ShellcodeHandlers.begin(); handler != m_ShellcodeHandlers.end(); handler++)136 {137 if ((*handler)->Exit() == false)138 {139 logCrit("ERROR %s\n",__PRETTY_FUNCTION__);140 return false;141 }142 m_Nepenthes->getShellcodeMgr()->unregisterShellcodeHandler((*handler));143 }144 106 return true; 145 107 } nepenthes/trunk/modules/vuln-dcom/vuln-dcom.hpp
r318 r439 55 55 bool Init(); 56 56 bool Exit(); 57 protected:58 list <ShellcodeHandler *> m_ShellcodeHandlers;59 57 }; 60 58 nepenthes/trunk/modules/vuln-iis/Makefile.am
r321 r439 11 11 pkglib_LTLIBRARIES = vulniis.la 12 12 13 vulniis_la_SOURCES = vuln-iis.conf.dist iis-shellcodes.h IISDialogue.hpp sch_iis_tc_bind.hpp sch_iis_thc_bind.hpp sch_iis_thc_connect.hpp vuln-iis.hpp IISDialogue.hpp sch_iis_tc_bind.hpp sch_iis_thc_bind.hpp sch_iis_thc_connect.hpp vuln-iis.hpp IISDialogue.cpp sch_iis_tc_bind.cpp sch_iis_thc_bind.cpp sch_iis_thc_connect.cpp vuln-iis.cpp 13 vulniis_la_SOURCES = vuln-iis.conf.dist iis-shellcodes.h 14 vulniis_la_SOURCES += IISDialogue.hpp IISDialogue.cpp 15 vulniis_la_SOURCES += vuln-iis.hpp vuln-iis.cpp 16 17 14 18 15 19 vulniis_la_LDFLAGS = -module -no-undefined -avoid-version nepenthes/trunk/modules/vuln-iis/vuln-iis.cpp
r321 r439 32 32 #include "vuln-iis.hpp" 33 33 #include "IISDialogue.hpp" 34 #include "sch_iis_thc_connect.hpp"35 #include "sch_iis_thc_bind.hpp"36 34 37 35 #include "SocketManager.hpp" … … 126 124 } 127 125 128 m_ShellcodeHandlers.push_back( new THCConnect (m_Nepenthes->getShellcodeMgr()));129 m_ShellcodeHandlers.push_back( new THCBind (m_Nepenthes->getShellcodeMgr()));130 131 list <ShellcodeHandler *>::iterator handler;132 for (handler = m_ShellcodeHandlers.begin(); handler != m_ShellcodeHandlers.end(); handler++)133 {134 if ((*handler)->Init() == false)135 {136 logCrit("ERROR %s\n",__PRETTY_FUNCTION__);137 return false;138 }139 REG_SHELLCODE_HANDLER((*handler));140 141 }142 143 126 return true; 144 127 } nepenthes/trunk/modules/vuln-iis/vuln-iis.hpp
r318 r439 50 50 bool Init(); 51 51 bool Exit(); 52 53 protected:54 list <ShellcodeHandler *> m_ShellcodeHandlers;55 52 }; 56 53 } nepenthes/trunk/modules/vuln-lsass/Makefile.am
r321 r439 11 11 pkglib_LTLIBRARIES = vulnlsass.la 12 12 13 vulnlsass_la_SOURCES = vuln-lsass.conf.dist LSASSDialogue.hpp lsass-shellcodes.hpp sch_lsass_hod_bind.hpp sch_lsass_hod_connect.hpp vuln-lsass.hpp LSASSDialogue.cpp sch_lsass_hod_bind.cpp sch_lsass_hod_connect.cpp vuln-lsass.cpp 13 vulnlsass_la_SOURCES = vuln-lsass.conf.dist lsass-shellcodes.hpp 14 vulnlsass_la_SOURCES += LSASSDialogue.hpp LSASSDialogue.cpp 15 vulnlsass_la_SOURCES += vuln-lsass.hpp vuln-lsass.cpp 16 17 14 18 15 19 vulnlsass_la_LDFLAGS = -module -no-undefined -avoid-version nepenthes/trunk/modules/vuln-lsass/vuln-lsass.cpp
r321 r439 32 32 #include "vuln-lsass.hpp" 33 33 #include "LSASSDialogue.hpp" 34 #include "sch_lsass_hod_bind.hpp"35 #include "sch_lsass_hod_connect.hpp"36 34 37 35 … … 132 130 m_ModuleManager = m_Nepenthes->getModuleMgr(); 133 131 134 m_ShellcodeHandlers.push_back( new HODBind (m_Nepenthes->getShellcodeMgr()));135 m_ShellcodeHandlers.push_back( new HODConnect (m_Nepenthes->getShellcodeMgr()));136 137 138 139 140 list <ShellcodeHandler *>::iterator handler;141 for (handler = m_ShellcodeHandlers.begin(); handler != m_ShellcodeHandlers.end(); handler++)142 {143 if ((*handler)->Init() == false)144 {145 logCrit("ERROR %s\n",__PRETTY_FUNCTION__);146 return false;147 }148 REG_SHELLCODE_HANDLER((*handler));149 150 }151 132 return true; 152 133 } nepenthes/trunk/modules/vuln-lsass/vuln-lsass.hpp
r318 r439 53 53 bool Init(); 54 54 bool Exit(); 55 protected:56 list <ShellcodeHandler *> m_ShellcodeHandlers;57 55 }; 58 56 nepenthes/trunk/modules/vuln-msmq/Makefile.am
r321 r439 11 11 pkglib_LTLIBRARIES = vulnmsmq.la 12 12 13 vulnmsmq_la_SOURCES = vuln-msmq.conf.dist MSMQDialogue.hpp sch_msmq_hod_bind.hpp vuln-msmq.hpp MSMQDialogue.cpp sch_msmq_hod_bind.cpp vuln-msmq.cpp 13 vulnmsmq_la_SOURCES = vuln-msmq.conf.dist 14 vulnmsmq_la_SOURCES += MSMQDialogue.hpp MSMQDialogue.cpp 15 vulnmsmq_la_SOURCES += vuln-msmq.hpp vuln-msmq.cpp 16 17 14 18 15 19 vulnmsmq_la_LDFLAGS = -module -no-undefined -avoid-version nepenthes/trunk/modules/vuln-msmq/vuln-msmq.cpp
r321 r439 32 32 #include "vuln-msmq.hpp" 33 33 #include "MSMQDialogue.hpp" 34 #include "sch_msmq_hod_bind.hpp"35 34 36 35 #include "SocketManager.hpp" … … 131 130 m_ModuleManager = m_Nepenthes->getModuleMgr(); 132 131 133 m_ShellcodeHandlers.push_back( new HODBind (m_Nepenthes->getShellcodeMgr()));134 // m_ShellcodeHandlers.push_back( new HODConnect (m_Nepenthes->getShellcodeMgr()));135 136 137 list <ShellcodeHandler *>::iterator handler;138 for (handler = m_ShellcodeHandlers.begin(); handler != m_ShellcodeHandlers.end(); handler++)139 {140 if ((*handler)->Init() == false)141 {142 logCrit("ERROR %s\n",__PRETTY_FUNCTION__);143 return false;144 }145 REG_SHELLCODE_HANDLER((*handler));146 147 }148 132 return true; 149 133 } nepenthes/trunk/modules/vuln-msmq/vuln-msmq.hpp
r318 r439 51 51 bool Init(); 52 52 bool Exit(); 53 54 protected:55 list <ShellcodeHandler *> m_ShellcodeHandlers;56 53 }; 57 54 } nepenthes/trunk/modules/vuln-netdde/Makefile.am
r321 r439 11 11 pkglib_LTLIBRARIES = vulnnetdde.la 12 12 13 vulnnetdde_la_SOURCES = vuln-netdde.conf.dist NETDDEDialogue.hpp sch_netdde_hod_bind.hpp sch_netdde_hod_connect.hpp vuln-netdde.hpp NETDDEDialogue.cpp sch_netdde_hod_bind.cpp sch_netdde_hod_connect.cpp vuln-netdde.cpp 13 vulnnetdde_la_SOURCES = vuln-netdde.conf.dist 14 vulnnetdde_la_SOURCES += NETDDEDialogue.hpp NETDDEDialogue.cpp 15 vulnnetdde_la_SOURCES += vuln-netdde.hpp vuln-netdde.cpp 16 17 14 18 15 19 vulnnetdde_la_LDFLAGS = -module -no-undefined -avoid-version nepenthes/trunk/modules/vuln-netdde/vuln-netdde.cpp
r341 r439 32 32 #include "NETDDEDialogue.hpp" 33 33 #include "vuln-netdde.hpp" 34 35 #include "sch_netdde_hod_bind.hpp"36 #include "sch_netdde_hod_connect.hpp"37 34 38 35 #include "SocketManager.hpp" … … 130 127 131 128 132 133 m_ShellcodeHandlers.push_back( new HODBind (m_Nepenthes->getShellcodeMgr()));134 m_ShellcodeHandlers.push_back( new HODConnect (m_Nepenthes->getShellcodeMgr()));135 136 list <ShellcodeHandler *>::iterator handler;137 for (handler = m_ShellcodeHandlers.begin(); handler != m_ShellcodeHandlers.end(); handler++)138 {139 if ((*handler)->Init() == false)140 {141 logCrit("ERROR %s\n",__PRETTY_FUNCTION__);142 return false;143 }144 REG_SHELLCODE_HANDLER((*handler));145 146 }147 148 129 return true; 149 130 } nepenthes/trunk/modules/vuln-netdde/vuln-netdde.hpp
r318 r439 53 53 bool Exit(); 54 54 55 protected:56 list <ShellcodeHandler *> m_ShellcodeHandlers;57 55 }; 58 56 nepenthes/trunk/modules/vuln-sasserftpd/Makefile.am
r410 r439 13 13 vulnsasserftpd_la_SOURCES = vuln-sasserftpd.conf.dist 14 14 vulnsasserftpd_la_SOURCES += SasserFTPDDialogue.hpp SasserFTPDDialogue.cpp 15 vulnsasserftpd_la_SOURCES += sch_sasserftpd_mandragore_bind.hpp sch_sasserftpd_mandragore_bind.cpp16 vulnsasserftpd_la_SOURCES += sch_sasserftpd_mandragore_connect.hpp sch_sasserftpd_mandragore_connect.cpp17 15 vulnsasserftpd_la_SOURCES += vuln-sasserftpd.hpp vuln-sasserftpd.cpp 18 16 nepenthes/trunk/modules/vuln-sasserftpd/vuln-sasserftpd.cpp
r341 r439 32 32 #include "SasserFTPDDialogue.hpp" 33 33 #include "vuln-sasserftpd.hpp" 34 35 #include "sch_sasserftpd_mandragore_bind.hpp"36 #include "sch_sasserftpd_mandragore_connect.hpp"37 34 38 35 #include "SocketManager.hpp" … … 137 134 138 135 139 m_ShellcodeHandlers.push_back( new MandragoreBind (m_Nepenthes->getShellcodeMgr()));140 m_ShellcodeHandlers.push_back( new MandragoreConnect (m_Nepenthes->getShellcodeMgr()));141 142 list <ShellcodeHandler *>::iterator handler;143 for (handler = m_ShellcodeHandlers.begin(); handler != m_ShellcodeHandlers.end(); handler++)144 {145 if ((*handler)->Init() == false)146 {147 logCrit("ERROR %s\n",__PRETTY_FUNCTION__);148 return false;149 }150 REG_SHELLCODE_HANDLER((*handler));151 152 }153 154 136 return true; 155 137 } nepenthes/trunk/modules/vuln-sasserftpd/vuln-sasserftpd.hpp
r318 r439 52 52 bool Init(); 53 53 bool Exit(); 54 55 protected:56 list <ShellcodeHandler *> m_ShellcodeHandlers;57 54 }; 58 55 nepenthes/trunk/modules/vuln-wins/Makefile.am
r321 r439 11 11 pkglib_LTLIBRARIES = vulnwins.la 12 12 13 vulnwins_la_SOURCES = vuln-wins.conf.dist WINSDialogue.hpp sch_wins_hs_bind.hpp sch_wins_hs_connect.hpp sch_wins_zuc_connect.hpp vuln-wins.hpp wins-shellcodes.hpp WINSDialogue.cpp sch_wins_hs_bind.cpp sch_wins_hs_connect.cpp sch_wins_zuc_connect.cpp vuln-wins.cpp 13 vulnwins_la_SOURCES = vuln-wins.conf.dist 14 vulnwins_la_SOURCES += WINSDialogue.hpp WINSDialogue.cpp 15 vulnwins_la_SOURCES += vuln-wins.hpp wins-shellcodes.hpp vuln-wins.cpp 16 14 17 15 18 vulnwins_la_LDFLAGS = -module -no-undefined -avoid-version nepenthes/trunk/modules/vuln-wins/vuln-wins.cpp
r321 r439 44 44 #include "Config.hpp" 45 45 46 #include "sch_wins_hs_connect.hpp"47 #include "sch_wins_hs_bind.hpp"48 #include "sch_wins_zuc_connect.hpp"49 50 46 using namespace nepenthes; 51 47 … … 74 70 { 75 71 logPF(); 76 while (m_ShellcodeHandlers.size() > 0)77 {78 delete m_ShellcodeHandlers.front();79 m_ShellcodeHandlers.pop_front();80 }81 72 } 82 73 … … 112 103 m_ModuleManager = m_Nepenthes->getModuleMgr(); 113 104 114 115 m_ShellcodeHandlers.push_back(new HATSQUADConnect(m_Nepenthes->getShellcodeMgr()));116 m_ShellcodeHandlers.push_back(new HATSQUADBind(m_Nepenthes->getShellcodeMgr()));117 m_ShellcodeHandlers.push_back(new ZUCConnect(m_Nepenthes->getShellcodeMgr()));118 119 list <ShellcodeHandler *>::iterator handler;120 for (handler = m_ShellcodeHandlers.begin(); handler != m_ShellcodeHandlers.end(); handler++)121 {122 if ((*handler)->Init() == false)123 {124 logCrit("ERROR %s\n",__PRETTY_FUNCTION__);125 return false;126 }127 REG_SHELLCODE_HANDLER((*handler));128 129 }130 105 return true; 131 106 } … … 133 108 bool WINSVuln::Exit() 134 109 { 135 list <ShellcodeHandler *>::iterator handler;136 for (handler = m_ShellcodeHandlers.begin(); handler != m_ShellcodeHandlers.end(); handler++)137 {138 if ((*handler)->Exit() == false)139 {140 logCrit("ERROR %s\n",__PRETTY_FUNCTION__);141 return false;142 }143 m_Nepenthes->getShellcodeMgr()->unregisterShellcodeHandler((*handler));144 }145 110 return true; 146 111 } nepenthes/trunk/modules/vuln-wins/vuln-wins.hpp
r318 r439 55 55 bool Init(); 56 56 bool Exit(); 57 protected:58 list <ShellcodeHandler *> m_ShellcodeHandlers;59 57 }; 60 58
