Homebrew Cubic Ninja Blowfish

Slushie3DS

Cold Beverage Lover
Member
Joined
Jan 9, 2015
Messages
707
Trophies
0
Age
29
XP
420
Country
United States
Code:
make[2]: Leaving directory `/c/Users/zoogie/FILES/HOMEBREW/ninjhax/cn_save_initial
_loader/WEST'
sed: can't read s/unsigned/const static unsigned/g: No such file or directory
make[1]: *** [cn_save_initial_loader_bin.h] Error 2
make[1]: Leaving directory `/c/Users/zoogie/FILES/HOMEBREW/ninjhax/cn_save_initial
_loader'
make: *** [cn_save_initial_loader/cn_save_initial_loader.bin] Error 2
Code:
sed: can't read s/unsigned/const static unsigned/g: No such file or directory
I'd try changing that foldername, and then changing the path in the makefile.
 

zoogie

playing around in the end of life
Developer
Joined
Nov 30, 2014
Messages
8,560
Trophies
2
XP
15,000
Country
Micronesia, Federated States of
Code:
sed: can't read s/unsigned/const static unsigned/g: No such file or directory
I'd try changing that foldername, and then changing the path in the makefile.
That's not a folder. It's a command in a linux text insertion utility named sed. I was trying to build yifan-lu's fork of ninhjhax.
 

Slushie3DS

Cold Beverage Lover
Member
Joined
Jan 9, 2015
Messages
707
Trophies
0
Age
29
XP
420
Country
United States
That's not a folder. It's a command in a linux text insertion utility named sed. I was trying to build yifan-lu's fork of ninhjhax.
Then I got nothing. Tried to help. I know that changing the path names sometimes works for me.
 

Suiginou

(null)
Member
Joined
Jun 26, 2012
Messages
565
Trophies
0
Location
pc + 8
XP
738
Country
Gambia, The
  • Like
Reactions: Slushie3DS

zoogie

playing around in the end of life
Developer
Joined
Nov 30, 2014
Messages
8,560
Trophies
2
XP
15,000
Country
Micronesia, Federated States of
If anyone's still interested, I'm fairly sure the blowfish is here. Also check out this snippet of ninjhax's code. May or may not be helpful :P
The first link's code is already implemented in ninjhax the second is already known about. It's not blowfish crypto that is the problem, it's getting the repo compiled. Two different challenges.
 

Slushie3DS

Cold Beverage Lover
Member
Joined
Jan 9, 2015
Messages
707
Trophies
0
Age
29
XP
420
Country
United States
If anyone's still interested, I'm fairly sure the blowfish is here. Also check out this snippet of ninjhax's code. May or may not be helpful :P
Why do you think those would be helpful?

Ninjhax's build depends on:
blowfish_processed.bin, oss_cro/2050/oss.cro, oss_cro/3074/oss.cro, oss_cro/4096/oss.cro, and oss_cro/SKATER_10/oss.cro.
 

Slushie3DS

Cold Beverage Lover
Member
Joined
Jan 9, 2015
Messages
707
Trophies
0
Age
29
XP
420
Country
United States
Yeah and it still won't build haha (not for me anyway :( ) RegionFour will though...
Did you look into this particular file?
make[3]: Entering directory `/c/Users/teron_000/Desktop/ninjhax/ninjhax/cn_qr_initial_loader/WEST/cn_initial'
arm-none-eabi-gcc -Wall -std=c99 -march=armv6 -Os -I"C:\devkitPro\ctrulib\libctru/include" -I/c/devkitPro/libnds/include -c source/font.c -o build/font.o
Assembler messages:
Fatal error: can't create build/font.o: No such file or directory

make[3]: *** [build/font.o] Error 1
make[3]: Leaving directory `/c/Users/teron_000/Desktop/ninjhax/ninjhax/cn_qr_initial_loader/WEST/cn_initial'
make[2]: *** [cn_initial/cn_initial.bin] Error 2
make[2]: Leaving directory `/c/Users/teron_000/Desktop/ninjhax/ninjhax/cn_qr_initial_loader/WEST'
make[1]: *** [cn_qr_initial_loader.bin.png] Error 2
make[1]: Leaving directory `/c/Users/teron_000/Desktop/ninjhax/ninjhax/cn_qr_initial_loader'
make: *** [cn_qr_initial_loader/cn_qr_initial_loader.bin.png] Error 2
 

zoogie

