-
March 22nd, 2005, 08:11 PM
#11
yup....agree with you....
u just told the kids something new
i immagine the copy and paste.... wish there was a counter for that loool
-
March 22nd, 2005, 10:41 PM
#12
beee, please read scratchINtheBOX's previous post ( that's the one right before yours on page one )
Thanks,
Eg
-
March 22nd, 2005, 10:51 PM
#13
Ok, obviously some people don't get what scratchinthebox was trying to say, so I'll translate it:
Don't post in 2 year old threads!!!
-
March 23rd, 2005, 07:42 AM
#14
i'll make the post of Theduck even more clear
Don't post in 2 year old threads!!! <--------------------
Don't post in 2 year old threads without any wothwile answers or suggestions!!!:-D
-
March 23rd, 2005, 10:01 AM
#15
READ THE FAQ
beee,
Now, I can see more reasons why the AO guys are pissed off and will probably NEG you some if you don't get yourself more AWARE of the FAQ.
Yo!
-
January 19th, 2006, 04:20 PM
#16
Banned
thank you for all your sugestions
-
January 20th, 2006, 10:33 AM
#17
Junior Member
I wrote an IP-Scanner in Batch, too. Look at this (long version/short version):
================================================================@ echo off
if %1 == --help goto hlp
set a=0
set aa=0
set b=%2
set c=-n
set d=-f
del alive.txt
del shared.txt
:loop
cls
set a=%1
set /a b = b + 1
if %b% == %3 goto end
echo testing %a%%b%
ping -n 1 -i 1 -l 1 -w 1 %a%%b% |find /i "Empfangen = 1" || goto endofloop
rem ===:::>>> der errorlevel beim ping gibt nicht immer 0 für erfolgreich aus, gelöst mit "||" (nachfolgendes bei fehlschlag des vorherigen ausführen)
echo ==========================>>alive.txt
echo %a%%b%>>alive.txt
if %c% == %4 goto netname
if %c% == %5 goto netname
rem ===:::>>> durch die obige Funktion kann man die Parameter -n und -f in beliebiger Reihenfolge zueinander angeben
goto 1
:netname
nslookup %a%%b% |find "Name:">>alive.txt
:1
if %d% == %4 goto share
if %d% == %5 goto share
goto endofloop
:share
echo ==========================>>shared.txt
echo %a%%b%>>shared.txt
net view %a%%b%>>shared.txt
:endofloop
cls
goto loop
:hlp
echo .
echo ===== Hilfe =====
echo Parameter1: IP bis zur 3. Stelle, inkl. Punkt
echo Parameter2: 4. Stelle der IP bei der der Scan starten soll
echo Parameter3: 4. Stelle der IP bei der der Scan enden soll
echo Parameter4: -n ; Namensaufloesung (auch von offline Rechnern da nslookup!)
echo Parameter5: -f ; zeigt die Netzwerkfreigaben (experimentel)
echo .
echo Beispiele:
echo ipscan 192.168.1. 0 66
echo Das Netz 192.168.1.1-66 wird gescant.
echo ipscan 192.168.1. 6 9 -n
echo Das Netz 192.168.1.6-9 wird gescant + NetBIOS-Names werden ausgelesen
goto end2
:end
cls
type alive.txt
:end2
=========================================================
=========================================================
@echo off
echo IP-Scan>ipscanlog
echo Starttime:>>ipscanlog
time /t>>ipscanlog
set a=81.201.41.
set b=1
:loop
set /a b=b+1
if %b%==25 goto end
ping %a%%b% -n 1 -l 10 -w 1|find "Empfangen = 1"
if errorlevel 1 echo %a%%b% is dead>>ipscanlog
if not errorlevel 1 echo %a%%b% is alive>>ipscanlog
REM cls
goto loop
:end
find "alive" ipscanlog
echo Starttime:>>ipscanlog
time /t>>ipscanlog
find ":" ipscanlog
echo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|