Jump to content

15 posts in this topic

Recommended Posts

Posted

Hello! You will learn how to recreate the Baseball boy hack I created using Shell scripting! This can work on any other game that supports this.

 

-Requirements

  • A jailbreak
  • MTerminal (or use SSH; If MTerminal does not work, install an SSH app from the App Store and OpenSSH to then SSH to root@localhost:22)
  • Filza/iFile/Any file manager

-Tutorial

So first off, create a new folder in where your hack will be. In that folder make 2 folders; DEBIAN and var. In var create a new folder called mobile and in that create a new folder called BaseBallBoyHack and in that create 2 folders called Backup and Hacked. Done with the folders and now you need to get the files. So in Filza (or anything else) head to /var/mobile/Containers/Data/Application and find Baseball Boy. In that directory you should have a Documents folder. This folder is where most of save game cheats are applied. 

Note: Note that some games that dont have a Documents directory may have it in /var/mobile/Containers/Bundle/Application/yourGameName/yourGameName.app/Data/Raw

 

So back in your Documents folder you should have 4 files which we will hack:

  • bouncinessLevel
  • speedLevel
  • strengthLevel
  • offline earningLevel

What you need to do now is to go in Baseball Boy, remember one of your levels and convert it to hexadecimal. (Search it on Google) Then go back in any of the 4 files, edit the hex where is your level and repeat until 4 of them are hacked.

 

When the four of them are hacked, copy the four files over to the Hacked directory you made. 

 

TIME FOR SCRIPTING

 

Back in BASEBALLBOYHACKFOLDER/var/mobile you need to create 3 files. hack.sh - restore.sh - backup.sh (You can merge backup.sh with hack.sh if you want. Just write the commands on top of it.) 

 

hack.sh

In hack.sh start off by typing:

#!/bin/sh

 

Then we want to know the UUID of BaseBall Boy which is unknown. So type in:

Spoiler

 

echo Input BaseBall Boy UUID:

read UUID

 

 

The echo command will print what's after the command to the console. The read command will ask for input and since we put UUID, it will store the inputted UUID to a variable called UUID. Got it? So let's continue.

 

Next we need to take our hacked files and move them to BaseBall Boy. Type in:


 

Spoiler

 

cp /var/mobile/BaseBallBoyHack/Hacked/speedlevel /var/mobile/Containers/Data/Application/$UUID/Documents

cp /var/mobile/BaseBallBoyHack/Hacked/bouncinesslevel /var/mobile/Containers/Data/Application/$UUID/Documents

cp /var/mobile/BaseBallBoyHack/Hacked/strengthlevel /var/mobile/Containers/Data/Application/$UUID/Documents

cp "/var/mobile/BaseBallBoyHack/Hacked/offline earningsLevel"  /var/mobile/Containers/Data/Application/$UUID/Documents

 

 

The cp command copies the first input (file) to the 2nd input (directory). So we copy the hacked game files to the BaseBall Boy saves. We also put the "offline earningsLevel" in apostrophes because it has a space in the name. That's it for the hack.sh!

 

backup.sh

This one will copy the data from your game to /Backup. Start off with the same old:

Spoiler

 

echo Input BaseBall Boy UUID:

read UUID

 

 

This will get the UUID from the game. Next is the copying. So type in:

Spoiler

 

cp  /var/mobile/Containers/Data/Application/$UUID/Documents/speedLevel /var/mobile/BaseBallBoyHack/Backup/

cp  /var/mobile/Containers/Data/Application/$UUID/Documents/strengthLevel /var/mobile/BaseBallBoyHack/Backup/

cp /var/mobile/Containers/Data/Application/$UUID/Documents/bouncinessLevel  /var/mobile/BaseBallBoyHack/Backup/

cp  "/var/mobile/Containers/Data/Application/$UUID/Documents/offline earningsLevel" /var/mobile/BaseBallBoyHack/Backup/

 

 

Notice how we switched the first and second inputs of cp. This is because we want the files from the game itself and not the hack. This is it for the backup. This code written above can be merged with hack.sh by putting it over the hack commands. UNDER THE #!/bin/sh OR ELSE IT WILL NOT WORK!

 

 

restore.sh

Remember to write #!/bin/sh at the beginning! So now we want to restore our saved game back. It's as simple as the other ones!

So write:

Spoiler

 

echo Input BaseBall Boy UUID:

read UUID

 

 

This is to store the UUID as a variable.

Then type:

Spoiler

 

cp /var/mobile/BaseBallBoyHack/Backup/speedlevel /var/mobile/Containers/Data/Application/$UUID/Documents

cp /var/mobile/BaseBallBoyHack/Backup/bouncinesslevel /var/mobile/Containers/Data/Application/$UUID/Documents

cp /var/mobile/BaseBallBoyHack/Backup/strengthlevel /var/mobile/Containers/Data/Application/$UUID/Documents

cp "/var/mobile/BaseBallBoyHack/Backup/offline earningsLevel"  /var/mobile/Containers/Data/Application/$UUID/Documents

 

 

So this will overwrite the hacked data by taking the data from backup and overwriting. This is it for scripting, not for the hack.

 

SETUP FOR THE HACK TO WORK

So you want that hack on iOSGods or for yourself? Well we need to set the permissions on each file to Owner: Read, Write and Execute. Leave the rest alone. Also, why is there a DEBIAN folder? Well go in there and make a new file called control and put this inside of it:

Spoiler

Package: com.username.baseballboyhack

Name: BaseballBoy Hack

Depends: mobilesubstrate, preferenceloader

Version: 1.0.0

Architecture: iphoneos-arm

Description: Made a tutorial

Maintainer: username

Author: username

Section: Tweaks

Homepage: https://iosgods.com

 

This will make the packaging as .deb work. Now select DEBIAN folder and var folder at the same time and select Create DEB. (In Filza, I don't know for others)

There you have it! A .deb with a Shell Hack!

 

If it says packaging failed, add a few returns after Homepage in control

 

-Credits

- @bbReakMe

 

Have fun!

 

 

  • Like 2
Posted

Nice but there's a much easier way. :p

And you can skip the UUID stuff, just use a * and it'll work pretty well.

Posted (edited)
5 minutes ago, DiDA said:

Nice but there's a much easier way. :p

And you can skip the UUID stuff, just use a * and it'll work pretty well.

No because it's the Documents folder. If you don't put it it'll get the first app's Documents folder.

5 minutes ago, Amuyea said:

Nice tut  :)

:teehee:

Updated by bbReakMe
Posted
2 minutes ago, bbReakMe said:

No because it's the Douments folder. If you don't put it it'll get the first app's Documents folder.

What is this 

Posted
2 minutes ago, bbReakMe said:

No because it's the Douments folder. If you don't put it it'll get the first app's Documents folder.

Oh right, I forgot. I'm used to targeting the app's folder and looking for the .app.

You may find this useful and learn something more from it. :)

https://github.com/iOSGods/Auto-Lipo-for-iOS-5-to-iOS-11-Binary-Only/blob/master/postinst

Posted
3 minutes ago, bbReakMe said:

What is what?:thinking:

Thanks. I'll read that; It should help me.

What's this tutorial about? Is it about making a save game cheat into a Deb hack?

Posted
Just now, Joka said:

What's this tutorial about? Is it about making a save game cheat into a Deb hack?

Yes but with a backup. And it saves useless questions about how to use Filza.

Posted
Just now, bbReakMe said:

Yes but with a backup. And it saves useless questions about how to use Filza.

 

Just now, bbReakMe said:

Yes but with a backup. And it saves useless questions about how to use Filza.

Ah ok. So it makes it into a tweak?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines