shirosaidev / sharesniffer Goto Github PK
View Code? Open in Web Editor NEWNetwork share sniffer and auto-mounter for crawling remote file systems
License: Apache License 2.0
Network share sniffer and auto-mounter for crawling remote file systems
License: Apache License 2.0
dan@heartofgold:~/Downloads/sharesniffer-master$ sudo python sharesniffer.py -l 4 --hosts 192.168.90.0/24 -a -m /mnt --smbuser tuser --smbpass testpass
____ _ _ ____ ____ ____ /
==== |--| |--| |--< |=== ["] ,< ,,_
____ __ _ _ ____ ____ ____ ____ [~]\/ |__|
==== | \| | |--- |--- |=== |--< OOO
v0.1-b.1
2018-03-12 10:38:34,624 [INFO][sniffshares] Sniffing for any network shares...
2018-03-12 10:38:34,624 [INFO][sniffshares] Hosts: 192.168.90.0/24
2018-03-12 10:38:34,641 [INFO][sniffshares] Starting network sniff...
2018-03-12 10:38:34,642 [INFO][sniffshares] Looking for nfs and smb shares...
Traceback (most recent call last):
File "sharesniffer.py", line 488, in
shares = sniff_network()
File "sharesniffer.py", line 320, in sniff_network
shares['nfsshares'] = sniff.get_nfs_shares(hostlist_nfs)
File "sharesniffer.py", line 94, in get_nfs_shares
nfsshowmount = output['scan'][host]['tcp'][111]['script']['nfs-showmount'].strip().split('\n')
KeyError: 'script'
FYI I just put tuser and testpass in here as placeholders.
I am positive my SMB credentials are correct. Can mount the same CIFS share to my NAS on my linux box using Gigolo.
This is happening on my Windows 7 PC:
Traceback (most recent call last):
File "C:/python/sharesniffer.py", line 494, in
shares = sniff_network()
File "C:/python/sharesniffer.py", line 309, in sniff_network
if os.geteuid():
AttributeError: module 'os' has no attribute 'geteuid'
2018-06-08 11:30:25,288 [WARNING][sniffshares] Not running as root, sniffing may be slower
2018-06-08 11:30:25,288 [INFO][sniffshares] Sniffing for any network shares...
2018-06-08 11:30:25,289 [INFO][sniffshares] Scanning all hosts we can find (ctrl-c to stop)
2018-06-08 11:30:25,301 [INFO][sniffshares] No hosts specified, finding your network info
2018-06-08 11:30:25,303 [INFO][sniffshares] Networks found: 172.16.56.0/21
2018-06-08 11:30:25,303 [INFO][sniffshares] Starting network sniff...
2018-06-08 11:30:25,303 [INFO][sniffshares] Looking for nfs and smb shares...
Traceback (most recent call last):
File "sharesniffer.py", line 494, in
shares = sniff_network()
File "sharesniffer.py", line 326, in sniff_network
shares['nfsshares'] = sniff.get_nfs_shares(hostlist_nfs)
File "sharesniffer.py", line 97, in get_nfs_shares
raise KeyError("Can't find nmap nse scripts nfs-showmount, nfs-ls")
KeyError: "Can't find nmap nse scripts nfs-showmount, nfs-ls"
michele@xxxx:~/sharesniffer$ ls
LICENSE nfs-ls.nse nfs-showmount.nse README.md sharesniffer.py smb-enum-shares.nse
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.