Link to home
Start Free TrialLog in
Avatar of certuran
certuranFlag for Türkiye

asked on

Network scan for finding fully accessible folders

Could you please suggest a tool that scans the network and finds shared folder which can be accessed full rights. I need this bacuse, you know, fully accessible folders are in dangerous to be infected by virus, malware etc.
Thank you
ASKER CERTIFIED SOLUTION
Avatar of McKnife
McKnife
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Two free Microsoft tools to help with this are AccessChk and AccessEnum

https://technet.microsoft.com/en-us/sysinternals/bb795534
Avatar of certuran

ASKER

Hi McKnife,
with the command where will I see the result text file?
I wrote:  output in %temp%\writable_shares.txt
To see it, press winkey+r and enter  %temp%\writable_shares.txt
Hi NVIT,
This tool is scanning a drive for 1 computer. I need to scan the all computers which shared their folders in the network.
Hi McKnife,
I reached the %temp% folder. it is ok. However, writable_shares.txt is not there. When I pasted the command that you have given me, into a batch file named SC1.bat. I have run it. Please see the result in attachment. Server name ABC.
SC1-result1.JPG
With any command it's like this: if we paste it into a batch file, we need to write "%%a" instead of each "%a".
So do that or simply paste that command into a command shell that "anybody" has opened.
Did you try that? I just corrected my last comment, if you use a batch, use %%a instead of %a, but not %%temp%% instead of %temp%.
Hello Dear McKnife,
Thank you for the detail correction. I got it. It worked. I've started to collect the information I need. But if the server or client that I am scanning is not available, the command waiting for response. Is there any parameter to skip next. For example Wait:1 (only 1 second waits)
I am using this:

@echo off
for /F "usebackq delims==" %%I in ("Machines.txt") do Call :begin %%I
goto :EOF

:begin
set srv=%1
:get info

@echo %srv%

for /f %%a in ('net view \\%srv% /all') do md \\%srv%\%%a\writetest1 && echo \\%srv%\%%a is writable for anybody>>c:\z\writable_shares1.txt
Servers are available, always, that's what they live for ;-)
Actually I am scanning throuhout the network. All Clients and Servers. Machine is alive. But somehow there are some errors. Such as;
Error 53
Network name could not be found
Access denied
System could not find the file
etc.
For some machines command waiting for response.
Can we put any parameter not to wait and skip it?
If we assume that the machine has the smb port 445 open when shares are accessible, you can do
for /f %%a in (serverlist.txt) do portping %%a 445 -s && echo %%a>%temp%\ListOfAvailableServers.txt

Open in new window

Use portping.exe from http://www.tkolb.de/portping-screenshots-13-34.html
This will generate a list of servers that you can definitely work with.
command is giving this error:
'portping' is not recognized as an internal or external command, operable program or batch file.
excuse me, understand now. downloaded. it worked :)
Very useful solution. Thank you McKnife. You are great.