Hacking Wii U Hacking & Homebrew Discussion

keine

Well-Known Member
Member
Joined
Aug 29, 2010
Messages
431
Trophies
1
Website
Visit site
XP
1,470
Country
United States
add to PATH
C:\devkitPro\devkitPPC\bin
and
C:\Python27
one way to add folders to path is under System Propteries>Advanced>Enviroment Variables>System Variables>PATH
I'm sure you can do it under cygwin too.....there was a post previously describing that. Restart cygwin after modding path.
Thats just the way I managed it. Cygwin appears to import Windows Path on startup.
Type $PATH$ in cygwin to check if they made it.

I need to learn a bit more python beyond the web scripting I know.
But what is wrong with my two calls. at least its newb dev talk. :)

rpc.read32(10000000,16)
and
symbol("os.rpl","GetCoreCount")

GetCoreCount = symbol(os.rpl,GetCoreCount)

GetCoreCount()
(I know i'm doing this one wrong, that might not even be an rpl. os.rpl def isn't one.)

rpc.exit() works wonderfully.
 

arbiter34

Member
Newcomer
Joined
May 19, 2009
Messages
19
Trophies
0
XP
148
Country
United States
keine, are you 4.00 or 4.10? Did you have to do anything else to get the rpc working properly? I'm showing "Connected by"(albeit on a port other than 12345), but it's not accepting any of my commands. Any thoughts?
 

keine

Well-Known Member
Member
Joined
Aug 29, 2010
Messages
431
Trophies
1
Website
Visit site
XP
1,470
Country
United States
410
I opened rpc.py with IDLE. Then I went run module. I waited for the connection and got the prompt.

>>rpc.exit()

that kicked me back to the main menu. Beyond that, IDK.
Thats the only command I've gotten to work.
 

TeamScriptKiddies

Licensed Nintendo (indie) Game Developer
Member
Joined
Apr 3, 2014
Messages
1,970
Trophies
0
Age
36
Location
Planet Earth :P
XP
1,703
Country
United States
TeamScriptKiddies, you need to modify your build.sh inside the build folder to point at your devkitPro/devkitPPC/bin folder or add it as a PATH variable.


Okay upon opening the shellscript in Notepad the only two paths i'm seeing are "export PATH=$PATH:/cygdrive/c/Python32" for python and the export for the htdocs folder " export HTDOCS=../ else". To add the path for devkit, can i just copy that first code and obviously change the path its pointing to. If so where exactly should I insert the modified code?
 

Bug_Checker_

Well-Known Member
Member
Joined
Jun 10, 2006
Messages
950
Trophies
0
XP
664
Country
United States
aaawwwww but where's the fun in that XD