playing around in the end of life
Developer
Joined
Nov 30, 2014
Messages
8,560
Trophies
2
XP
15,000
Country
Micronesia, Federated States of
Did you look into this particular file?
make[3]: Entering directory `/c/Users/teron_000/Desktop/ninjhax/ninjhax/cn_qr_initial_loader/WEST/cn_initial'
arm-none-eabi-gcc -Wall -std=c99 -march=armv6 -Os -I"C:\devkitPro\ctrulib\libctru/include" -I/c/devkitPro/libnds/include -c source/font.c -o build/font.o
Assembler messages:
Fatal error: can't create build/font.o: No such file or directory

make[3]: *** [build/font.o] Error 1
make[3]: Leaving directory `/c/Users/teron_000/Desktop/ninjhax/ninjhax/cn_qr_initial_loader/WEST/cn_initial'
make[2]: *** [cn_initial/cn_initial.bin] Error 2
make[2]: Leaving directory `/c/Users/teron_000/Desktop/ninjhax/ninjhax/cn_qr_initial_loader/WEST'
make[1]: *** [cn_qr_initial_loader.bin.png] Error 2
make[1]: Leaving directory `/c/Users/teron_000/Desktop/ninjhax/ninjhax/cn_qr_initial_loader'
make: *** [cn_qr_initial_loader/cn_qr_initial_loader.bin.png] Error 2
That's because you lack build folders in certain directories. Use yifanlu's fork of ninjhax to fix those issues.
https://github.com/yifanlu/ninjhax/commit/0981402d6cb16db172dff558315d0445e23cc9ae
 

Slushie3DS

Cold Beverage Lover
Member
Joined
Jan 9, 2015
Messages
707
Trophies
0
Age
29
XP
420
Country
United States
Last edited by Slushie3DS,

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
Did you look into this particular file?
Yeah I'd gotten around that issue, just other issues decide to show up and crash the party too lol
I'll have a look at yifan lu's fork though and see how i go.

Edit: Yeah the error I'm running into now is:

Code:
ARMIPS Assembler v0.7d (Apr  5 2015 03:14:33) by Kingcom
Done.
make[1]: Leaving directory `/c/Users/teron_000/Desktop/ninjhax-yifan/ninjhax/spider_code'
make[1]: Entering directory `/c/Users/teron_000/Desktop/ninjhax-yifan/ninjhax/oss_cro'
Traceback (most recent call last):
  File "../scripts/makeROP.py", line 28, in <module>
    putWord(crodata, CRO_PATCH3_OFFSET, CRO_SEGMENT2_SIZE)
  File "../scripts/makeROP.py", line 11, in putWord
    b[k+c]=(v>>(c*8))&0xFF
IndexError: bytearray index out of range
make[1]: *** [oss_new.cro] Error 1
make[1]: Leaving directory `/c/Users/teron_000/Desktop/ninjhax-yifan/ninjhax/oss_cro'
make: *** [oss_cro/out_oss.cro] Error 2
hmm
 

Slushie3DS

Cold Beverage Lover
Member
Joined
Jan 9, 2015
Messages
707
Trophies
0
Age
29
XP
420
Country
United States
Yeah I'd gotten around that issue, just other issues decide to show up and crash the party too lol
I'll have a look at yifan lu's fork though and see how i go.

Edit: Yeah the error I'm running into now is:

Code:
ARMIPS Assembler v0.7d (Apr  5 2015 03:14:33) by Kingcom
Done.
make[1]: Leaving directory `/c/Users/teron_000/Desktop/ninjhax-yifan/ninjhax/spider_code'
make[1]: Entering directory `/c/Users/teron_000/Desktop/ninjhax-yifan/ninjhax/oss_cro'
Traceback (most recent call last):
  File "../scripts/makeROP.py", line 28, in <module>
    putWord(crodata, CRO_PATCH3_OFFSET, CRO_SEGMENT2_SIZE)
  File "../scripts/makeROP.py", line 11, in putWord
    b[k+c]=(v>>(c*8))&0xFF
IndexError: bytearray index out of range
make[1]: *** [oss_new.cro] Error 1
make[1]: Leaving directory `/c/Users/teron_000/Desktop/ninjhax-yifan/ninjhax/oss_cro'
make: *** [oss_cro/out_oss.cro] Error 2
hmm
That looks to be a problem with your .cro. I'm sure you already realized that. Have you double checked they are the correct files?
 

zoogie

playing around in the end of life
Developer
Joined
Nov 30, 2014
Messages
8,560
Trophies
2
XP
15,000
Country
Micronesia, Federated States of
Yeah I'd gotten around that issue, just other issues decide to show up and crash the party too lol
I'll have a look at yifan lu's fork though and see how i go.

Edit: Yeah the error I'm running into now is:

