Monday, October 6, 2008

How Do U Make A Diamante Phone Up

Tracciare un computer rubato con un semplice script

Da quando ho un portatile il mio cruccio e' sempre stato di capire cosa avessi potuto fare se me lo avessero rubato. Non so quanto serva e quanto le forze dell'ordine collaborino, ma se viene tracciata la sua posizione forse un modo per ritrovarlo dovrebbe esserci.

Considerando che al giorno d'oggi, con molte probabilita', il computer rubato andra' a farsi un giretto su internet, o si collega automaticamente mediante una rete lan o wireless, perche' non sfruttare questo particolare a nostro vantaggio ?

Utilizzando sendmail, un account di posta funzionante, e uno script linux semplice semplice che invia mail quando si e' connessi, abbiamo trovato un semplice metodo per tracciare il nostro sperduto notebook. I used a simple service that also provides the ip from where we are seen on the net (www.whatismyip.com), but you can use your favorite method.


no more talk and come to the script:

 
# / bin / bash #

Revenue ip from the internet, the most 'secure
# to whatever network that can' be
# PC stolen.
wget http://www.whatismyip.com/automation/n09230945.asp;

# wget me back a file with simple text content
# ip seen by Internet service that translates into
# variable. Then the file will not serve me 'more'.
ip = $ (cat n09230945.asp)
rm-f n09230945.asp

# Build parameters to send the mail to me
# itself. Should I consider here other possibilities
# ', for example, if I can have a
# sendmail or smtp configured properly. I recommend
# gmail addresses simply 'cause their
# spam filter and' different, and also lets #
mail sending is not certain, how could it be that #
been sent.
to = "myaccountname@gmail.com"
subject = "hello from my pc --- stealed IP $ ip";
data = $ (date);

# Using the script sendmail, scriptino a very comfortable
# written in perl that uses sendmail just for
# inviare la posta.
./sendmail.pl $to "$subject" "$data"




Il gioco e' fatto. Per comodita vi posto anche lo script
di sendmail, di facile comprensione :

  
#!/usr/bin/perl
$title='Tracker mail';
$to=$ARGV[0];
$from=$ARGV[0];
$subject=$ARGV[1];
$data=$ARGV[2];
print "Sending mail to $to with subject $subject\n";
open(MAIL, " Body
print MAIL "$ subject \\ n Data sent from the PC: $ date \\ n";
close (MAIL);





Now you just need to make the 2 executable script and schedule, taking care to choose intervals nor too narrow (the risk of clogging up your box) or too
deferred (not peck the time when the PC and 'connected to the network). At the limit, create a control that allows the script to proceed only if and' connected.

Note: This method is' simplicity of a 'unique and has many weak points,' cause the stolen computer to be tracked must:



not be reformatted

    have Internet access, and not always what '
  • happens if the user fails to log, so if you can
    enabled automatic login.

  • have an email provider that does not designate the spam mail you are sending
    automatic script. Gmail
    work, other little, unless you use an SMTP server
  • already 'OS.




  • Note2: There are better technologies, although currently they are not universally popular, that fasten to the bios rather than the operating system. Moreover, there are also
    systems 'deterrent' as anti-theft locks and plates. But I prefer 'the traceability' is primarily controlled by the user and and I know what to do next
with my pc.

Note3: There is no software to charges that are essentially the same thing. If you have to do this and 'home made solution, but adequate.


0 comments:

Post a Comment