Go Back  
Reply
 
Thread Tools
Old 01-21-2013   #11
zecoxao
Member
 
zecoxao's Avatar
 
Join Date: Oct 2011
Posts: 708
Likes: 390
Liked 708 Times in 276 Posts
Mentioned: 115 Post(s)
Tagged: 0 Thread(s)
wow. it has been a while since i actually saw such a clean C code if that makes @euss happy then i guess it'll make a decent terminal app to use :D
__________________
"Whoever has ears, let them hear."
zecoxao is offline   Reply With Quote
Likes: (1)
Old 01-21-2013   #12
anaria
Homebrew Developer
 
anaria's Avatar
 
Join Date: Feb 2009
Posts: 80
Likes: 34
Liked 93 Times in 27 Posts
Mentioned: 16 Post(s)
Tagged: 0 Thread(s)
Here you go for a compiled version on Mac: www dot sendspace dot com/file/1sdabq
I'm looking at cross compile stuff now and it hurts my brain ...
anaria is offline   Reply With Quote
Old 01-21-2013   #13
zecoxao
Member
 
zecoxao's Avatar
 
Join Date: Oct 2011
Posts: 708
Likes: 390
Liked 708 Times in 276 Posts
Mentioned: 115 Post(s)
Tagged: 0 Thread(s)
http://dl.dropbox.com/u/35197530/nor...checker.tar.gz

I have added a Makefile for it for linux and put it as a binary application, if it's ok with the OP
__________________
"Whoever has ears, let them hear."
zecoxao is offline   Reply With Quote
Likes: (1)
Old 01-21-2013   #14
anaria
Homebrew Developer
 
anaria's Avatar
 
Join Date: Feb 2009
Posts: 80
Likes: 34
Liked 93 Times in 27 Posts
Mentioned: 16 Post(s)
Tagged: 0 Thread(s)
@zecoxao no problem you are welcome to do so, thanks for your support.
anaria is offline   Reply With Quote
Old 01-21-2013   #15
underwurlde
Member
 
underwurlde's Avatar
 
Join Date: Nov 2012
Location: S.England
Posts: 492
Likes: 46
Liked 232 Times in 126 Posts
Mentioned: 46 Post(s)
Tagged: 0 Thread(s)
Well written, well structured coding.

10/10

A
underwurlde is offline   Reply With Quote
Likes: (1)
Old 01-21-2013   #16
anaria
Homebrew Developer
 
anaria's Avatar
 
Join Date: Feb 2009
Posts: 80
Likes: 34
Liked 93 Times in 27 Posts
Mentioned: 16 Post(s)
Tagged: 0 Thread(s)
Some notes for anyone who want to compile it but have no idea about it:

There are many solution out there but as I only wrote and tested it on a POSIX platform I'd stick to it.

For windows user:
I suggest to install cygwin with developer packages.
You can then compile with the command:
gcc sourcefile.c -o appname -lcrypto
to run it from cygwin shell just type ./appname
to run it from the dos you'll need to copy required cygwin dll
you can also use the tgz from @zecoxao and do a make as on any other POSIX system within cygwin of course.

For Linux users:
well you know that already :P

For Mac users:
I hope you know that too... otherwise the simplest is to install xcode in order to have gcc and all includes then follow same steps as in cygwin.

For any other POSIX platform:
I'm sure you know that already.

For Amiga users:
go with gcc, google will tell you

For Atari ST users:
I suggest you to exchange it with an Amiga...:D, arf of course yes you can find something.

Any other exotic platform: you'll have to find by yourself

@Sarah1331 , I've added especially for you :P the -D option some examples below under windows and cygwin:

$ ./NORDumpTool.exe nordump.bin -D 0x820 0x10 A
******************************
* NOR Dump Tool *
******************************

Open source project aimed to help to validate PS3 NOR dumps
At the moment (January 2013) the code is probably able
to give you a validation status of roughly 90%!?
It's anyway better to do additionnal checking by your own,
unless the code of this tool is fully validated by experts!!!

Section: Start at '0x00000820' of size '0x10': read metldr

$ ./NORDumpTool.exe nordump.bin -D 0x820 0x10 H
******************************
* NOR Dump Tool *
******************************

Open source project aimed to help to validate PS3 NOR dumps
At the moment (January 2013) the code is probably able
to give you a validation status of roughly 90%!?
It's anyway better to do additionnal checking by your own,
unless the code of this tool is fully validated by experts!!!

Section: Start at '0x00000820' of size '0x10': read 6D65746C647200000000000000000000

Binaries:
Windows with cygwin dlls: www dot sendspace dot com/file/d74gcd
Linux: @zecoxao , I'll be grateful again if you proceed with it
Mac: .... wait few hours...

Note: I hope this code is clear enough to be evolved in treating NAND dump as well, I'll have a look later if no one does it first, but I'll then have to put my hand on a NAND dump to try it.
anaria is offline   Reply With Quote
Likes: (5)
Old 01-22-2013   #17
MD Krie
Member
null
 
Join Date: Nov 2012
Posts: 42
Likes: 44
Liked 3 Times in 3 Posts
Mentioned: 6 Post(s)
Tagged: 0 Thread(s)
what developer package i need to install for cygwin?

sorry noob question
MD Krie is offline   Reply With Quote
Old 01-22-2013   #18
judges
Homebrew Developer
 
Join Date: Jul 2011
Posts: 299
Likes: 32
Liked 219 Times in 104 Posts
Mentioned: 85 Post(s)
Tagged: 0 Thread(s)
Nice work!

Made a native win32 version (linked statically, nothing else required):
http://www.mediafire.com/?cfp29xc0xgbs5dk

-- judges

Btw, I guess "IDPSTargetID = malloc(2);" should be "IDPSTargetID = malloc(3);"...
judges is online now   Reply With Quote
Likes: (6)
Old 01-22-2013   #19
3absiso
Senior Member
 
3absiso's Avatar
 
Join Date: Nov 2011
Location: Long Live PALESTINE
Posts: 1,623
Likes: 767
Liked 675 Times in 490 Posts
Mentioned: 223 Post(s)
Tagged: 0 Thread(s)
Originally Posted by judges View Post
Nice work!

Made a native win32 version (linked statically, nothing else required):
http://www.mediafire.com/?cfp29xc0xgbs5dk

-- judges

Btw, I guess "IDPSTargetID = malloc(2);" should be "IDPSTargetID = malloc(3);"...
Nice, tested it and working,
but always check your Dump with HxD i feel more comfortable that way.
but this is a good App

thanx @anaria for the code
thanx @judges for the compiled version
3absiso is offline   Reply With Quote
Likes: (1)
Old 01-22-2013   #20
anaria
Homebrew Developer
 
anaria's Avatar
 
Join Date: Feb 2009
Posts: 80
Likes: 34
Liked 93 Times in 27 Posts
Mentioned: 16 Post(s)
Tagged: 0 Thread(s)
@MD Krie , I'm not sure of the exact minimum required, it should be around packages like gcc-core, g++, openssl.
If you have enough space (like about 200MB) just install the category Devel, otherwise you can select it to be installed then go in to remove other compiler not related to C/C++ like gcc-java/ada/fortran... mingw is not required either.

@judges , exact I've counted 1 byte instead of 2
anaria is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



PS3Hax.net is Copyright © 2010-2013.
Use of this site is governed by our Terms of Use and Privacy Policy. All Trademarks and images are owned by their respected owners.
Posts and links are subject to each author on this forum and are no way affiliated with the operations and/or opinions of ps3hax.net
All times are GMT -5. The time now is 02:57 AM.