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.
  • Sicklyboy @ Sicklyboy:
    maaaaan that's so awesome but I also don't want to fork over a hundo for it
  • Veho @ Veho:
    The fuuuuu---
  • Veho @ Veho:
    I thought it was an actual xBox at that price.
  • Sicklyboy @ Sicklyboy:
    I wanna grab a 360 Slim and a 360 E one of these days. Missed the boat of getting them at their lowest though, once they were discontinued. Could've got them for cheap back when I was a broke 20 something working at Target, but then again, I was a broke 20 something working at Target
  • Veho @ Veho:
    Being broke is no fun.
  • K3Nv2 @ K3Nv2:
    @Sicklyboy, $150 isn't that bad for a jtag slim on ebay
  • Veho @ Veho:
    I only wish it was actually playable.
  • Veho @ Veho:
    There's a guy on the Tube of You that makes playable mechanical arcade games out of Lego. This could work on the same principle.
  • Veho @ Veho:
    Just a couple of guys taking their manatee out for some fresh air, why you have to molest them?
  • Veho @ Veho:
    Stupid Chinese shop switched their shipping company and this one is slooooooow.
  • LeoTCK @ LeoTCK:
    STOP BUYING CHINESE CRAP THEN
  • LeoTCK @ LeoTCK:
    SUPPORT LOCAL PRODUCTS, MAKE REVOLUTION
  • LeoTCK @ LeoTCK:
    THEY KEEP REMOVING LOCAL SHIt AND REPLACING WItH INFERIOR CHINESE CRAP
  • LeoTCK @ LeoTCK:
    THATS WHY MY PARTNER CANT GET A GOOTWEAR HIS SIZE ANYMORE
  • LeoTCK @ LeoTCK:
    HE HAS BIG FOOT AND BIG DUCK
  • LeoTCK @ LeoTCK:
    d*ck i mean*
  • LeoTCK @ LeoTCK:
    lol
  • Veho @ Veho:
    Mkay.
  • Veho @ Veho:
    I just ordered another package from China just to spite you.
  • SylverReZ @ SylverReZ:
    Leo could not withstand communism.
  • SylverReZ @ SylverReZ:
    Its OUR products to begin with lol.
    SylverReZ @ SylverReZ: Its OUR products to begin with lol.