johnnyrage Posted July 11, 2009 Posted July 11, 2009 i downloaded the source code from the website on the show notes for the latest episode about cold boot attacks and following the install instructions inside the /doc folder when i run the make command i get this root@bt:~/bios_memimage# make make -C stand make[1]: Entering directory `/root/bios_memimage/stand' make[1]: `libstand.a' is up to date. make[1]: Leaving directory `/root/bios_memimage/stand' make -C i386 make[1]: Entering directory `/root/bios_memimage/i386' as -I../include -o start.o start.s start.s: Assembler messages: start.s:138: Error: junk `(bios_disk)' after expression start.s:142: Error: junk `(GDESC)' after expression start.s:164: Error: can't handle non absolute segment in `ljmp' start.s:175: Error: junk `(_main)' after expression start.s:181: Error: junk `(printf)' after expression start.s:186: Error: junk `(bios_apm_shutdown)' after expression start.s:195: Error: junk `(IDESC)' after expression make[1]: *** [start.o] Error 1 make[1]: Leaving directory `/root/bios_memimage/i386' make: *** [subdiri386] Error 2 has anyone succesfully compiled the .bin file to copy to usb or if anyone has any ideas on how to solve the error would be much appreciated Quote
SomethingToChatWith Posted July 11, 2009 Posted July 11, 2009 If you're not modifying anything in the code use the pre-compiled bin and dd as shown on the episode to install it to a flash drive. Quote
johnnyrage Posted July 11, 2009 Author Posted July 11, 2009 thanks for your reply but i dont see any precompiled version on website,would u like to point me in the right direction please ;) Quote
SomethingToChatWith Posted July 11, 2009 Posted July 11, 2009 The download didn't come with a .bin file? Hmm... let me see if I can find it. As for compiling ovbiously you're missing something there or need to include a parameter with make. Quote
SomethingToChatWith Posted July 11, 2009 Posted July 11, 2009 Ok, it doesnt. Sometimes these type of files are executible. They've got a /docs dir that may come in handy. Bummer, I was going to try this out but like you I've got very limited experience compiling manually. Quote
johnnyrage Posted July 11, 2009 Author Posted July 11, 2009 i tried compiling under backtrack 4 pre final so it may not have all the files needed so il try under ubuntu tommorrow and let u know how it goes Quote
SomethingToChatWith Posted July 12, 2009 Posted July 12, 2009 Yeah good luck. It would be nice if they put up a compiled version. They just assume all of us are hardcore coders. Quote
johnnyrage Posted July 12, 2009 Author Posted July 12, 2009 im still getting the same error message even after trying on ubuntu and following the advice on this website http://www.linuxjournal.com/article/10289 said to change a CFLAG but it still doesnt compile has anyone actually compiled it and would like to share? Quote
SomethingToChatWith Posted July 12, 2009 Posted July 12, 2009 Ovbiously Darren has for the episode. hak5Darren, how'd you go about it? Quote
SomethingToChatWith Posted July 13, 2009 Posted July 13, 2009 Ok, tune in at 12:02. He used GCC to compile the code. There's an option you need to throw in (they show it briefly if you wanna pause it). Darren said there was a note somewhere about it but I didnt see it on the site. Quote
Jonny190 Posted July 15, 2009 Posted July 15, 2009 Just as a helping hand for default bios passwords for what it is worth ;) Quote
DingleBerries Posted July 22, 2009 Posted July 22, 2009 Darren has the complied version of it on his site, link. I also have the AESkey find compiled if anyone needs that. Quote
SomethingToChatWith Posted July 22, 2009 Posted July 22, 2009 I guess I need to start visiting his blog more often. Thanks for sharing the link DB. Quote
joesome95 Posted December 4, 2009 Posted December 4, 2009 ok i just got the source tried compiling it and came up with errors also and keep getting 404 on darren's website can any one here post the bin some were or send it thanks Quote
Shadowplay Posted March 24, 2011 Posted March 24, 2011 I know this is an old post, but I was having trouble with this until I figured it out 2 minutes ago. Go here and install Mingw : (mingw-get-inst-20110316.exe) http://sourceforge.net/projects/mingw/files/ After you're done with that, YOU NEED to install gcc core. Here's the info: http://www.mingw.org/wiki/InstallationHOWTOforMinGW Here's the link to gcc-core: http://sourceforge.net/projects/mingw/files/MinGW/BaseSystem/GCC/Version4/gcc-4.5.2-1/gcc-core-4.5.2-1-mingw32-bin.tar.lzma/ Download and install 7zip: http://www.7-zip.org/ Place "gcc-core-4.5.2-1-mingw32-bin.tar.lzma" in your MinGW directory: C:\MinGW\ Right click on "gcc-core-4.5.2-1-mingw32-bin.tar.lzma" and extract it using 7-zip. Then, Right click on "gcc-core-4.5.2-1-mingw32-bin.tar" and extract it, and copy over your files if your prompted to do so. Make sure you downloaded "bios_memimage-1.2.tar.gz" from http://citp.princeton.edu/memory/code/ and extracted it using 7-zip. Finally, open Mingw Shell. cd C:\bios_memimage-1.2.tar.gz\ make -f Makefile.mingw If you don't get any errors, you're done! Sorry for this dumbed down tutorial, just want to make sure everybody understands. Here's my COMPILED version: http://www.2shared.com/file/yTscnBoZ/memimage.html It contains the same files as Bios_memimage from Princeton, but also includes the compiled files (scraper.bin) Just head on over to the /usb folder and you'll see it. I recommend you try compiling it yourself though. It's a good learning experience. Quote
SteveSi Posted July 24, 2014 Posted July 24, 2014 For systems with more than 4GB do I need the 64-bit scraper.bin? Do you have 64-bit scraper.bin? I can't get it to compile under MinGW. Thanks Steve Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.