External Ip
#3 Guest_sk3tch_*
Posted 09 October 2004 - 02:34 PM
#4
Posted 09 October 2004 - 03:56 PM
First if you in there you can see remote IP in your netstat check it out;
netstat -an
Also you can telnet a website in commandline;
c:/telnet 67.15.74.5 80
and paste
GET /simple/ HTTP/1.0
Don't forget double enter at the end
setthesun me = new setthesun();
#5
Posted 10 October 2004 - 08:04 AM
BuzzDee said:
This is easiest i think . :D
#7
Posted 10 October 2004 - 03:22 PM
Jumpi, on Oct 10 2004, 03:01 PM, said:
If victim is behind a router you can just get internal IP, MxMx asking this for this reason
setthesun me = new setthesun();
#8
Posted 10 October 2004 - 03:49 PM
setthesun, on Oct 9 2004, 04:56 PM, said:
First if you in there you can see remote IP in your netstat check it out;
netstat -an
Also you can telnet a website in commandline;
c:/telnet 67.15.74.5 80
and paste
GET /simple/ HTTP/1.0
Don't forget double enter at the end
Netstat should work fine but why the "GET /simple/ HTTP/1.0"?
#9
Posted 10 October 2004 - 04:15 PM
TheCodeMaster, on Oct 10 2004, 03:49 PM, said:
setthesun, on Oct 9 2004, 04:56 PM, said:
First if you in there you can see remote IP in your netstat check it out;
netstat -an
Also you can telnet a website in commandline;
c:/telnet 67.15.74.5 80
and paste
GET /simple/ HTTP/1.0
Don't forget double enter at the end
Netstat should work fine but why the "GET /simple/ HTTP/1.0"?
As I said it's just another method "/simple/" is directory name.
setthesun me = new setthesun();
#10
Posted 10 October 2004 - 04:38 PM
http://www.governmen...pe=post&id=1824
setthesun me = new setthesun();
#11
Posted 12 April 2005 - 09:29 AM
MxMx, on Oct 9 2004, 12:34 PM, said:
how can I get someones external IP is they are behind a router using the command line? is there a tool to do this thnq
Hey. I know this is an old subject, but if anybody is running unix:
#!/bin/sh
#
# Script for getting an external WAN IP
#
URLS[0]="http://checkip.dyndns.org"
URLS[1]="http://whatismyip.com"
URLS[2]="http://www.whatismyipaddress.com"
URLS[3]="http://ipid.shat.net"
URLS[4]="http://www.edpsciences.com/htbin/ipaddress"
URLS[5]="http://www.showmyip.com"
for URL in ${URLS[@]}
do
THIS=${URL}
IP=`curl -s "${THIS}" | tr -cs '[0-9\.]' '\012' \
| awk -F'.' 'NF==4 && $1>0 && $1<256 && $2<256 && $3<256 && $4<256 && !/\.\./' | uniq`
if [ $? == 0 ]; then
IP=`echo $IP | awk '{print $1}'`
echo "Your WAN IP Address is: $IP"
exit
fi
done
#12
Posted 12 April 2005 - 10:17 AM
wanip.c
#include <wininet.h>
#include <stdio.h>
#define AUTHOR "da_cash"
CHAR buffer[100];
int i=75;
int main()
{
printf("+-----------------------+\n");
printf("+ WAN IP by %s/2k5 +\n",AUTHOR);
printf("+-----------------------+\n\n");
HINTERNET hINet, hFile;
CHAR buffer[100];
hINet = InternetOpen(AUTHOR, INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0 );
if ( !hINet )
{
printf("Error getting WAN IP");
return;
}
hFile = InternetOpenUrl( hINet,"http://checkip.dyndns.org/" , NULL, 0, 0, 0 );
if ( hFile )
{
DWORD dwRead;
InternetReadFile( hFile, buffer, 100, &dwRead );
}
InternetCloseHandle( hFile );
InternetCloseHandle( hINet );
printf("WAN IP:");
while ((buffer[i] != 0x3C) && (i < sizeof(buffer)))
{
printf("%c",buffer[i]);
i++;
}
printf("\n");
return;
}include wininet.lib
code may be unproffessional but it works..i'm still learning. binary version attached.
Attached File(s)
-
wanip.rar (2.47K)
Number of downloads: 52
#13
Posted 14 April 2005 - 02:44 PM
that can resolve ur external ip
its an simple exe
if u start it a popup gets up (withg ur ip)
and then it copys the ip into the clipboard
if u want it gimme a pm
im atm at a lan party and upload is blocked curiosly
greetz ninar

Sign In
Register
Help
MultiQuote