diff --git a/src/connection.cpp b/src/connection.cpp index a1346c2..0e60599 100755 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -69,7 +69,7 @@ void* process_connection(void *arg) int tid = *((int*)(&arg)); //int len; string str; - char buffer; + char buffer[1000];//TODO: to be fixed int original_port=DEFAULT_PORT; int n = 0; time_t timestamp; @@ -79,7 +79,6 @@ void* process_connection(void *arg) while(1) { - sleep(1); for(int i = 0; i < MAX_CLIENT_PER_THREAD; i++) { @@ -91,7 +90,7 @@ void* process_connection(void *arg) if(configuration->getConfigValue(OPT_NOT_NMAP_SCANNER)) n = 1; // just reply... else - n = recv(threads[tid].clients[i], &buffer,1, 0); + n = recv(threads[tid].clients[i], buffer,1, 0); // deal with different recv buffer size diff --git a/tools/portspoof.conf b/tools/portspoof.conf index e079efc..05d315d 100755 --- a/tools/portspoof.conf +++ b/tools/portspoof.conf @@ -75,23 +75,33 @@ #Example: port range -#51-60 "550 4m2v4 (FUZZ_HERE)" +51-60 "550 4m2v4 (FUZZ_HERE)" #Example: Simple regular expression payloads -#8080 "word: [\w]+ [\d]+ [a-b]+ [1-2]+\n" -#8081 "OK0100 eXtremail V([\d.]+) release (\d+) REMote management \.\.\.\r\n" -#8082 "word: ... \. \d \w \n" +8080 "word: [\w]+ [\d]+ [a-b]+ [1-2]+\n" +8081 "OK0100 eXtremail V([\d.]+) release (\d+) REMote management \.\.\.\r\n" +8082 "word: ... \. \d \w \n" #Nmap regular expression matched payloads -#8100 "220 FUZZ_HERE ESMTP OpenSMTPD\r\n" -#8101 "220 FUZZ_HERE SMTP ready to roll\r\n" -#8102 "550 12345 FUZZ_HERE" -#8103 "+OK Lotus Notes POP3 server version lLlfMoHcd ready j* on __FUZZ_HERE__\r\n" -#8104 "HTTP/1.0 200 OK\r\nServer: Apache/__FUZZ__(Amazon)\r\nX-Powered-By: ASP\.NET\r\nCache-Control: no-cache, must-revalidate\r\nContent-type: text/html\r\nX-Powered-By: PHP/xxx\r\nExpires: Mon, 26 Jul 1997 05:00:00 GMT\r\n