Tracert isnt a bad idea, but on the box it fails
tracing route to google.com
.... request times out
I have seen a perl script to check ip via website
http://cwashington.netreach.net/depo/view....ScriptType=perlhow to run this under winblows ? ... excuse my ignorance
well I found this little app
http://www.indigostar.com/perl2exe.htmperl2exe
but trying to compile it failed anyone any ideas?
Converting 'wanip.pls -v -gui' to wanip.exe
Warning: Can't locate Win32/Internet.pm
at wanip.pls line 30
@INC =
----------------------------------------------------------------------------------
well I figured my mistake I forgot to install
Perl2Exe for Windows requires an installation of Perl on your machine
hehe
------
anyway it successfully compiles
perl2exe wanip.pls -v -gui
Converting 'wanip.pls -v -gui' to wanip.exe
then when we run the prog
C:\>wanip
WAN IP Address:
C:\>
doesnt print ip address anyone any ideas or can some one else code the same script in C
----------------
well messing about with it it appears that the extracting of the ip in the script
from the webpage is messed
##############################################################################
# Extract WAN IP Address
#
$intSTART = index($strFILE, $strStartWAN) + length($strStartWAN);
$intEND = index($strFILE, $strEndWAN);
$intWANSize = $intEND - $intSTART;
$strWANIP = substr($strFILE, $intSTART, $intWANSize);
##############################################################################
print "\n";
print "WAN IP Address:";
print $strWANIP;
by simply adding to the end
print $strFILE;
it works printing the webpage like so
wanip
WAN IP Address:<html><head><title>Current IP Check</title></head>
<body>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="15%" height="341" align="left" valign="top"><p><a href="http://www.governmentsecurity.org/forum/"><img src="../new_images/forums2.png" alt="hacking exploits security forum" width="189" height="102" border="0" /></a><br />
<a href="http://www.governmentsecurity.org/forum/"><img src="../new_images/hacking.png" alt="hacking" width="190" height="84" border="0" /></a><br/>
<a href="../compliance.php"><img src="../new_images/compliance_articles.png" alt="compliance articles" width="190" height="84" border="0" /></a><br/>
<a href="http://governmentsecurity.bitpipe.com/data/detail?id=1206033259_610&type=RES&psrc=TPP"><img src="../new_images/main_ad_1.png" alt="security white papers" width="190" height="84" border="0" /></a><br/>
<a href="../directory.php"><img src="../new_images/main_ad_2.png" alt="information security consultant" width="190" height="84" border="0" /></a></p>
</td>
<td width="85%" align="left" valign="top">Current IP Address: xx.xx.xx.xx</body></html>
anyway it works I compiled it for winblows and its attached to this post
if anyone care to enlighten me how to clean the output I can recompile it