add exploit number to prefix
git-svn-id: file:///home/svn/framework3/trunk@10443 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
3acede0f3c
commit
224891387a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue