Changeset 697
- Timestamp:
- 11/11/06 10:17:19 (2 years ago)
- Files:
-
- nepenthes/trunk/modules/module-honeytrap/PCAPSocket.cpp (modified) (2 diffs)
- nepenthes/trunk/modules/submit-postgres/submit-postgres.cpp (modified) (1 diff)
- nepenthes/trunk/nepenthes-core/src/ConsoleLogger.cpp (modified) (1 diff)
- nepenthes/trunk/nepenthes-core/src/EventHandler.cpp (modified) (1 diff)
- nepenthes/trunk/nepenthes-core/src/FileLogger.cpp (modified) (1 diff)
- nepenthes/trunk/nepenthes-core/src/RingFileLogger.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nepenthes/trunk/modules/module-honeytrap/PCAPSocket.cpp
r691 r697 28 28 /* $Id$ */ 29 29 30 30 #include <unistd.h> 31 #include <time.h> 31 32 #include <sys/types.h> 32 33 #include <sys/socket.h> 33 34 #include <netinet/in.h> 34 35 #include <arpa/inet.h> 36 #include <errno.h> 35 37 36 38 #include "LogManager.hpp" … … 65 67 g_ModuleHoneytrap->socketDel(this); 66 68 67 68 bool drop_file = false; 69 70 /* the connection was never accepted */ 71 if ( m_TimeoutIntervall == 0 ) 72 drop_file = true; 73 74 /* remove dump if there was no packet with data 75 the minimum of packets is 3 76 [SYN] ACK SYN|ACK (RST|FIN) */ 77 78 if ( m_PacketCount < g_ModuleHoneytrap->getPcapMinPackets() ) 79 drop_file = true; 80 81 if ( drop_file == true ) 82 unlink(m_DumpFilePath.c_str()); 69 if ( m_DumpFilePath != "" ) 70 { 71 72 bool drop_file = false; 73 74 /* the connection was never accepted */ 75 if ( m_TimeoutIntervall != 0 ) 76 drop_file = true; 77 78 /* remove dump if there was no packet with data 79 the minimum of packets is 3 80 [SYN] ACK SYN|ACK (RST|FIN) */ 81 82 if ( m_PacketCount < g_ModuleHoneytrap->getPcapMinPackets() ) 83 drop_file = true; 84 85 if ( drop_file == true ) 86 if (unlink(m_DumpFilePath.c_str()) != 0) 87 logWarn("Could not unlink file %s '%s'\n",m_DumpFilePath.c_str(),strerror(errno)); 88 } 83 89 #endif // HAVE_PCAP 84 90 } nepenthes/trunk/modules/submit-postgres/submit-postgres.cpp
r667 r697 298 298 vector< map<string,string> > resvec = *result->getResult(); 299 299 300 300 /* 301 301 vector< map<string,string> >::iterator it = resvec.begin(); 302 302 map<string,string>::iterator jt; 303 303 304 /* 304 305 305 // this is my reply debugger 306 306 nepenthes/trunk/nepenthes-core/src/ConsoleLogger.cpp
r375 r697 34 34 #include "LogManager.hpp" 35 35 36 #ifdef WIN3237 36 #include <time.h> 38 #endif39 37 40 38 using namespace nepenthes; nepenthes/trunk/nepenthes-core/src/EventHandler.cpp
r332 r697 30 30 #include "Event.hpp" 31 31 #include "EventHandler.hpp" 32 #include <time.h> 33 32 34 33 35 using namespace nepenthes; nepenthes/trunk/nepenthes-core/src/FileLogger.cpp
r664 r697 28 28 /* $Id$ */ 29 29 30 #ifdef WIN3231 30 #include <time.h> 32 #endif33 31 34 32 nepenthes/trunk/nepenthes-core/src/RingFileLogger.cpp
r664 r697 28 28 /* $Id$ */ 29 29 30 #ifdef WIN3231 30 #include <time.h> 32 #endif33 31 34 32 #include <sys/types.h>
