Author Topic: Breaking into command prompts using Microsoft Paint! by 0perator c/o Hak5  (Read 3372 times)

0 Members and 1 Guest are viewing this topic.

Offline NC009

  • Serf
  • *
  • Posts: 20
  • Cookies: 0
    • View Profile
Interesting...this could be useful... ???

Quote

Let’s face it, a lot of public Windows machines aren’t locked down properly. This trick, sent in by 0perator, goes to show how trivial it can be to obtain a shell using the notorious MsPaint tool. Begin by opening Paint and starting a new image with the dimensions of 1 px tall and 6 px wide. Then from left to right paint one pixel at a time with these custom RGB values:
 
  • 10,0,0
  • 13,10,13
  • 100,109,99
  • 120,101,46
  • 0,0,101
  • 0,0,0
Now save the image as a 24-bit bmp file. Rename the extension .bat, open and enjoy the shell.
To see what’s really going on here open the file in a hex editor. My favorite on Windows is HxD Hex Editor. It’s freeware. Of course it’s worth mentioning that any machine secured properly with group policies isn’t going to be susceptible to this attack, but you’d be surprised how many aren’t.
- Hak5


http://www.youtube.com/watch?v=Nwc2g4eGvTs=player embedded



Offline ElectricNoodle

  • Serf
  • *
  • Posts: 38
  • Cookies: 6
    • View Profile
Haha wow! It works!! :P Thats pretty cool :D I wonder if its possible to convert normal source code into images.. that way.. it would be like art in two ways :P You never know.. some programs might look really nice!!! lol

Offline Jath

  • Peasant
  • *
  • Posts: 116
  • Cookies: 2
    • View Profile
thats really cool, i was not expecting that.

Offline NC009

  • Serf
  • *
  • Posts: 20
  • Cookies: 0
    • View Profile
Haha wow! It works!! :P Thats pretty cool :D I wonder if its possible to convert normal source code into images.. that way.. it would be like art in two ways :P You never know.. some programs might look really nice!!! lol

This does open for some new ideas regarding hex translation...

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
mhm, cool, not sure it will work on the average public computer,  this type of attack may be the same as creating a bat file and telling the computer to open cmd or command.
Not sure tough
~Factionwars

Offline FuyuKitsune

  • Knight
  • **
  • Posts: 292
  • Cookies: 21
    • View Profile
I wish they'd put the time of each video segment in the description. I don't give a flying crap about the pre-show talk and the streaming is not very forgiving on my internet.

Not really useful. Just make a text file then change the extension to .bat or .cmd.

gringoire

  • Guest
Nice thing to know, might be useful some time, I never saw a windows computer without paint.
Too bad I don't have a windows computer handy to try it on right now :(
« Last Edit: August 23, 2011, 04:40:09 pm by Gringoire »

Offline petermlm

  • Knight
  • **
  • Posts: 226
  • Cookies: 7
  • Information is Power
    • View Profile
    • Security Check
Nice thing to know, might be useful some time, I never saw a windows computer without paint.
Too bad I don't have a windows computer handy to try it on right now :(

You can try this with Virtual Box.