Hacking wwt+wit: Wiimms WBFS+ISO Tools

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
... modifying the wbfs-chmod file as follows:

Code:
#!/bin/bash
$1 find | while read dev
do
echo chmod 666 "$dev"
chmod 666 "$dev"
done

Now when I launch wbfs-chmod I give it an argument which is the wwt path.

and now try: wbfs-chmod "echo rm -rf / ; wwt"
and don't remove the "echo" -- BETTER IS TO DON NOT TRY IT!!
Do you see the security problem?
 

Nickkk

Well-Known Member
Newcomer
Joined
May 25, 2012
Messages
61
Trophies
0
Website
desairem.altervista.org
XP
159
Country
Swaziland
... modifying the wbfs-chmod file as follows:

Code:
#!/bin/bash
$1 find | while read dev
do
echo chmod 666 "$dev"
chmod 666 "$dev"
done

Now when I launch wbfs-chmod I give it an argument which is the wwt path.

and now try: wbfs-chmod "echo rm -rf / ; wwt"
and don't remove the "echo" -- BETTER IS TO DON NOT TRY IT!!
Do you see the security problem?
OMG I was going to lead everyone to their end ... Thank you for noticing!!
 

Nickkk

Well-Known Member
Newcomer
Joined
May 25, 2012
Messages
61
Trophies
0
Website
desairem.altervista.org
XP
159
Country
Swaziland
what is the problem you are trying to solve?
I was trying to execute the wbfs-chmod file which is included in my app bundle, which should be located at /Applications/Witgui.app ... Therefore I was looking for a way to execute /Applications/Witgui.app/Contents/Resources/wbfs-chmod instead of /usr/local/bin/wbfs-chmod.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
Another way is to give wwt root access:
Code:
sudo chown root.root /path/to/wwt
sudo chmod u+s /path/to/wwt

The script solution of above has one advantage: It enables only the r+w access to already WBFS formatted drives. If setting the S bit, wwt has r+w access to the whole system.


EDIT
There is a third solution:
Store 'wwt' to /usr/local/bin/wwt and use the original script. This wwt needs no updates, because its WBFS detection should work for a long time. All other operations can be done with the most current wwt of your bundle.

However, you need at least on "sudo" for a new wwt. And this can be:
sudo cp /path/to/bundle/wwt /usr/local/bin/wwt
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
wiimms-tools.png


WIT: Wiimms ISO Tools v2.10a - 2012-10-10
A command line ISO+WBFS tool set for various os.

WIT (Wiimms ISO Tools) is a set of command line tools to manipulate Wii ISO images and WBFS containers. The two main tools are called wit (Wiimms ISO Tool) and wwt (Wiimms WBFS Tool, the WBFS manager).

Feature overview:
Visit http://wit.wiimm.de/features.html for more details.

Download of the current version:

There are also some GUI available:

Change log:

Code:
wit v2.10a r4118 - 2012-10-10

- Write privileges are not longer needed, if a WBFS file or partiton is only
read.
- New command: wit ANAID (ANAlyze ID): Analyze the entered IDs and print one
line for each ID with 3 columns: HEX_ID, ASCII_ID, Game title.
- Little (compatible) changes for WDF v1.
- New command: wit FRAGMENTS: Print the image fragments and, if possible,
their filesystem mapping. Add option --brief (-b) to print only a summary
with the fragment counts. Add option --long (-l) to print additonally
alignment infos.
*NOTE: Filesystem mapping is only supported on real linux systems (yet),
but neither for Mac nor for Cygwin.
- The image builder search now the file 'exclude.fst' to exclude files from
the composing. See http://wit.wiimm.de/info/composing.html#part for details.

The source is published under the license of GPL2. Checkout the sources directly from the SVN repository or browse the source. Visit http://wit.wiimm.de/ for more information.
 
  • Like
Reactions: 1 person

Maplemage

ಠ_ಠ
Member
Joined
Sep 23, 2008
Messages
1,142
Trophies
0
Location
Why would you care?
XP
350
Country
Recently i just downloaded Rayman Origins and when i try to convert using this command line
"wit copy example.wia example.wbfs"

