raikia / smbcrunch Goto Github PK
View Code? Open in Web Editor NEW3 tools that work together to simplify reconaissance of Windows File Shares
License: GNU General Public License v3.0
3 tools that work together to simplify reconaissance of Windows File Shares
License: GNU General Public License v3.0
It appears SMBHunt.pl does not currently have any verbose error(s) displaying that 'smbclient' is not installed on the system when attempting to run from Linux if it has not already been installed locally.
More specifically, executing 'SMBHunt.pl' on a '4.15.0-166-generic #174-Ubuntu' server does not identify 'smbclient' not being installed on disk.
This is related to #3 , but this time affects SMBGrab.pl
Command Execution 1:
line 69: my @lines = smbclient -N -A $tempAuthFile '\\\\$server\\$sharename' -c 'get "$file" temp_out.txt' 2> /dev/null
;
It is not that trivial to fix the vulnerability in this case as a pre-parsing is done in line 62. I would recommend to re-write the parsing process, or implement a check that refuses files having / in the name.
Command Execution 2:
line 94: mv temp_out.txt '$new_file_name'
;
Command Execution 3:
line 98: my @data_lines = smbclient -N -A $tempAuthFile '\\\\$server\\$sharename' -c 'allinfo "$file"' 2> /dev/null
;
Hi,
Noticed that a share containing the following does not get indexed correctly as the regex in line 89 in https://github.com/Raikia/SMBCrunch/blob/master/SMBHunt.pl terminates at the whitespace:
Files on share:
asd asd
Foobar
Current output:
\172.11.132.1\Foobar
\172.11.132.1\asd
\172.11.132.1\IPC$
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.