Skip to content

Instantly share code, notes, and snippets.

@thesubtlety
Last active April 19, 2018 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thesubtlety/f32d4faebda16a0d1b3d205afcc04327 to your computer and use it in GitHub Desktop.
Save thesubtlety/f32d4faebda16a0d1b3d205afcc04327 to your computer and use it in GitHub Desktop.

In your ~/.msf directory, create a file msfconsole.rc

set ConsoleLoggin true
set LogLevel 5
set SessionLoggin true
set TimeStampOutput true
set PROMPT %T %L

For bash

PS1='[\u@\h \W] \D{%F %T}\n\$ '

or zsh

PROMPT=$'%{$fg_bold[green]%}%n@%m %{$fg[blue]%}%D{[%X]} %{$reset_color%}%{$fg[white]%}[%~]%{$reset_color%} $(git_prompt_info)\ %{$fg[blue]%}->%{$fg_bold[blue]%} %#%{$reset_color%} '

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment