add exploit number to prefix

git-svn-id: file:///home/svn/framework3/trunk@10443 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-09-23 02:16:29 +00:00
parent 3acede0f3c
commit 224891387a
1 changed files with 9 additions and 1 deletions

View File

@ -179,7 +179,15 @@ class Module
datastore['TimestampOutput'] =~ /^(t|y|1)/i or
framework.datastore['TimestampOutput'] =~ /^(t|y|1)/i
)
return "[#{Time.now.strftime("%Y.%m.%d-%H:%M:%S")}] "
prefix = "[#{Time.now.strftime("%Y.%m.%d-%H:%M:%S")}] "
xn ||= datastore['ExploitNumber']
xn ||= framework.datastore['ExploitNumber']
if xn.is_a?(Fixnum)
prefix << "[%04d] " % xn
end
return prefix
end
""
end