Changeset 647
- Timestamp:
- 09/23/06 19:53:05 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nepenthes/trunk/modules/module-honeytrap/module-honeytrap.cpp
r585 r647 112 112 113 113 m_HTType = HT_NONE; 114 115 116 m_DialogueFactory = "bridge Factory"; 114 117 } 115 118 … … 653 656 654 657 DialogueFactory *diaf; 655 if ( (diaf = g_Nepenthes->getFactoryMgr()->getFactory( "WinNTShell DialogueFactory")) == NULL )658 if ( (diaf = g_Nepenthes->getFactoryMgr()->getFactory((char *)m_DialogueFactory.c_str())) == NULL ) 656 659 { 657 logCrit("No WinNTShell DialogueFactory availible \n");660 logCrit("No %s availible \n",m_DialogueFactory.c_str()); 658 661 return 1; 659 662 } … … 707 710 printIPpacket(m->payload,m->data_len); 708 711 709 if ( isPortListening(ntohs(tcp->th_dport),*(uint32_t *)&(ip->ip_dst)) == false )712 if (1)// isPortListening(ntohs(tcp->th_dport),*(uint32_t *)&(ip->ip_dst)) == false ) 710 713 { 711 714 logInfo("Connection to unbound port %i requested, binding port\n",ntohs(tcp->th_dport)); … … 716 719 717 720 DialogueFactory *diaf; 718 if ( (diaf = g_Nepenthes->getFactoryMgr()->getFactory( "WinNTShell DialogueFactory")) == NULL )721 if ( (diaf = g_Nepenthes->getFactoryMgr()->getFactory((char *)m_DialogueFactory.c_str())) == NULL ) 719 722 { 720 logCrit("No WinNTShell DialogueFactory availible \n");723 logCrit("No %s availible \n",m_DialogueFactory.c_str()); 721 724 return 1; 722 725 } … … 782 785 783 786 DialogueFactory *diaf; 784 if ( (diaf = g_Nepenthes->getFactoryMgr()->getFactory( "WinNTShell DialogueFactory")) == NULL )787 if ( (diaf = g_Nepenthes->getFactoryMgr()->getFactory((char *)m_DialogueFactory.c_str())) == NULL ) 785 788 { 786 logCrit("No WinNTShell DialogueFactory availible \n");789 logCrit("No %s availible \n",m_DialogueFactory.c_str()); 787 790 return 1; 788 791 } nepenthes/trunk/modules/module-honeytrap/module-honeytrap.hpp
r585 r647 272 272 Nepenthes *m_Nepenthes; 273 273 honeytrap_type m_HTType; 274 275 string m_DialogueFactory; 274 276 }; 275 277
