{"action":"created","issue":{"url":"https://api.github.com/repos/shirosaidev/sharesniffer/issues/3","repository_url":"https://api.github.com/repos/shirosaidev/sharesniffer","labels_url":"https://api.github.com/repos/shirosaidev/sharesniffer/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/shirosaidev/sharesniffer/issues/3/comments","events_url":"https://api.github.com/repos/shirosaidev/sharesniffer/issues/3/events","html_url":"https://github.com/shirosaidev/sharesniffer/issues/3","id":330587774,"node_id":"MDU6SXNzdWUzMzA1ODc3NzQ=","number":3,"title":"KeyError: \"Can't find nmap nse scripts nfs-showmount, nfs-ls\"","user":{"login":"michelep","id":1425559,"node_id":"MDQ6VXNlcjE0MjU1NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/1425559?v=4","gravatar_id":"","url":"https://api.github.com/users/michelep","html_url":"https://github.com/michelep","followers_url":"https://api.github.com/users/michelep/followers","following_url":"https://api.github.com/users/michelep/following{/other_user}","gists_url":"https://api.github.com/users/michelep/gists{/gist_id}","starred_url":"https://api.github.com/users/michelep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelep/subscriptions","organizations_url":"https://api.github.com/users/michelep/orgs","repos_url":"https://api.github.com/users/michelep/repos","events_url":"https://api.github.com/users/michelep/events{/privacy}","received_events_url":"https://api.github.com/users/michelep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-06-08T09:35:13Z","updated_at":"2018-06-13T08:51:04Z","closed_at":null,"author_association":"NONE","body":"2018-06-08 11:30:25,288 [WARNING][sniffshares] Not running as root, sniffing may be slower\r\n2018-06-08 11:30:25,288 [INFO][sniffshares] Sniffing for any network shares...\r\n2018-06-08 11:30:25,289 [INFO][sniffshares] Scanning all hosts we can find (ctrl-c to stop)\r\n2018-06-08 11:30:25,301 [INFO][sniffshares] No hosts specified, finding your network info\r\n2018-06-08 11:30:25,303 [INFO][sniffshares] Networks found: 172.16.56.0/21\r\n2018-06-08 11:30:25,303 [INFO][sniffshares] Starting network sniff...\r\n2018-06-08 11:30:25,303 [INFO][sniffshares] Looking for nfs and smb shares...\r\nTraceback (most recent call last):\r\n  File \"sharesniffer.py\", line 494, in <module>\r\n    shares = sniff_network()\r\n  File \"sharesniffer.py\", line 326, in sniff_network\r\n    shares['nfsshares'] = sniff.get_nfs_shares(hostlist_nfs)\r\n  File \"sharesniffer.py\", line 97, in get_nfs_shares\r\n    raise KeyError(\"Can't find nmap nse scripts nfs-showmount, nfs-ls\")\r\nKeyError: \"Can't find nmap nse scripts nfs-showmount, nfs-ls\"\r\nmichele@xxxx:~/sharesniffer$ ls\r\nLICENSE  nfs-ls.nse  nfs-showmount.nse  README.md  sharesniffer.py  smb-enum-shares.nse\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/shirosaidev/sharesniffer/issues/comments/396864162","html_url":"https://github.com/shirosaidev/sharesniffer/issues/3#issuecomment-396864162","issue_url":"https://api.github.com/repos/shirosaidev/sharesniffer/issues/3","id":396864162,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Njg2NDE2Mg==","user":{"login":"michelep","id":1425559,"node_id":"MDQ6VXNlcjE0MjU1NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/1425559?v=4","gravatar_id":"","url":"https://api.github.com/users/michelep","html_url":"https://github.com/michelep","followers_url":"https://api.github.com/users/michelep/followers","following_url":"https://api.github.com/users/michelep/following{/other_user}","gists_url":"https://api.github.com/users/michelep/gists{/gist_id}","starred_url":"https://api.github.com/users/michelep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelep/subscriptions","organizations_url":"https://api.github.com/users/michelep/orgs","repos_url":"https://api.github.com/users/michelep/repos","events_url":"https://api.github.com/users/michelep/events{/privacy}","received_events_url":"https://api.github.com/users/michelep/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T08:51:04Z","updated_at":"2018-06-13T08:51:04Z","author_association":"NONE","body":"Yes, of course. Just for testing, i've tried running sharesniffer as root but the same issue was raised:\r\n\r\n2018-06-13 10:50:29,239 [DEBUG][sniffshares] nm scan output: {'nmap': {'scanstats': {'uphosts': '1', 'timestr': 'Wed Jun 13 10:50:29 2018', 'downhosts': '0', 'totalhosts': '1', 'elapsed': '1.34'}, 'scaninfo': {'tcp': {'services': '111', 'method': 'syn'}}, 'command_line': 'nmap -oX - -p 111 -n -T4 -Pn -PS111,445 --open --min-parallelism 100 --max-parallelism 256 --max-retries 1 --min-rate 100 --max-rate 256 --host-timeout 2 --datadir /usr/share/nmap/scripts --script /usr/share/nmap/scripts/nfs-showmount.nse,/usr/share/nmap/scripts/nfs-ls.nse 172.16.60.88'}, 'scan': {'172.16.60.88': {'status': {'state': 'up', 'reason': 'arp-response'}, 'hostnames': [{'type': '', 'name': ''}], 'vendor': {'00:17:A4:F7:F3:CE': 'Hewlett Packard'}, 'addresses': {'mac': '00:17:A4:F7:F3:CE', 'ipv4': '172.16.60.88'}, 'tcp': {111: {'product': '', 'state': 'open', 'version': '', 'name': 'rpcbind', 'conf': '3', 'extrainfo': '', 'reason': 'syn-ack', 'cpe': ''}}}}}\r\nTraceback (most recent call last):\r\n  File \"./sharesniffer.py\", line 511, in <module>\r\n    shares = sniff_network()\r\n  File \"./sharesniffer.py\", line 332, in sniff_network\r\n    shares['nfsshares'] = sniff.get_nfs_shares(hostlist_nfs)\r\n  File \"./sharesniffer.py\", line 101, in get_nfs_shares\r\n    raise KeyError(\"nmap nse script error\")\r\nKeyError: 'nmap nse script error'\r\n"}}
{"actor":{"display_login":"michelep"}}