{"action":"created","issue":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5487","labels_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5487/labels{/name}","comments_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5487/comments","events_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5487/events","html_url":"https://github.com/rapid7/metasploit-framework/pull/5487","id":85332710,"number":5487,"title":"Refactor db_nmap and fix the save option","user":{"login":"wvu-r7","id":4551878,"avatar_url":"https://avatars.githubusercontent.com/u/4551878?v=3","gravatar_id":"","url":"https://api.github.com/users/wvu-r7","html_url":"https://github.com/wvu-r7","followers_url":"https://api.github.com/users/wvu-r7/followers","following_url":"https://api.github.com/users/wvu-r7/following{/other_user}","gists_url":"https://api.github.com/users/wvu-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/wvu-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvu-r7/subscriptions","organizations_url":"https://api.github.com/users/wvu-r7/orgs","repos_url":"https://api.github.com/users/wvu-r7/repos","events_url":"https://api.github.com/users/wvu-r7/events{/privacy}","received_events_url":"https://api.github.com/users/wvu-r7/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rapid7/metasploit-framework/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/rapid7/metasploit-framework/labels/library","name":"library","color":"fad8c7"}],"state":"open","locked":false,"assignee":{"login":"bcook-r7","id":10031469,"avatar_url":"https://avatars.githubusercontent.com/u/10031469?v=3","gravatar_id":"","url":"https://api.github.com/users/bcook-r7","html_url":"https://github.com/bcook-r7","followers_url":"https://api.github.com/users/bcook-r7/followers","following_url":"https://api.github.com/users/bcook-r7/following{/other_user}","gists_url":"https://api.github.com/users/bcook-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/bcook-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcook-r7/subscriptions","organizations_url":"https://api.github.com/users/bcook-r7/orgs","repos_url":"https://api.github.com/users/bcook-r7/repos","events_url":"https://api.github.com/users/bcook-r7/events{/privacy}","received_events_url":"https://api.github.com/users/bcook-r7/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-06-04T23:46:48Z","updated_at":"2015-06-05T17:19:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/pulls/5487","html_url":"https://github.com/rapid7/metasploit-framework/pull/5487","diff_url":"https://github.com/rapid7/metasploit-framework/pull/5487.diff","patch_url":"https://github.com/rapid7/metasploit-framework/pull/5487.patch"},"body":"Fixes #4999 and refactors ```db_nmap```.\r\n\r\n**PROTIP:** Use https://github.com/rapid7/metasploit-framework/pull/5487/files?w= to negate the whitespace changes."},"comment":{"url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/comments/109368507","html_url":"https://github.com/rapid7/metasploit-framework/pull/5487#issuecomment-109368507","issue_url":"https://api.github.com/repos/rapid7/metasploit-framework/issues/5487","id":109368507,"user":{"login":"bcook-r7","id":10031469,"avatar_url":"https://avatars.githubusercontent.com/u/10031469?v=3","gravatar_id":"","url":"https://api.github.com/users/bcook-r7","html_url":"https://github.com/bcook-r7","followers_url":"https://api.github.com/users/bcook-r7/followers","following_url":"https://api.github.com/users/bcook-r7/following{/other_user}","gists_url":"https://api.github.com/users/bcook-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/bcook-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcook-r7/subscriptions","organizations_url":"https://api.github.com/users/bcook-r7/orgs","repos_url":"https://api.github.com/users/bcook-r7/repos","events_url":"https://api.github.com/users/bcook-r7/events{/privacy}","received_events_url":"https://api.github.com/users/bcook-r7/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T17:19:32Z","updated_at":"2015-06-05T17:19:32Z","body":"This changes the usage slightly from before, looks good:\r\n\r\n```\r\nmsf > db_nmap --save -n 192.168.56.0/24\r\n[*] Nmap: Starting Nmap 6.47 ( http://nmap.org ) at 2015-06-05 12:18 CDT\r\n[*] Nmap: 'Strange error from connect (64):Host is down'\r\n[*] Nmap: Nmap scan report for 192.168.56.1\r\n[*] Nmap: Host is up (0.000080s latency).\r\n[*] Nmap: Not shown: 999 closed ports\r\n[*] Nmap: PORT   STATE SERVICE\r\n[*] Nmap: 22/tcp open  ssh\r\n[*] Nmap: Nmap done: 256 IP addresses (1 host up) scanned in 8.07 seconds\r\n[*] Saved NMAP XML results to /Users/bcook/.msf4/local/msf-db-nmap-20150605-28503-12vjj32.xml\r\nmsf > services\r\n\r\nServices\r\n========\r\n\r\nhost          port  proto  name  state  info\r\n----          ----  -----  ----  -----  ----\r\n192.168.56.1  22    tcp    ssh   open\r\n```"}}