Changeset 544
- Timestamp:
- 05/03/06 01:00:32 (3 years ago)
- Files:
-
- nepenthes/branches/nepenthes-experimental/modules/shellcode-generic/sch_generic_xor.cpp (modified) (2 diffs)
- nepenthes/branches/nepenthes-experimental/modules/submit-gotek/gotekCTRLDialogue.cpp (modified) (3 diffs)
- nepenthes/branches/nepenthes-experimental/modules/submit-gotek/submit-gotek.cpp (modified) (1 diff)
- nepenthes/branches/nepenthes-experimental/modules/vuln-ssh/SSHSocket.cpp (modified) (5 diffs)
- nepenthes/branches/nepenthes-experimental/nepenthes-core/src/ModuleManager.cpp (modified) (4 diffs)
- nepenthes/branches/nepenthes-experimental/nepenthes-core/src/Nepenthes.cpp (modified) (1 diff)
- nepenthes/branches/nepenthes-experimental/nepenthes-core/src/SubmitManager.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nepenthes/branches/nepenthes-experimental/modules/shellcode-generic/sch_generic_xor.cpp
r377 r544 320 320 case 1: 321 321 if( codesize > totalsize ) 322 logWarn(" %s\n", "codesize > totalsize - broken shellcode?");322 logWarn("codesize > totalsize - broken shellcode?\n"); 323 323 324 324 for( uint32_t j = 0; j < codesize && j < totalsize; j++ ) … … 328 328 case 4: 329 329 if( codesize*4 > totalsize ) 330 logWarn(" %s\n", "codesize > totalsize - broken shellcode?");330 logWarn("codesize > totalsize - broken shellcode?\n"); 331 331 332 332 // LogSpam("codesize %i totalsize %i", codesize, totalsize); nepenthes/branches/nepenthes-experimental/modules/submit-gotek/gotekCTRLDialogue.cpp
r515 r544 177 177 if (*(unsigned char *)m_Buffer->getData() == 0xaa) // new file 178 178 { 179 logSpam(" %s\n", "G.O.T.E.K. New File");179 logSpam("G.O.T.E.K. New File\n"); 180 180 g_GotekSubmitHandler->sendGote(); 181 181 m_Buffer->cut(1); … … 184 184 { 185 185 186 logSpam(" %s\n", "G.O.T.E.K. Known File");186 logSpam("G.O.T.E.K. Known File\n"); 187 187 g_GotekSubmitHandler->popGote(); 188 188 m_Buffer->cut(1); … … 190 190 if ( *(unsigned char *)m_Buffer->getData() == 0xff ) // ping 191 191 { 192 logSpam(" %s\n", "G.O.T.E.K. PING");192 logSpam("G.O.T.E.K. PING\n"); 193 193 char c = 0xff; 194 194 m_Socket->doRespond(&c,1); nepenthes/branches/nepenthes-experimental/modules/submit-gotek/submit-gotek.cpp
r543 r544 459 459 { 460 460 case GSHS_RESOLVING: 461 logCrit(" %s\n", "Lost child connection while resolving DNS -- impossible!\n");461 logCrit("Lost child connection while resolving DNS -- impossible!\n\n"); 462 462 break; 463 463 nepenthes/branches/nepenthes-experimental/modules/vuln-ssh/SSHSocket.cpp
r332 r544 196 196 { 197 197 case SSH_STATE_AUTH: 198 logSpam(" %s\n","SSH_STATE_AUTH");198 logSpam("SSH_STATE_AUTH\n"); 199 199 message=ssh_message_get(m_Session); 200 200 if ( message ) … … 235 235 236 236 case SSH_STATE_CHANNEL: 237 logSpam(" %s\n","SSH_STATE_CHANNEL");237 logSpam("SSH_STATE_CHANNEL\n"); 238 238 message=ssh_message_get(m_Session); 239 239 if ( message ) … … 256 256 257 257 case SSH_STATE_SHELL_OR_SFTP: 258 logSpam(" %s\n","SSH_STATE_SHELL_OR_SFTP");258 logSpam("SSH_STATE_SHELL_OR_SFTP\n"); 259 259 message=ssh_message_get(m_Session); 260 260 if (message == NULL ) … … 266 266 ssh_message_subtype(message)==SSH_CHANNEL_REQUEST_SHELL ) 267 267 { 268 logDebug(" %s\n","SSH_SHELL");268 logDebug("SSH_SHELL\n"); 269 269 // if(!strcmp(ssh_message_channel_request_subsystem(message),"sftp")){ 270 270 // sftp=1; … … 303 303 304 304 case SSH_STATE_DONE: 305 logSpam(" %s\n","SSH_STATE_DONE");305 logSpam("SSH_STATE_DONE\n"); 306 306 { 307 307 // BUFFER *buf=buffer_new(); nepenthes/branches/nepenthes-experimental/nepenthes-core/src/ModuleManager.cpp
r505 r544 201 201 if ( handle == NULL ) 202 202 { 203 logCrit("dlerror %s\n",dlerror ()); 204 logCrit("%s\n","handle == NULL "); 203 logCrit("Failed to load library \"%s\": %s\n", modulepath->c_str(), dlerror()); 205 204 return false; 206 205 } … … 209 208 if ( module_init == NULL ) 210 209 { 211 logCrit(" %s\n","module_init == NULL");210 logCrit("Cannot obtain symbol \"module_init\" from \"%s\": %s\n", modulepath->c_str(), dlerror()); 212 211 dlclose (handle); 213 212 return false; 214 213 } 214 215 215 216 216 Module *newmodule; … … 218 218 { 219 219 220 logCrit(" %s\n","module_init() != 1");220 logCrit("Module \"%s\" library failed to initialize\n", modulepath->c_str()); 221 221 dlclose (handle); 222 222 return false; … … 250 250 if ( newmodule->Init() == false ) 251 251 { 252 logCrit(" Loading Module %s failed, Module->Init() returned false\n", modulepath->c_str());252 logCrit("Module instance of \"%s\" using configuration \"%s\" failed to initialize\n", modulepath->c_str(), configpath->c_str()); 253 253 delete newmodule; 254 254 dlclose (handle); nepenthes/branches/nepenthes-experimental/nepenthes-core/src/Nepenthes.cpp
r542 r544 1398 1398 { 1399 1399 case SIGHUP: 1400 logCrit(" %s\n", "Got SIGHUP\nRereading Config File!\n");1400 logCrit("Got SIGHUP\nRereading Config File!\n\n"); 1401 1401 g_Nepenthes->reloadConfig(); 1402 1402 break; 1403 1403 1404 1404 case SIGINT: 1405 logCrit(" %s\n", "Got SIGINT\nStopping NOW!\n");1405 logCrit("Got SIGINT\nStopping NOW!\n\n"); 1406 1406 g_Nepenthes->stop(); 1407 1407 break; 1408 1408 1409 1409 case SIGABRT: 1410 logCrit(" %s\n", "Unhandled Exception");1410 logCrit("Unhandled Exception\n"); 1411 1411 exit(-1); 1412 1412 break; 1413 1413 1414 1414 case SIGSEGV: 1415 logCrit(" %s\n", "Segmentation Fault");1415 logCrit("Segmentation Fault\n"); 1416 1416 exit(-1); 1417 1417 break; nepenthes/branches/nepenthes-experimental/nepenthes-core/src/SubmitManager.cpp
r542 r544 87 87 #ifdef WIN32 88 88 #else 89 logDebug(" %s\n","Creating Magic Cookie");89 logDebug("Creating Magic Cookie\n"); 90 90 m_MagicCookie = magic_open(MAGIC_CONTINUE|MAGIC_PRESERVE_ATIME); 91 91 magic_load(m_MagicCookie,NULL); … … 94 94 string FilesDir; 95 95 96 logDebug(" %s\n","Loading Config");96 logDebug("Loading Config\n"); 97 97 try 98 98 { … … 111 111 112 112 #else 113 logDebug(" %s\n","Adding known files");113 logDebug("Adding known files\n"); 114 114 DIR *dirfiles = opendir(FilesDir.c_str()); 115 115 if (dirfiles == NULL)
