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
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, doesnt the game have a campaign mode?
  • BigOnYa @ BigOnYa:
    Yea, and co-op, but you can also start a pvp session and battle just with friends. You get special skill cards (powers) the more you play. And higher value cards, but you can only enable so many cards at a time.
  • K3Nv2 @ K3Nv2:
    If you can find enough for it
  • BigOnYa @ BigOnYa:
    Toilet paper is considered the money, you collect and buy stuff with TP, kinda funny. Graphics are def better than the other games tho, I think they used Unity 5 engine.
  • Psionic Roshambo @ Psionic Roshambo:
    Look if I zoom in enough I can see the herpes!!!
    +1
  • BigOnYa @ BigOnYa:
    In fact I'm gonna go make a drink, roll a fatty n play some, good night to all!
    +2
  • Xdqwerty @ Xdqwerty:
    I bet most people at the time still watched it in black and white
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Many of them did before colour television was common.
  • SylverReZ @ SylverReZ:
    Likely because black and white TV was in-expensive.
    +1
  • K3Nv2 @ K3Nv2:
    It certainly wasn't inexpensive it cost the same as a new car back then
  • K3Nv2 @ K3Nv2:
    How much did a 1965 color TV cost?

    For example, a 21-inch (diagonal) GE color television in 1965 had an advertised price of $499, which is equal to $4,724 in today's dollars, according to the federal government's inflation calculator.
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, take into consideration how economy was back then
  • K3Nv2 @ K3Nv2:
    Yeah that's why they listed inflation rates
  • Xdqwerty @ Xdqwerty:
    Sorry didnt read that part
  • BakerMan @ BakerMan:
    @LeoTCK don't worry i knew he was joking
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    My first color TV was like 1984 or something lol
  • Psionic Roshambo @ Psionic Roshambo:
    19 inches it was glorious lol
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, If it doesn't fit, you should've gotten one smaller lol
    +2
  • SylverReZ @ SylverReZ:
    If a racoon can fit up to 8-inches then so be it
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Lol it it fits I sit? Lol
    +1
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, Will it blend lol
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Blended families!!!
    Psionic Roshambo @ Psionic Roshambo: Blended families!!!