Try in cygwin at prompt
"echo $PATH" (no quotes) then
"export PATH=$PATH:/cygdrive/c/Pythondirectorylocation:/cygdrive/c/devkitPro/devkitPPC/bindirectorylocation" etc (keep tacking on a colon ":" if you add a directory) when you have included everything and believe it is correct test it. Make changes. Test it again.
oh and "echo $PATH" again once when it is working then copy and paste into text document and save(that way you can go back to it if it fails later because of a windows error. Once it is compiling correctly for you then modify your windows env variables with the correct paths.

Also if you guys are struggling on windows why not install a virtual machine app like virtualbox or vmware player. You can install many different OS's on many different OS's and can take snapshots and shared folders.
 

TeamScriptKiddies

Licensed Nintendo (indie) Game Developer
Member
Joined
Apr 3, 2014
Messages
1,970
Trophies
0
Age
36
Location
Planet Earth :P
XP
1,703
Country
United States
Try in cygwin at prompt
"echo $PATH" (no quotes) then
"export PATH=$PATH:/cygdrive/c/Pythondirectorylocation:/cygdrive/c/devkitPro/devkitPPC/bindirectorylocation" etc when you have included everything and believe it is correct test it. Make changes. Test it again.
oh and "echo $PATH" again once when it is working then copy and paste into text document and save(that way you can go back to it if it fails later because of a windows error. Once it is compiling correctly for you then modify your windows env variables with the correct paths.

Also if you guys are struggling on windows why not install a virtual machine app like virtualbox or vmware player. You can install many different OS's on many different OS's and can take snapshots and shared folders.


It looks like this did the trick! I'm going to try and compile it now! Its showing the correct paths when it echo it now

EDIT: no dice!!!! ><

Also I've already tried using a virtual machine

Its getting late, I'm calling it quits for the night. I'll take another stab at it next chance I get. Its gotta be something I'm doing wrong, because it won't even run the shellscript natively in linux and everybody seems to have it up and running. So frustrating.

Edits Continue! Just a thought, couldn't I bypass this shellscript altogether if I import the source code into a compatible IDE and compile it that way (with the hello.c, or whatever other script I want to run, as well as all the other necessary files)
 

Marionumber1

Well-Known Member
Member
Joined
Nov 7, 2010
Messages
1,234
Trophies
3
XP
4,045
Country
United States
I still can't get the exploit to compile properly so that I can set up a mirror for it. I have Win 7 Home Premium on this machine. Cygwin is installed, as well as devkitpro, and python 3.4.1. I initially tried to run it with everything in their default folders (except the exploit itself) to no avail. I then tried dragging the installation folders for devkitpro, python and Cygwin all into the root folder of the exploit itself, still no change. I also tried dragging everything out of each of its own installation folders and dumping them right into the root folder of the exploit and still no matter what I do, I get stuck at this same exact screen. Never changes, same error every time , never fails. Anybody have any idea what I'm doing wrong here?

View attachment 8493

It seems to just be an issue with files being out of place, the build shellscript can't find everything it needs to compile this....

The error indicates that your Python folder hasn't been added to PATH. Add it there.

EDIT: Beaten to it, didn't see the other posts.
 
  • Like
Reactions: TeamScriptKiddies

NeKit

Member
Newcomer
Joined
Mar 16, 2010
Messages
8
Trophies
0
XP
146
Country
Serbia, Republic of
You can add the path to devKitPPC bin folder and Python to build.sh, by default it's like:
Code:
    export PATH=$PATH:/cygdrive/c/Python32
For Python 3.4 and devkitPro/devkitPPC at drive C: it probably will be:
Code:
    export PATH=$PATH:/cygdrive/c/Python34:/cygdrive/c/devkitPro/devkitPPC/bin
Just to make sure, please use editor other than Windows Notepad (which doesn't support UNIX line endings) for shell scripts.
add to PATH
C:\devkitPro\devkitPPC\bin
and
C:\Python27
But what is wrong with my two calls. at least its newb dev talk. :)

rpc.read32(10000000,16)
and
symbol("os.rpl","GetCoreCount")
GetCoreCount = symbol(os.rpl,GetCoreCount)
Should be:

Code:
rpc.read32(0x10000000,16)
Decimal 10000000 address is probably undefined. I did a memory dump for 0x01000000-0x03800000 and 0x0d800000-0x277a0000.
and:
Code:
symbol("coreinit.rpl", "OSGetCoreCount")
OSGetCoreCount()
symbol() modifies globals, which probably is a bit hacky, but saves a lot of typing when testing interactively.
 
  • Like
Reactions: TeamScriptKiddies

NWPlayer123

Well-Known Member
Member
Joined
Feb 17, 2012
Messages
2,642
Trophies
0
Location
The Everfree Forest
XP
6,693
Country
United States

TeamScriptKiddies

Licensed Nintendo (indie) Game Developer
Member
Joined
Apr 3, 2014
Messages
1,970
Trophies
0
Age
36
Location
Planet Earth :P
XP
1,703
Country
United States
You can add the path to devKitPPC bin folder and Python to build.sh, by default it's like:
Code:
    export PATH=$PATH:/cygdrive/c/Python32
For Python 3.4 and devkitPro/devkitPPC at drive C: it probably will be:
Code:
    export PATH=$PATH:/cygdrive/c/Python34:/cygdrive/c/devkitPro/devkitPPC/bin
Just to make sure, please use editor other than Windows Notepad (which doesn't support UNIX line endings) for shell scripts.

Should be:

Code:
rpc.read32(0x10000000,16)
Decimal 10000000 address is probably undefined. I did a memory dump for 0x01000000-0x03800000 and 0x0d800000-0x277a0000.
and:
Code:
symbol("coreinit.rpl", "OSGetCoreCount")
OSGetCoreCount()
symbol() modifies globals, which probably is a bit hacky, but saves a lot of typing when testing interactively.


Okay thanks, I will give this a shot when I have a chance.
 

keine

Well-Known Member
Member
Joined
Aug 29, 2010
Messages
431
Trophies
1
Website
Visit site
XP
1,470
Country
United States
Any advice on finding rpl names and which functions belong to which rpls?
Its not obvious to me yet.
It appears acquire isn't used normally, but rather the rpls are linked in at build time and those functions are then just available.
For example, where did the IOS.c mount functions come from? I also haven't found any mention of nsysnet anywhere.

Is there any way to dump all rpl names and functions contained therin?

Also, why don't we have file access. Isn't file access part of userland? Say, take a picture of the screen and save to sd card.

Has anyone had any luck with fs.py or ios.c?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Gay history is serious +1