certuran
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
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi McKnife,
with the command where will I see the result text file?
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
To see it, press winkey+r and enter %temp%\writable_shares.txt
ASKER
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.
This tool is scanning a drive for 1 computer. I need to scan the all computers which shared their folders in the network.
ASKER
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
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.
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%.
ASKER
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_sha res1.txt
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_sha
Servers are available, always, that's what they live for ;-)
ASKER
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?
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
This will generate a list of servers that you can definitely work with.
for /f %%a in (serverlist.txt) do portping %%a 445 -s && echo %%a>%temp%\ListOfAvailableServers.txt
Use portping.exe from http://www.tkolb.de/portping-screenshots-13-34.htmlThis will generate a list of servers that you can definitely work with.
ASKER
command is giving this error:
'portping' is not recognized as an internal or external command, operable program or batch file.
'portping' is not recognized as an internal or external command, operable program or batch file.
ASKER
excuse me, understand now. downloaded. it worked :)
ASKER
Very useful solution. Thank you McKnife. You are great.
https://technet.microsoft.com/en-us/sysinternals/bb795534