Code:
ARMIPS Assembler v0.7d (Apr  5 2015 03:14:33) by Kingcom
Done.
make[1]: Leaving directory `/c/Users/teron_000/Desktop/ninjhax-yifan/ninjhax/spider_code'
make[1]: Entering directory `/c/Users/teron_000/Desktop/ninjhax-yifan/ninjhax/oss_cro'
Traceback (most recent call last):
  File "../scripts/makeROP.py", line 28, in <module>
    putWord(crodata, CRO_PATCH3_OFFSET, CRO_SEGMENT2_SIZE)
  File "../scripts/makeROP.py", line 11, in putWord
    b[k+c]=(v>>(c*8))&0xFF
IndexError: bytearray index out of range
make[1]: *** [oss_new.cro] Error 1
make[1]: Leaving directory `/c/Users/teron_000/Desktop/ninjhax-yifan/ninjhax/oss_cro'
make: *** [oss_cro/out_oss.cro] Error 2
hmm
Try building a single version like
python scripts/buildVersion.py "4.5.0-10E"
not sure what region your 3ds is

btw - does anyone have a spare copy of linux armips they can share?
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
Try building a single version like
python scripts/buildVersion.py "4.5.0-10E"
not sure what region your 3ds is
That's exactly what I'm doing, trying to build a single version first rather than waiting for it to attempt to build all and fail somewhere. python scripts/buildVersion.py "N9.2.0-20E"
So I'm guessing something is up with the SKATER cro file or something.

And trying to build an old3ds version python scripts/buildVersion.py "9.2.0-20E" gives a totally different issue..
Code:
Done.
make[1]: Leaving directory `/c/Users/teron_000/Desktop/ninjhax-yifan/ninjhax/cn_bootloader'
make[1]: Entering directory `/c/Users/teron_000/Desktop/ninjhax-yifan/ninjhax/cn_secondary_payload'
arm-none-eabi-gcc -Wall -std=c99 -march=armv6 -Os -I"C:\devkitPro\ctrulib\libctru/include" -I/c/devkitPro/libnds/include -c source/font.c -o build/font.o
arm-none-eabi-gcc -Wall -std=c99 -march=armv6 -Os -I"C:\devkitPro\ctrulib\libctru/include" -I/c/devkitPro/libnds/include -c source/main.c -o build/main.o
source/main.c:10:33: fatal error: spider_hook_rop_bin.h: No such file or directory
#include "spider_hook_rop_bin.h"
                                 ^
compilation terminated.
make[1]: *** [build/main.o] Error 1
make[1]: Leaving directory `/c/Users/teron_000/Desktop/ninjhax-yifan/ninjhax/cn_secondary_payload'
make: *** [cn_secondary_payload/cn_secondary_payload.bin] Error 2

This is with a clean copy of yifan lu's fork too... hmm
Tinkering is fun... lol
 

zoogie

playing around in the end of life
Developer
Joined
Nov 30, 2014
Messages
8,560
Trophies
2
XP
15,000
Country
Micronesia, Federated States of
That's exactly what I'm doing, trying to build a single version first rather than waiting for it to attempt to build all and fail somewhere. python scripts/buildVersion.py "N9.2.0-20E"
So I'm guessing something is up with the SKATER cro file or something.

And trying to build an old3ds version python scripts/buildVersion.py "9.2.0-20E" gives a totally different issue..
Code:
Done.
make[1]: Leaving directory `/c/Users/teron_000/Desktop/ninjhax-yifan/ninjhax/cn_bootloader'
make[1]: Entering directory `/c/Users/teron_000/Desktop/ninjhax-yifan/ninjhax/cn_secondary_payload'
arm-none-eabi-gcc -Wall -std=c99 -march=armv6 -Os -I"C:\devkitPro\ctrulib\libctru/include" -I/c/devkitPro/libnds/include -c source/font.c -o build/font.o
arm-none-eabi-gcc -Wall -std=c99 -march=armv6 -Os -I"C:\devkitPro\ctrulib\libctru/include" -I/c/devkitPro/libnds/include -c source/main.c -o build/main.o
source/main.c:10:33: fatal error: spider_hook_rop_bin.h: No such file or directory
#include "spider_hook_rop_bin.h"
                                 ^
compilation terminated.
make[1]: *** [build/main.o] Error 1
make[1]: Leaving directory `/c/Users/teron_000/Desktop/ninjhax-yifan/ninjhax/cn_secondary_payload'
make: *** [cn_secondary_payload/cn_secondary_payload.bin] Error 2

This is with a clean copy of yifan lu's fork too... hmm
Tinkering is fun... lol
Are you sure you're using the latest version of yifan's fork?
https://github.com/yifanlu/ninjhax

That error looks like something he fixed here
https://github.com/yifanlu/ninjhax/commit/323a14e0ade6ac84224e78accf019905543e4d8b
i was getting that error too on smealums repo and the yifan version fixed it.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: @BakerMan, https://youtu.be/KaMSXIRReOo?si=2hRoijJtiwPUHXk5