Changeset 647

Show
Ignore:
Timestamp:
09/23/06 19:53:05 (2 years ago)
Author:
common
Message:

nepenthes

  • module-honeytrap
    • use the bridge dialogues for detected connection attempts, made it a var so changing is easy
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/modules/module-honeytrap/module-honeytrap.cpp

    r585 r647  
    112112 
    113113        m_HTType = HT_NONE; 
     114 
     115 
     116        m_DialogueFactory = "bridge Factory"; 
    114117} 
    115118 
     
    653656 
    654657                        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 ) 
    656659                        { 
    657                                 logCrit("No WinNTShell DialogueFactory availible \n"); 
     660                                logCrit("No %s availible \n",m_DialogueFactory.c_str()); 
    658661                                return 1; 
    659662                        } 
     
    707710                                        printIPpacket(m->payload,m->data_len); 
    708711 
    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 ) 
    710713                                        { 
    711714                                                logInfo("Connection to unbound port %i requested, binding port\n",ntohs(tcp->th_dport)); 
     
    716719 
    717720                                                        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 ) 
    719722                                                        { 
    720                                                                 logCrit("No WinNTShell DialogueFactory availible \n"); 
     723                                                                logCrit("No %s availible \n",m_DialogueFactory.c_str()); 
    721724                                                                return 1; 
    722725                                                        } 
     
    782785 
    783786                        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 ) 
    785788                        { 
    786                                 logCrit("No WinNTShell DialogueFactory availible \n"); 
     789                                logCrit("No %s availible \n",m_DialogueFactory.c_str()); 
    787790                                return 1; 
    788791                        } 
  • nepenthes/trunk/modules/module-honeytrap/module-honeytrap.hpp

    r585 r647  
    272272                Nepenthes *m_Nepenthes; 
    273273                honeytrap_type m_HTType; 
     274 
     275                string m_DialogueFactory; 
    274276        }; 
    275277