Thu Jul 21 02:25:43 -0400 2011 - (Sessions: 0 Jobs: 0) >
%T - Timestamp
%S - Session count
%J - Job count
%H - Hostname of the local machine
%U - Username of the user running msfconsole
%D - Current local directory
%L - Host to use for listeners (same as 0.0.0.0)
Setting a timestamp will initially result in using the default ruby format.
ie. Thu Jul 21 02:25:27 -0400 2011. To alter the formatting of a timestamp
set the PromptTimeFormat variable. For a list of time format options check out the Time class documentation for the strftime function (http://www.ruby-doc.org/core/classes/Time.html#M000392). Here is an example of using the PromptTimeFormat variable to change the timestamp formatting.
PromptTimeFormat => %I:%H:%S
03:03:00
msf #
Prompt => %T - %L (s:%S j:%J) msf
10:21:51 - 192.168.0.111 (s:0 j:0) msf > save
Saved configuration to: /Users/bannedit/.msf3/config
If you like my blog, Please Donate Me