Last active
August 29, 2015 14:16
-
-
Save wchen-r7/3dfef15cd2ffbffc5b7e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msf > workspace -a demo_for_steve | |
[*] Added workspace: demo_for_steve | |
msf > hosts -a "192.168.1.200" <---- Say you wanna modify this host's name and comments | |
[*] Time: 2015-03-07 19:58:45 UTC Host: host=192.168.1.200 | |
msf > irb | |
[*] Starting IRB shell... | |
>> id = framework.db.get_host(:address => '192.168.1.200').id | |
=> 488 | |
>> framework.db.hosts.update(id, :comments => "This is a new comment") | |
=> #<Mdm::Host id: 488, created_at: "2015-03-07 19:58:45", address: "192.168.1.200", mac: nil, comm: "", name: nil, state: "alive", os_name: nil, os_flavor: nil, os_sp: nil, os_lang: nil, arch: nil, workspace_id: 215, updated_at: "2015-03-07 19:59:48", purpose: nil, info: nil, comments: "This is a new comment", scope: nil, virtual_host: nil, note_count: 0, vuln_count: 0, service_count: 0, host_detail_count: 0, exploit_attempt_count: 0, cred_count: 0, detected_arch: nil> | |
>> framework.db.hosts.update(id, :name => "This is a new name") | |
=> #<Mdm::Host id: 488, created_at: "2015-03-07 19:58:45", address: "192.168.1.200", mac: nil, comm: "", name: "This is a new name", state: "alive", os_name: nil, os_flavor: nil, os_sp: nil, os_lang: nil, arch: nil, workspace_id: 215, updated_at: "2015-03-07 19:59:57", purpose: nil, info: nil, comments: "This is a new comment", scope: nil, virtual_host: nil, note_count: 0, vuln_count: 0, service_count: 0, host_detail_count: 0, exploit_attempt_count: 0, cred_count: 0, detected_arch: nil> | |
>> exit | |
msf > hosts | |
Hosts | |
===== | |
address mac name os_name os_flavor os_sp purpose info comments | |
------- --- ---- ------- --------- ----- ------- ---- -------- | |
192.168.1.200 This is a new name This is a new comment | |
msf > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment