|
|
#91 | |
|
Homebrew Developer
![]() Join Date: Feb 2009
Posts: 80
Likes: 34
Liked 93 Times in 27 Posts
Mentioned: 16 Post(s)
Tagged: 0 Thread(s)
|
The only thing I've done to have it compile and run easily under windows and not only with cygwin was to redefine the mkdir so it can be built with MinGW32. Last edited by anaria; 01-27-2013 at 08:22 PM. Reason: Typo |
|
|
|
|
|
|
#92 | |
|
Member
![]() Join Date: Jan 2011
Posts: 224
Likes: 24
Liked 27 Times in 20 Posts
Mentioned: 10 Post(s)
Tagged: 0 Thread(s)
|
Have you seen my last edit for the byte reversing? Should be easy for you (hopefully) to port it.Also, i'm trying to avoid modifying all you have done on NorDumpTool.c. The way I would like it is that everytime you update it, I just need to fully copy/paste your new code from github and if needed I will fix my work wheter you have changed something that require some changes. From that said, would you mind making your code in a way that I just need to call some functions to get the Nor informations? Like a getStatistics() that would return an array [0] --> Bytes '00', [1] --> Bytes 'FF' etc.. or do it the way you wish :P, a isByteReversed(), something for the generic data (a boolean?), anything else needed so I only need to create a header file (.h) to use your class ![]() Thanks you sir and if you disagree, I would understand but keep in mind that would just make everything else simplier after
|
|
|
|
|
|
|
#93 |
|
Homebrew Developer
![]() Join Date: Feb 2009
Posts: 80
Likes: 34
Liked 93 Times in 27 Posts
Mentioned: 16 Post(s)
Tagged: 0 Thread(s)
|
@jamesst20
, Yep I saw your post and codes, I'll give it a shot a bit later.
I'm in pain reading again and again all NOR offsets and checking if each areas are variable/static data or empty (00 or FF), and make sure the code covers as much as possible of the 16777216 bytes of the NOR, for now even if it checks the most important parts, it in fact checks only 31.81% of pure bytes. I'll then include a byte swapping routine later but may not include it in the 0.9.6, don't know yet. And as for the integration of this code in your own, I will not take time to introduce this changes for now, what I was thinking of, was more about having a GUY which knows each options (-P, -F and so on) execute the binary and then parse the output to eventually fill up some fields in the GUI itself, similar to what have been done with the scetool or some others. I know that I've been too lazy to make it more flexible and only wrote one big C file instead of splitting it in headers and C, I'll do that later which will help you if you want to have only one app instead of a gui calling a binary. Also if you use GitHub and fork the project you'll get all diff each time I do some changes which will make it definitely easier for you to build your code. Finaly as you can see my app is very basic (read file->do something->printf whatever) and so very simple to adapt those printf into sprintf or anything nicer
Last edited by anaria; 01-27-2013 at 08:27 PM. Reason: Ahhhhh Frenchies writing English... a big moment in your life :P |
|
|
|
|
|
#94 |
|
Member
![]() Join Date: Oct 2011
Posts: 719
Likes: 398
Liked 721 Times in 279 Posts
Mentioned: 116 Post(s)
Tagged: 0 Thread(s)
|
if i'm not mistaken, the type of byteswap used is byteswap 16 (16 bytes) in that case, naehrwert has published his ps3_hdd POC tool which includes the function in a clean and tidy way of his
![]() lemme see if i can fetch it. https://dl.dropbox.com/u/35197530/types.h Code:
#include "types.h"
/*! Swap u16 endianness. */
static void _es16_buffer(u8 *buf, u32 length)
{
u16 *ptr = (u16 *)buf;
u32 i;
for(i = 0; i < length/2; i++)
ptr[i] = _ES16(ptr[i]);
}
__________________
"Whoever has ears, let them hear."
Last edited by zecoxao; 01-27-2013 at 08:59 PM. |
|
|
|
|
|
#95 | |
|
Member
![]() Join Date: Jan 2011
Posts: 224
Likes: 24
Liked 27 Times in 20 Posts
Mentioned: 10 Post(s)
Tagged: 0 Thread(s)
|
That would be a lot easier I guess When you say it only checks for 31.81% of pure bytes, you mean that the rest is what is determined by all of your struct which are assumed ? |
|
|
|
|
|
|
#96 |
|
Homebrew Developer
![]() Join Date: Feb 2009
Posts: 80
Likes: 34
Liked 93 Times in 27 Posts
Mentioned: 16 Post(s)
Tagged: 0 Thread(s)
|
@jamesst20
, this current % represent for today what is really read from the dump and checked.
The missing 68.xx % are all part for which I did not finish to write offsets length and so on, like in ros0/1 you have a lot of data but depending if you get a dump from a PS3 under OFW or CFW all can change, and then you can analyse by many ways like doing MD5 if you have a database for each OFW, but for CFW that's no use, so what I'm doing for this is adding routines to read the each ros TOC so I can analyse each files in it or eventually just their MD5 (bad idea if CFW), at least I need to check if there are data where they're supposed to be, it will then increase the % of bytes covered, it may be quite impossible to reach 100%, but what I'm work on is to be sure to meet as close as possible all what guys gave us on the ps3devwiki. Last edited by anaria; 01-28-2013 at 03:22 AM. Reason: Typo and re-phrase |
|
|
|
|
Likes: (1) |
|
|
#97 |
|
Member
![]() |
I am not sure to understand...english isn't my native language. That code is reversed for my knowledge and published not by me. I just reported here.
|
|
|
|
|
|
#98 | |
|
Homebrew Developer
![]() Join Date: Feb 2009
Posts: 80
Likes: 34
Liked 93 Times in 27 Posts
Mentioned: 16 Post(s)
Tagged: 0 Thread(s)
|
But reverse Engineering is a different thing, if it's the case it can considered differently. And so as I knew I would write a lot of stuff I wanted first to ensure that you do not take it for yourself, I just got upset after finding some thread in that other forum... |
|
|
|
|
|
|
#99 |
|
Member
![]() Join Date: Dec 2012
Posts: 160
Likes: 45
Liked 17 Times in 17 Posts
Mentioned: 10 Post(s)
Tagged: 0 Thread(s)
|
I know I sound like an ass but I'd try to create a header file or two(Keeps it nice and neat in my opinion). But VERY interesting....
You have a very good code process(VERY neat). I'm not very good at C but I can understand it with the C++ I know. May have to see if I can convert it later.
__________________
Noobs Look here for downgrade help:Ultimate Fool Proof Guide: Ps3 Hardware downgrading
NOTE: READ THE WARNING! THIS GUIDE IS CURRENT AS OF 12/23/2012 |
|
|
|
|
|
#100 | |
|
Homebrew Developer
![]() Join Date: Feb 2009
Posts: 80
Likes: 34
Liked 93 Times in 27 Posts
Mentioned: 16 Post(s)
Tagged: 0 Thread(s)
|
That's quite interesting, I've always been thinking of C being ten times easier to read than C++, even if you may need more lines in C than C++ to do the same thing!? I agree that it may be better to split it into .h and .c, but I did not put that on my priority list
|
|
|
|
|
|
Likes: (1) |
![]() |
| Bookmarks |
| Thread Tools | |
|
|