r3dux.org

A number-pimping side project from the valleys in *NEW* upside-down flavour.

  • Home
  • ABOUT
  • OLD SITE
  • SEARCH
  • FEEDBACK

How to: break into a Linux user account in seconds

r3dux | July 24, 2011

I thought my Linux box was pretty safe. I mean, I use a strong password, I have my entire home directory encrypted, I should be alright, yeah? Ummm, no… I’ve been thinking about security a bit recently, and as much as I’ve always had an interest in the topic, it’s not my core field – I’m a software engineer at heart, so I build software, not secure it. But with 2011 being the year of the hack with Anonymous and LulzSec hacking site after site after site, along with the major Sony hacks – it can’t help be anything but my field anymore.

So with a strong password and disk encryption I thought I was safe in case my laptop was stolen – but really it isn’t at all. If you have physical access to a machine, then it’s yours. This definitely comes under the ten laws…

The Ten Immutable Laws of Security

There’s a very good Microsoft article called the Ten Immutable Laws of Security which you can read here. The article discusses each one, but I’ll just list them here:

  1. Law #1: If a bad guy can persuade you to run his program on your computer, it’s not your computer anymore.
  2. Law #2: If a bad guy can alter the operating system on your computer, it’s not your computer anymore.
  3. Law #3: If a bad guy has unrestricted physical access to your computer, it’s not your computer anymore.
  4. Law #4: If you allow a bad guy to upload programs to your website, it’s not your website any more.
  5. Law #5: Weak passwords trump strong security.
  6. Law #6: A computer is only as secure as the administrator is trustworthy.
  7. Law #7: Encrypted data is only as secure as the decryption key.
  8. Law #8: An out of date virus scanner is only marginally better than no virus scanner at all.
  9. Law #9: Absolute anonymity isn’t practical, in real life or on the Web.
  10. Law #10: Technology is not a panacea.

There are issues with these “laws” – but you can google that for yourself – what we’re thinking about today is #3 – physical access == potatowned…

Getting it Done

First, reboot the machine and instead of booting as normal, select recovery mode from the GRUB menu:

GRUB Recovery Mode

Next, opt to drop into a root shell:

Recovery Root Shell

You don’t need to enter any password at all for the above – you’re just given root access… At which point, you just reset the password for a user account (in this case I created an account called test, but you can reset the root password or the password on any other account just as easily):

Reset User Account Password

That’s it – you own the box. Simply reboot again and log in with the password you just specified.

Safety is an illusion

I’ve got to say, when I first read about this my jaw just dropped – surely it’s not that easy? But it is. So good job on the disk encryption and strong password use, but it’s all for naught. You’re not asked for a root password, or for an account password before you can reset anything – you’re just given full root access because you asked for it nicely. And with a Windows machine you just boot the box from an OphCrack CD and wait a few minutes before it delivers the password via the use of rainbow tables.

Absolutely incredible.

Comments
6 Comments »
Categories
How-To, Linux, Tech
Tags
account, crack, grub, Password, recovery, reset, Root, Shell
Comments rss Comments rss
Trackback Trackback

The National – Runaway (Live)

r3dux | July 22, 2011

From The National‘s latest album, High Violet (link goes to Pitchfork album review):

YouTube Preview Image

I love this song to bits – it’s just beautiful…

Comments
No Comments »
Categories
Music
Tags
High Violet, Runaway, The National
Comments rss Comments rss
Trackback Trackback

Stallman facts – 103% true

r3dux | July 13, 2011

I was just doing some coding and listening to a Linux Outlaws podcast when they happened to mention the site StallmanFacts.com, which is pretty much ChuckNorrisFacts for Richard Stallman (otherwise known as RMS). If you’re geeky enough you’ll definitely get a laugh out of it =D

Stallman Facts

Check out the Top 10 for some truly excellent ones!

Relatedly, I went and saw RMS speak at the University of Ballarat a while back but never wrote anything about it as I was heading off for a fortnight in the UK shortly afterwards, and by now I’ve forgotten what I was going to say, so I’ll let this cellphone-snapped picture say it for me… whatever it was…

Richard Stallman at Ballarat Uni 2010

Comments
No Comments »
Categories
Humour, Linux
Tags
Chuck Norris, Facts, Linux Outlaws, Podcast, Richard Stallman, RMS
Comments rss Comments rss
Trackback Trackback

Android dev is easy!

r3dux | July 12, 2011

Well, kinda. It’s certainly easy to get up and running with the Android SDK and Eclipse with the ADT Plugin (Android Development Tools), as long as you know a little Java. Even the GUI stuff is all drag-and-drop, which I really quite liked.

To knock together a quick celcius<–>fahrenheit converter (from never having developed on Android to installing the tools and being up and running in less than an hour):

  1. Read this…
  2. …which guides you step-by-step on how to build this:

    Android - App in Menu

    Android Temperature Conversion App

This has got me wondering how easy it is to integrate OpenGL ES into an Android app, which would be a pretty spiffy weekend project I reckon…

Comments
1 Comment »
Categories
Coding
Tags
ADT, Android, Eclipse, Google, Java
Comments rss Comments rss
Trackback Trackback

Jessy J – Price Tag

r3dux | July 11, 2011

Nice enough tune for something so mainstream…

YouTube Preview Image

See her do a decent (if a bit video-wobbly) acoustic version on Jools Holland here.

Comments
2 Comments »
Categories
Music
Tags
Jessy J, Money, Price Tag, What money?
Comments rss Comments rss
Trackback Trackback

« Previous Entries Next Entries »

Translate

Categories

Archives

Tags

3D ActionScript ActionScript 3.0 Adobe AI Ballarat Bash C++ Class Convert CS4 Effect Error Film Flash GLSL Gnome Hack How-To install Jaunty Java Kinect Linkage Linux Mash-Up Microsoft Motion OpenGL Particle Problem PS3 Remix Retro script Slides Sound Systems Texture Ubuntu Video VirtualBox Wii Windows XBox

Gamercard

OpenR3dux

Misc.

Flattr this

RSS Feed

r3dux twitter feed



“This time, like all times, is a very good one if we but know what to do with it.”

 - Ralph Waldo Emerson

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox