Skip to Content
MetasploitManaging Notes

Managing Notes

The following sections describe how to add and delete notes from a project. Viewing all Notes in a Project Use the notes command to view all notes in a project. You can also use the --sort option to sort the notes by type.

msf-pro > notes --sort type

Viewing Notes for a Host Use the notes command to view all notes for a particular host.

msf-pro > notes 192.168.184.155

Adding a Note to a Host Use the notes command and the -a, -t, and -n options to add a note to a host.

  • -a indicates that you want to add a note and enables you to specify the host or range of hosts to add the note to.
  • -t denotes the note type. The note type can be any value or it can be a system defined type, such as fingerprint.match.
  • -n option defines the content for the note. You must enclose the contents of the note in single quotes ''.
msf-pro > notes -a 192.168.184.155 -t type1 -n 'sample note goes here' [*] Time: 2012-09-25 13:57:10 UTC Note: host=192.168.184.155 type= apps data=zip file

Adding a note is not supported in the web interface. It is only available through the console.

Deleting a Note from a Host Use the notes command and the -d option to delete a note from a host. You delete a note by its type.

msf-pro > notes -d 192.168.184.155 -t type1 [*] Time: 2012-06-27 22:08:22 UTC Note: host=192.168.184.155 type=type1 data={:time=>"Fri Jun 01 23:21:31 2012"} [*} Deleted 1 note

Removing a note is not supported in the web interface. It is only available through the console.

Deleting All Notes from All Hosts Use the notes command and the -d option to delete all notes from the project. Do not run this command unless you want to clear every note in the project.

msf-pro > notes -d [*] Time: 2012-06-27 22:08:22 UTC Note: host=74.125.227.67 type=host.nmap.traceroute data={"port"=>6050, "proto"=>"tcp", "hops"=>[{"ttl"=>"1", "ipaddr"=>"74.125.227.67", "rtt"=>"7.00", "name"=>"dfw06s07-in-f3.1e100.net"}]} [*] Time: 2012-06-27 22:08:22 UTC Note: host=74.125.227.64 type=host.os.nmap_fingerprint data={:os_vendor=>"FreeBSD", :os_family=>"FreeBSD", :os_version=>"6.X", :os_accuracy=>86} [*] Time: 2012-06-27 22:08:22 UTC Note: host=74.125.227.64 type=host.last_boot data={:time=>"Fri Jun 01 23:21:31 2012"} [*} Deleted 3 notes