Welcome to Binary Revolution Forums
![]() |
|
| Guest Message © 2010 DevFuse | |
Placing executable code in different formats Is it possible?
#21
Posted 18 June 2005 - 01:37 PM
You cannot rename an .EXE file to .MP3 and expect it to execute on a windows box. It doesn't work that way. And you can hide as much data in an mp3 file as you want, but it also will not work. It must be an executable file format! .mp3, .jpg, .mpg are NOT executable (as someone else pointed out).
ALl that you can do is corrupt the file by imbedding extra data (fine, it can be data that constructs an .EXE file) but you still cannot execute it easily. An MP3 player will look for mp3 data and play it. Any other data will cause it to either NOT play or generate an ERROR message. It will not execute it! The same holds true for .jpg or any other format. You can hide the data in there, but how do you propose that you execute it? The viewer will either error-off or not be able to interpret the correct image data. It will not arbitrarily execute code.
So, yes, you can imbed EXE data (or any other data) in a file, but you cannot execute it unless the user initiates the execution of the file.
#22
Posted 18 June 2005 - 07:47 PM
StankDawg, on Jun 18 2005, 12:37 PM, said:
You cannot rename an .EXE file to .MP3 and expect it to execute on a windows box. It doesn't work that way. And you can hide as much data in an mp3 file as you want, but it also will not work. It must be an executable file format! .mp3, .jpg, .mpg are NOT executable (as someone else pointed out).
ALl that you can do is corrupt the file by imbedding extra data (fine, it can be data that constructs an .EXE file) but you still cannot execute it easily. An MP3 player will look for mp3 data and play it. Any other data will cause it to either NOT play or generate an ERROR message. It will not execute it! The same holds true for .jpg or any other format. You can hide the data in there, but how do you propose that you execute it? The viewer will either error-off or not be able to interpret the correct image data. It will not arbitrarily execute code.
So, yes, you can imbed EXE data (or any other data) in a file, but you cannot execute it unless the user initiates the execution of the file.
#23
Posted 18 June 2005 - 09:23 PM
k1dd10t, on Jun 18 2005, 08:47 PM, said:
Guess i didnt quite understand what you ment, and stank just cleared it up with a little more detail. My appologize.
#24
Posted 18 June 2005 - 09:33 PM
Back to the original topic, I think the Xbox is the only console currently on the market with a full blown operating system (a 'modified' version of Windows 2000). The only real software on the PS2 is the firmware, the PS2 BIOS, and maybe software for the CD/DVD player, which is probably similar to the instant music software in some modern PC BIOSs. The software is probably located in ROM, so permanent changes would be difficult. Also, there would also be the problem of loading the software onto the PS2 in the first place since an (*AHEM* unmodded :) ) PS2 does not recognize CD-R(W) or DVD+/-R(W) formats. The only real operating system for the PS2 is the Linux distro that comes with the PS2 Linux Kit (and NetBSD, but it requires the Linux Kit). Of course, since the firmware software is proprietary and has not been inspected too closely, it probably has some bugs that can be exploited to execute arbitrary commands, and finding those bugs is a common goal of hackers. Any suggestions on how to go about this?
This post has been edited by Elzair: 18 June 2005 - 09:38 PM
#26
Posted 18 June 2005 - 10:01 PM
Quote
Wasn't there some jpeg buffer overflow vulnerability a while back in IE that allowed for arbitrary code execution? :D
#27
Posted 18 June 2005 - 11:32 PM
ChZ, on Jun 18 2005, 10:01 PM, said:
Quote
Wasn't there some jpeg buffer overflow vulnerability a while back in IE that allowed for arbitrary code execution? :D
This is what gave me the idea in the first place. But the PS2 does not display or recognize jpegs on a burned cd-r/dvd-r.
#29
Posted 19 June 2005 - 03:35 PM
ChZ, on Jun 18 2005, 10:01 PM, said:
Quote
Wasn't there some jpeg buffer overflow vulnerability a while back in IE that allowed for arbitrary code execution? :D
For sure, and it wasn't just JPEG. PNG and possibly some other formats were affected as well. The GDI implementation as a whole was fubared. If I understand correctly, any other binary that used the API was vulnerable so it wasn't exclusive to IE..and as far as audio file formats go, it wasn't that long ago that mpg123 was getting client-sided..which is why I think this scenario isn't completely out of the question.
#30
Posted 19 June 2005 - 06:58 PM
ChZ, on Jun 18 2005, 11:01 PM, said:
Quote
Wasn't there some jpeg buffer overflow vulnerability a while back in IE that allowed for arbitrary code execution? :D
there were exploits for BOTH jpg and png, as well as overflows for the GDI+ tool (which renders images).
FYI - the XboxOS is actually a pimped up version of WinCE last i heard, not 2000. they were going to use WinXP but during original development decided not to because of its instability.
#32
Posted 19 June 2005 - 11:27 PM
I havn't compiled the code or tested it. I don't see how much good could come from it, and i think that there is a patch for it now.
Attached File(s)
-
JpegOfDeathAll.txt (23.68K)
Number of downloads: 14
This post has been edited by 10nix: 19 June 2005 - 11:29 PM
#35
Posted 20 June 2005 - 02:14 PM
To mark the start of an executable the file must have some thing similar to: "[Start EXE]" and to end the executable. The file must have something like: "[End EXE]". So any data in between that is interpreted as .exe data and is executed as an executable.
Good luck making the program for a PS2 though.
This post has been edited by latiffs: 20 June 2005 - 02:15 PM
#37
Posted 20 June 2005 - 02:21 PM
#38
Posted 21 June 2005 - 12:11 AM
CAN-2004-0109
In short, you could own a Linux box by popping in a CD. There was an input validation error in the
ISO9660 implementation (maybe there still is.) The weakness is kind of redundant since once you have physical access it's pretty much game over anyway..but this just makes it that much easier.
If you know somebody that works for Sony, maybe you can get your hands on a Playstation SDK.

Sign In
Register
Help






MultiQuote