It doesnt work for me, is there another command line so i can Convert Rayman.wia to Rayman.iso or something? Thank you.
 

impizkit

Lazy Lurker
Member
Joined
Apr 6, 2010
Messages
942
Trophies
0
XP
139
Country
Recently i just downloaded Rayman Origins and when i try to convert using this command line
"wit copy example.wia example.wbfs"

It doesnt work for me, is there another command line so i can Convert Rayman.wia to Rayman.iso or something? Thank you.
You can use your favorite backup loader to rip your own copy of the game. That is my suggestion. Dont download, pirate.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
Recently i just downloaded Rayman Origins and when i try to convert using this command line
"wit copy example.wia example.wbfs"

It doesnt work for me, is there another command line so i can Convert Rayman.wia to Rayman.iso or something? Thank you.

That's the perfect command. What is th error message you got?
 

Maplemage

ಠ_ಠ
Member
Joined
Sep 23, 2008
Messages
1,142
Trophies
0
Location
Why would you care?
XP
350
Country
Recently i just downloaded Rayman Origins and when i try to convert using this command line
"wit copy example.wia example.wbfs"

It doesnt work for me, is there another command line so i can Convert Rayman.wia to Rayman.iso or something? Thank you.

That's the perfect command. What is th error message you got?
well I get a file called ".RaymanOrigins.iso.CPEXOM.TMP" do i have to wait a really long time for it to convert?
 

Nickkk

Well-Known Member
Newcomer
Joined
May 25, 2012
Messages
61
Trophies
0
Website
desairem.altervista.org
XP
159
Country
Swaziland
Hey again Mr. Wiimm!
Could I ask you one more favor? Would you please add the --scan-progress to wwt?
Have you ever thought of setting individual downloads for wit, wwt etc. (and not just the entire bundle), so that GUIs can offer to download them when new updates are published?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Veho @ Veho:
    I just ordered another package from China just to spite you.
  • SylverReZ @ SylverReZ:
    Communism lol
  • SylverReZ @ SylverReZ:
    OUR products
  • The Real Jdbye @ The Real Jdbye:
    @LeoTCK actually good quality products are dying out because they can't compete with dropshipped chinese crap
    +2
  • BakerMan @ BakerMan:
    @LeoTCK is your partner the sascrotch or smth?
  • Xdqwerty @ Xdqwerty:
    Good morning
  • Xdqwerty @ Xdqwerty:
    Out of nowhere I got several scars on my forearm and part of my arm and it really itches.
  • AdRoz78 @ AdRoz78:
    Hey, I bought a modchip today and it says "New 2040plus" in the top left corner. Is this a legit chip or was I scammed?
  • Veho @ Veho:
    @AdRoz78 start a thread and post a photo of the chip.
    +2
  • Xdqwerty @ Xdqwerty:
    Yawn
  • S @ salazarcosplay:
    and good morning everyone
    +1
  • K3Nv2 @ K3Nv2:
    @BakerMan, his partner is Luke
  • Sicklyboy @ Sicklyboy:
    Sup nerds
    +1
  • Flame @ Flame:
    oh hi, Sickly
  • K3Nv2 @ K3Nv2:
    Oh hi flame
  • S @ salazarcosplay:
    @K3Nv2 what was your ps4 situation
  • S @ salazarcosplay:
    did you always have a ps4 you never updated
  • S @ salazarcosplay:
    or were you able to get new ps4 tracking it \
    as soon as the hack was announced
  • S @ salazarcosplay:
    or did you have to find a used one with the lower firm ware that was not updated
  • K3Nv2 @ K3Nv2:
    I got this ps4 at launch and never updated since 9.0
  • K3Nv2 @ K3Nv2:
    You got a good chance of buying a used one and asking the seller how often they used or even ask for a Pic of fw and telling them not to update
  • RedColoredStars @ RedColoredStars:
    Speaking of PLaystation. I see Evilnat put out a beta for PS3 CFW 4.91.2 on the 22nd.
    RedColoredStars @ RedColoredStars: Speaking of PLaystation. I see Evilnat put out a beta for PS3 CFW 4.91.2 on the 22nd.