mirror of
https://github.com/nmap/nmap.git
synced 2025-12-22 07:29:01 +00:00
Put the "SCRIPT ENGINE:" prefix before NSE script start/stop messages.
This commit is contained in:
@@ -386,11 +386,11 @@ void log_script_started(const thread_record &thr) {
|
|||||||
|
|
||||||
if (thr.rr.type == 0) /* hostrule */
|
if (thr.rr.type == 0) /* hostrule */
|
||||||
log_write(LOG_STDOUT,
|
log_write(LOG_STDOUT,
|
||||||
"Starting '%s' against %s (thread %p).\n",
|
"%s: Starting '%s' against %s (thread %p).\n", SCRIPT_ENGINE,
|
||||||
filename, thr.rr.host->targetipstr(), (void *) thr.thread);
|
filename, thr.rr.host->targetipstr(), (void *) thr.thread);
|
||||||
else /* portrule */
|
else /* portrule */
|
||||||
log_write(LOG_STDOUT,
|
log_write(LOG_STDOUT,
|
||||||
"Starting '%s' against %s:%d (thread %p).\n",
|
"%s: Starting '%s' against %s:%d (thread %p).\n", SCRIPT_ENGINE,
|
||||||
filename, thr.rr.host->targetipstr(),
|
filename, thr.rr.host->targetipstr(),
|
||||||
thr.rr.port->portno, (void *) thr.thread);
|
thr.rr.port->portno, (void *) thr.thread);
|
||||||
}
|
}
|
||||||
@@ -405,11 +405,11 @@ void log_script_finished(const thread_record &thr) {
|
|||||||
|
|
||||||
if (thr.rr.type == 0) /* hostrule */
|
if (thr.rr.type == 0) /* hostrule */
|
||||||
log_write(LOG_STDOUT,
|
log_write(LOG_STDOUT,
|
||||||
"Finished '%s' against %s (thread %p).\n",
|
"%s: Finished '%s' against %s (thread %p).\n", SCRIPT_ENGINE,
|
||||||
filename, thr.rr.host->targetipstr(), (void *) thr.thread);
|
filename, thr.rr.host->targetipstr(), (void *) thr.thread);
|
||||||
else /* portrule */
|
else /* portrule */
|
||||||
log_write(LOG_STDOUT,
|
log_write(LOG_STDOUT,
|
||||||
"Finished '%s' against %s:%d (thread %p).\n",
|
"%s: Finished '%s' against %s:%d (thread %p).\n", SCRIPT_ENGINE,
|
||||||
filename, thr.rr.host->targetipstr(), thr.rr.port->portno,
|
filename, thr.rr.host->targetipstr(), thr.rr.port->portno,
|
||||||
(void *) thr.thread);
|
(void *) thr.thread);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user