-
i was curious if any of ya'llz knew how to perform a traceroute. i have a shell at trojan.neta.com. i jest need a general o'er view of how to send commands to it kuz all i receive is garbage when i try. dont tell me everything, i want to have a challenge.
thanks fer ya help
dephcon
-
i dont know if that is what u are looking for ... but in windows there is an executable called "tracert.exe"
syntax : tracert ipaddress or website
------------------
- regards -
- razzaj -
-
ya, i knew bout it, but is there a way to pump the data that the exe gets into my vb text ****?
-
Let me know if you figure it out. Maybe you can import from perl or use cgi.
-
I shell to dos, then pipe the results into a file, then close dos then read the file output into my program.
If you know of a way of reading directly into VB as return value, please let me know !
-
try this code here!!
Private Sub tracert_Click()
If txtip.Text = "" Then
MsgBox "Please enter an IP address bellow.", 48, "No IP address"
Else
On Error Resume Next
Dim PingCommand As String
Dim Ip As String
Shell "Command.com /c tracert " & txtip.Text & " > c:\test.txt", vbHide
Open "c:\test.txt" For Input As #1
PingCommand = Input$(LOF(1), #1)
Close #1
info.Text = PingCommand
Kill "c:\test.txt"
End If
End Sub