Password Recovery from stolen hard drive

Ray Parrish crp at cmc.net
Tue Apr 13 22:27:03 UTC 2010


Maxime Alarie wrote:
> "How would you script that?  9 times out of 10 I expect that the laptop
> would report a private address like 192.168.0.15  Useless information
> unless I had a way to log back into the laptop from where ever I was.  A
> pipe dream I think."
>
> #!/bin/bash
>
> echo Your external IP Address is:
> wget http://Www.whatismyip.com -O - -o /dev/null | grep '<TITLE>' | sed
> -r 's/<TITLE>WhatIsMyIP\.com \- //g' | sed -r 's/<\/TITLE>//g'
>
> exit 0
>
> (You can also use gedit instead of nano, but I chose to use nano above
> in case this is done through a remote text-based connection)
>
> Press Ctrl + O, Enter, Ctrl + X, then run:
> chmod u+x bin/whatismyip.sh
>
> Now you can check your external IP Address by running:
> ~/bin/whatismyip.sh
> ...in a terminal.
>
>
> Source: http://ubuntuforums.org/archive/index.php/t-526176.html
>
>
> -----Original Message-----
> From: ubuntu-users-bounces at lists.ubuntu.com
> [mailto:ubuntu-users-bounces at lists.ubuntu.com] On Behalf Of
> p.echols at comcast.net
> Sent: Tuesday, April 13, 2010 2:10 PM
> To: Ubuntu user technical support,not for general discussions
> Subject: Re: Password Recovery from stolen hard drive
>
>
> ----- "Maxime Alarie" <malarie at processia.com> wrote:
>
>   
>> Im not a security expert, but I'd say Yes and no.
>>
>> Chances are that when he finds out its Linux under the hood, he 'll
>> wipe
>> it clean  and install Windows (or ask a friend to do it), that is if
>> he
>> did not sold it.
>>     
>
> Police say it was probably sold within the hour.  If it gets wiped, then
> I don't care any more.  It's done and gone.
> The concern is if it was sold to identity thieves.  Can they get access
> to my passwords and then access my accounts.
>
>
>   
>> He can reset your password if he is able to reset the root password,
>> which require some grub knowledge or if  he's patient enough to read
>> some documentation on how to do it
>>     
>
> Yah, I better change all my passwords.  Bleah!
>
>
>
>   
>> If I can suggest..  Make a script that sends its ip adress   (i.e: at
>> the last line of the networking script)to your email account (gmail,
>> hotmail,etc..) at boot time.. That way you might be able to do what
>> you
>> want with your pc as soon as it hits the net. :)
>>
>>     
>
> How would you script that?  9 times out of 10 I expect that the laptop
> would report a private address like 192.168.0.15  Useless information
> unless I had a way to log back into the laptop from where ever I was.  A
> pipe dream I think.
>   
Uh yeah... this is what that command yields here -

ray at RaysComputer:~$ wget http://Www.whatismyip.com -O - -o /dev/null | 
grep '<TITLE>' | sed
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be 
executed
  -i[SUFFIX], --in-place[=SUFFIX]
                 edit files in place (makes backup if extension supplied)
  -l N, --line-length=N
                 specify the desired line-wrap length for the `l' command
  --posix
                 disable all GNU extensions.
  -r, --regexp-extended
                 use extended regular expressions in the script.
  -s, --separate
                 consider files as separate rather than as a single 
continuous
                 long stream.
  -u, --unbuffered
                 load minimal amounts of data from the input files and flush
                 the output buffers more often
      --help     display this help and exit
      --version  output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

E-mail bug reports to: bonzini at gnu.org .
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
ray at RaysComputer:~$ -r 's/<TITLE>WhatIsMyIP\.com \- //g' | sed -r 
's/<\/TITLE>//g'
bash: -r: command not found
ray at RaysComputer:~$

Want to try again? 8-)

Later, Ray Parrish

-- 
Linux dpkg Software Report script set..
http://www.rayslinks.com/LinuxdpkgSoftwareReport.html
Ray's Links, a variety of links to usefull things, and articles by Ray.
http://www.rayslinks.com
Writings of "The" Schizophrenic, what it's like to be a schizo, and other
things, including my poetry.
http://www.writingsoftheschizophrenic.com






More information about the ubuntu-users mailing list