Login | |
|
 |
Re: Scaning the network - 9/13/2004 7:45:19 AM
|
|
 |
|
| |
mbouchard
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
What do you have so far?
|
|
| |
|
|
|
 |
Re: Scaning the network - 9/19/2004 11:58:55 PM
|
|
 |
|
| |
mbouchard
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
What I meant was what code have you written so far?
|
|
| |
|
|
|
 |
Re: Scaning the network - 9/23/2004 9:57:21 PM
|
|
 |
|
| |
mbouchard
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
Exploits, no, can it be done, yes as long as you have rights, admin I believe, to the remote PC.
|
|
| |
|
|
|
 |
Re: Scaning the network - 9/27/2004 7:59:58 AM
|
|
 |
|
| |
mbouchard
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
Here is an example using WshShell.Exec, I have been able to get this to partially work, it returns the IP and Mac addresses but not the <00> stuff. I will need to check on that later but this should give you a start. quote: Dim strFileName : strFileName = "computer.txt" Dim Fso : Set Fso = CreateObject("Scripting.FileSystemObject") Dim WshShell : Set WshShell = createobject("wscript.shell") Dim oFile Dim png Dim strComputer Dim strPing Dim strReply Set oFile = Fso.OpenTextFile(strFileName, ForReading) If Not Fso.FileExists(strFileName) then strRet = Msgbox("The file, " & strFileName & " is not available" & vbCr _ & "The file must be located in the same folder as the script." & vbCR _ & "Please check for the file <<" & strFileName & ">> in the folder" & vbCR _ & "<<" & Fso.GetParentFolderName(Wscript.ScriptFullName) & ">>") Wscript.Quit End if Do Until oFile.AtEndOfStream strComputer = oFile.Readline set png = WshShell.exec("nbtstat -a " & strComputer) do until png.status = 1 : wscript.sleep 10 : loop strPing = png.stdout.readall msgbox StrPing temp = ubound(split(strPing,vbcrlf))+1 MyArray = Split(strPing,vbcrlf) i = 0 Do until i = Temp Select Case True Case InStr(MyArray(i), "IpAddress") > 0 Msgbox MyArray(i) Case InStr(MyArray(i), "<00> UNIQUE") > 0 Msgbox MyArray(i) Case InStr(MyArray(i), "<00> GROUP") > 0 Msgbox MyArray(i) Case InStr(MyArray(i), "MAC Address") > 0 Msgbox MyArray(i) End Select i = i + 1 Loop Loop
|
|
| |
|
|
|
| |
|
|
 |
|
 |
|
|