ROM Hack Question How to open the .kip file?

tomcat777

Member
OP
Newcomer
Joined
May 28, 2018
Messages
11
Trophies
0
Age
23
XP
78
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.
 

tomcat777

Member
OP
Newcomer
Joined
May 28, 2018
Messages
11
Trophies
0
Age
23
XP
78
Country
Barbados
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,

wicksand420

Well-Known Member
Member
Joined
Nov 13, 2016
Messages
2,787
Trophies
1
Age
39
XP
2,296
Country
United States
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

tomcat777

Member
OP
Newcomer
Joined
May 28, 2018
Messages
11
Trophies
0
Age
23
XP
78
Country
Barbados
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.
 

CTCaer

Developer
Developer
Joined
Mar 22, 2008
Messages
1,154
Trophies
0
XP
3,008
Country
Greece
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

Falo

Well-Known Member
Member
Joined
Jul 22, 2012
Messages
680
Trophies
2
XP
2,627
Country
Germany
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.
 

tomcat777

Member
OP
Newcomer
Joined
May 28, 2018
Messages
11
Trophies
0
Age
23
XP
78
Country
Barbados
@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

  • nxo64.py.zip
    6.4 KB · Views: 147
Last edited by tomcat777,

Falo

Well-Known Member
Member
Joined
Jul 22, 2012
Messages
680
Trophies
2
XP
2,627
Country
Germany
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  ................
 

tomcat777

Member
OP
Newcomer
Joined
May 28, 2018
Messages
11
Trophies
0
Age
23
XP
78
Country
Barbados
@Falo
yes,it's same as your hex code,I'm using MAC,
Can you help me ? try to open the file.
this is the file:
 

Attachments

  • loader.kip1.zip
    123.6 KB · Views: 156

tomcat777

Member
OP
Newcomer
Joined
May 28, 2018
Messages
11
Trophies
0
Age
23
XP
78
Country
Barbados
@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,

CTCaer

Developer
Developer
Joined
Mar 22, 2008
Messages
1,154
Trophies
0
XP
3,008
Country
Greece
@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,

tomcat777

Member
OP
Newcomer
Joined
May 28, 2018
Messages
11
Trophies
0
Age
23
XP
78
Country
Barbados
@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

General chit-chat
Help Users
  • No one is chatting at the moment.
    The Real Jdbye @ The Real Jdbye: you can fap to your favorite character without it being gay