hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

Full Version: Tagger ? Ip Sender?
axl
is need a little prog that can send the local ip the a remote ip using net sen or to an icq number every couple of hours...

a batch using the : AT command will be nice too...

i only need to know how to make it find the local ip and than send it....

anyone ? dry.gif
coder
ok, all we need if the IP right?
set a CGI script to log the IP of all who visit...

then schedule a task to GET the cgi url, this can be done pretty easily with a number of tools (the browser, etc..) - almost all networks allow HTTP traffic dry.gif

here is an example:

serverside cgi:
CODE
# print HTTP_HEADERS;
open (BOOK, ">>blah.txt"); print BOOK $ENV{'REMOATE_ADDR'}; close(BOOK);


client side script:
CODE
use LWP::UserAgent;
$http_client = LWP::UserAgent->new;
$http_client->agent("Perl/5.8 ");

my $data_request = HTTP::Request->new(GET => "http://our.server/cgi.pl");

$data_request->content_type('application/x-www-form-urlencoded');
$data_request->content('match=www&errors=0');

my $data_response = $http_client->request($data_request);

if ($data_response->is_success) {
       print "\nit works";  }
else {
       print "\nnot working";  }


now, we can either put a timer in the perl script - or use another scheduling tool (like those offered with most OS's )

this is the same kind of setup i have on my home box. that way all i have to do (if my IP changes) is goto http://our.server/blah.txt and looks for the latest entry...
axl
sorry m8...

but its too tricky for me

any other sugestions?
phrozen77
why dont you just set up a Dynamic DNS-Service like DynDNS?

just my 2cents
Mr_X
easy to do in C (or C++)

execute dos command "ipconfig >file.txt"
It will redirect what is usualy shows in a file
Analyse file.txt to find the ip adress
execute dos command "net send IP_adress" where IP_adress is what you grab in file.txt
You set it in windows start:
In [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run], you create a new key with the name you want and set the value to the path of your exe
That's all
PS: If you don't know how to start dos commands in C, it's system("example_command"); and you must include stdlib.h
KoNh
Obviously Free Dynamic DNS-Service is the best way to go
just get needed tools nut that hard to setup /-GOOGLE-/ ^^

hmmm - http://www.dyns.net is a good one tho

or some trojan does send ip to icq / web page too, optix coderZ did made such tools i think...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.