ROM Hack Question How to open the .kip file?

  • Thread starter Thread starter tomcat777
  • Start date Start date
  • Views Views 10,762
  • Replies Replies 19

tomcat777

Member
Newcomer
Joined
May 28, 2018
Messages
11
Reaction score
0
Trophies
0
Age
25
XP
98
Country
Barbados
I got a switch nx-dreport.kip file,
but I can't open it ,
Does anyone have a loader for this file,Can be IDA plug-in or other.
 
but im looking for a loader(it may be in the switch system).
so,does anyone have one?
I found one on the github :
2.png

but it can't open the .kip file.
The error:
/Applications/IDA Pro 7.0/ida64.app/Contents/MacOS/loaders/nxo64.py: Traceback (most recent call last):

File "/Applications/IDA Pro 7.0/ida64.app/Contents/MacOS/loaders/nxo64.py", line 596, in load_file

f = load_nxo(li)

File "/Applications/IDA Pro 7.0/ida64.app/Contents/MacOS/loaders/nxo64.py", line 547, in load_nxo

return KipFile(fileobj)

File "/Applications/IDA Pro 7.0/ida64.app/Contents/MacOS/loaders/nxo64.py", line 531, in __init__

super(KipFile, self).__init__(BinFile(StringIO(full)), tloc, tsize, rloc, rsize, dloc, dsize)

File "/Applications/IDA Pro 7.0/ida64.app/Contents/MacOS/loaders/nxo64.py", line 271, in __init__

raise NxoException('invalid MOD0 magic')

NxoException: invalid MOD0 magic
 
Last edited by tomcat777,
but im looking for a loader(it may be in the switch system).
so,does anyone have one?
I found one on the github : View attachment 125754
but it can't open the .kip file.
The error:
/Applications/IDA Pro 7.0/ida64.app/Contents/MacOS/loaders/nxo64.py: Traceback (most recent call last):

File "/Applications/IDA Pro 7.0/ida64.app/Contents/MacOS/loaders/nxo64.py", line 596, in load_file

f = load_nxo(li)

File "/Applications/IDA Pro 7.0/ida64.app/Contents/MacOS/loaders/nxo64.py", line 547, in load_nxo

return KipFile(fileobj)

File "/Applications/IDA Pro 7.0/ida64.app/Contents/MacOS/loaders/nxo64.py", line 531, in __init__

super(KipFile, self).__init__(BinFile(StringIO(full)), tloc, tsize, rloc, rsize, dloc, dsize)

File "/Applications/IDA Pro 7.0/ida64.app/Contents/MacOS/loaders/nxo64.py", line 271, in __init__

raise NxoException('invalid MOD0 magic')

NxoException: invalid MOD0 magic
Post was no longer needed.
 
Last edited by wicksand420, , Reason: obsolete method
  • Like
Reactions: Dr.doom
and place the kip on the root of your sd, enter RCM on your switch, boot into CTCaer's hekate payload and select tools and load the kip file

Do you have IDE loader for loader.kip1/sm.kip/....kip?
I'd like to see the contents of the kip file,It's wrong to open the file with loader from GitHub.
 
Come on, KIP files are not nro/nxo/etc.

Hactool with "kip1" or "kip" shows info about the file. --json=filename converts the permissions to a .json file
 
  • Like
Reactions: wicksand420
Come on, KIP files are not nro/nxo/etc.

Hactool with "kip1" or "kip" shows info about the file. --json=filename converts the permissions to a .json file

My IDA Pro says something else...

Make sure you use the 64 Bit executable and that the .kip is a KIP1 file.
 
My IDA Pro says something else...

Make sure you use the 64 Bit executable and that the .kip is a KIP1 file.
Ofcourse, because these are 64bit kernel sysmodules.
This does not mean that they are nintendo switch executables.
 
Ofcourse, because these are 64bit kernel sysmodules.
This does not mean that they are nintendo switch executables.
I know, but you miss the point of this thread, he asked how to open a KIP with IDA Pro...
 
@Falo
I open it with IDA64(7.0) bit,and my file is loader.kip1,but not work:rofl:,
what is your plug-in?
I use this :2.png (sorry,system doesn't allow me to add hyperlinks)
 

Attachments

Last edited by tomcat777,
I'm using the same loader and IDA Pro 7.0 (Windows), are you sure that file is a KIP1?

Open it in a hex editor and compare it to this:
Code:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000000  4B 49 50 31 4C 6F 61 64 65 72 00 00 00 00 00 00  KIP1Loader......
00000010  01 00 00 00 00 00 00 01 01 00 00 00 31 03 00 3F  ............1..?
00000020  00 00 00 00 A8 51 03 00 4C D6 01 00 00 00 00 00  ....¨Q..LÖ......
00000030  00 60 03 00 BC 96 01 00 94 82 00 00 00 40 00 00  .`..¼–..”‚...@..
00000040  00 00 05 00 00 33 00 00 D4 0F 00 00 00 00 00 00  .....3..Ô.......
00000050  00 34 05 00 00 2C 08 00 00 00 00 00 00 00 00 00  .4...,..........
00000060  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000070  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
 
@Falo
And my IDA(windows 10) has an error:

E:\Program Files\IDA 7.0\loaders\nxo64.py: DLL load failed
Traceback (most recent call last):
File "E:\Program Files\IDA 7.0\python\ida_idaapi.py", line 553, in IDAPython_ExecScript
execfile(script, g)
File "E:/Program Files/IDA 7.0/loaders/nxo64.py", line 22, in <module>
import lz4.block
File "C:\python27-x64\lib\site-packages\lz4\__init__.py", line 5, in <module>
from ._version import (
ImportError: DLL load failed
-----------------------------------------------------------------------------------------
The lz4 install successful(version 1.1.0),I also met the same problem in Win7;

error code :
from ._version import (
library_version_number,
library_version_string,
)

Can't find (library_version_number and library_version_string,) in ._version.py;
I don't know how to solve it.
 
Last edited by tomcat777,
@Falo
And my IDA(windows 10) has an error:

E:\Program Files\IDA 7.0\loaders\nxo64.py: DLL load failed
Traceback (most recent call last):
File "E:\Program Files\IDA 7.0\python\ida_idaapi.py", line 553, in IDAPython_ExecScript
execfile(script, g)
File "E:/Program Files/IDA 7.0/loaders/nxo64.py", line 22, in <module>
import lz4.block
File "C:\python27-x64\lib\site-packages\lz4\__init__.py", line 5, in <module>
from ._version import (
ImportError: DLL load failed
-----------------------------------------------------------------------------------------
The lz4 install successful(version 1.1.0),I also met the same problem in Win7;

error code :
from ._version import (
library_version_number,
library_version_string,
)

Can't find (library_version_number and library_version_string,) in ._version.py;
I don't know how to solve it.
Try to delete the .pyc files from c:\python27-x64\Lib\site-packages\lz4. This will compile the lz4 again.

If this doesn't work, the lz4 package maybe malformed.
Try to uninstall with pip and then install it again.

EDIT:
I forgot to say that this ida loader does not work with homebrew. So try first to change it a little bit (the MOD0 section).
 
Last edited by CTCaer,
@CTCaer
Have another IDA plug-in ?
After I lowered the version of lz4, No more that problem, but the same problem was

raise NxoException('invalid MOD0 magic')
NxoException: invalid MOD0 magic.

Maybe I need to fix that loader(nxo.py), or can you(@Falo ) give me a copy of your loader?
 
Last edited by tomcat777,

Site & Scene News

Popular threads in this forum