ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 5642

Dumping an XEX

by 360 - 11-03-2018 - 01:39 PM
#1
Sorry if this thread has mistakes I've been up all night and yet to sleep.

Apparently, this is "Private" according to some people. Who knows why but this thread is here anyways.

This can be used to dump any module loaded in xam. I will leave an example in the end for the people who want to straight C+P into their own source but it may not be perfect, so don't ask for help.

Instead, I'm just going to give a rundown on how to Dump a Module.

To start we are going to need to retrieve the address and the size of the module that we are wanting to dump. (If you use a data grid you can use the selected cell function to retrieve these values, otherwise doing the way I've made mine).

eg.
Code:
uint Address = uint.Parse(ModuleAddress.Text, NumberStyles.AllowHexSpecifier); 
uint Size = uint.Parse(ModuleSize.Text, NumberStyles.AllowHexSpecifier);


After retrieving the Address and Size of the Module we want to Dump we can move onto retrieving the memory from the module and storing it ready to be exported.
So to do this we're going to use GetMemory and then the Address and Size for the 2 parameters.

Code:
byte[] XexBytes = targetConsole.GetMemory(Address, Size);

Now the final step is to export which can be done by a simple 'SaveFileDialog' 

Code:
SaveFileDialog XexDialog = new SaveFileDialog{
FileName = "Dumped_Xex,
Filter = "Xex files (*.xex)|*.xex|All files (*.*)|*.*"
};

if(XexDialog.ShowDialog() == DialogResult.OK)
  File.WriteAllBytes(XexDialog.FileName, XexBytes);

If you're using Tabel or too lazy here is the 
Hidden Content
You must register or login to view this content.

Reply
#2
Nice post big boy
Reply
#3
Nice post I guess
Reply
#4
nice post thanks for this i might check it out later
Reply
#5
thanks for the tut buddy
Reply
#6
Thanks for releasing, things shouldn't be "private"
Reply
#7
thanks for this
Reply
#8
coool i have look at it as well
Reply
#9
never seen this before thanks for the share!
This account is currently banned
Ban reason: multi
Reply
#10
Thanxxxxxxxxxxxxxxx
Reply

Users browsing: 11 Guest(s)