Jump to content

[TuT] How to make a Shell Script hack


bR34Kr

15 posts in this topic

Recommended Posts

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!

 

 

Link to comment
https://iosgods.com/topic/65031-tut-how-to-make-a-shell-script-hack/
Share on other sites

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:

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

Just now, Joka said:

What is this 

What is what?:thinking:

1 minute ago, DiDA said:

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

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

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?

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Hunt Royale: Action RPG Battle v3.3.1 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Hunt Royale: Action RPG Battle By BoomBit, Inc.
      Bundle ID: com.hunt.royale
      iTunes Store Link: https://apps.apple.com/us/app/hunt-royale-action-rpg-battle/id1537379121?uo=4

       
       

      🚀 Hack Features

      - Dumb Enemies

      VIP
      - Damage Multiplier
      - Defence Multiplier


      🍏 Jailbreak iOS hacks: [Mod Menu Hack] Hunt Royale: Action RPG Battle v3.2.7 +3 Cheats [ Damage & Defence ] - Free Jailbroken Cydia Cheats - iOSGods
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 28 replies
    • Hunt Royale: Action RPG Battle v3.3.1 +3 Cheats [ Damage & Defence ]
      Modded/Hacked App: Hunt Royale: Action RPG Battle By BoomBit, Inc.
      Bundle ID: com.hunt.royale
      iTunes Store Link: https://apps.apple.com/us/app/hunt-royale-action-rpg-battle/id1537379121?uo=4

       
       

      🚀 Hack Features

      - Dumb Enemies

      VIP
      - Damage Multiplier
      - Defence Multiplier


      🍏 For Non-Jailbroken & No Jailbreak required hacks: [IPA Mod Menu] Hunt Royale: Action RPG Battle v3.2.7 +3 Jailed Cheats [ Damage & Defence ] - Free Non-Jailbroken IPA Cheats - iOSGods
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 24 replies
    • Loot Heroes v1.3.4 +8 Jailed Cheats [ Unlimited Currencies + More ]
      Modded/Hacked App: Loot Heroes: Fantasy RPG Games By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes-fantasy-rpg-games/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - Unlimited Currencies [ VIP ]
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - Auto Win [ VIP ]
      - Battle Pass Unlocked [ VIP ]


      Jailbreak required hack(s): [Mod Menu Hack] Loot Heroes v1.1.5 +8 Cheats [ Unlimited Currencies + More ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 39 replies
    • Loot Heroes v1.3.4 +8 Cheats [ Unlimited Currencies + More ]
      Modded/Hacked App: Loot Heroes By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - Unlimited Currencies [ VIP ]
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - Auto Win [ VIP ]
      - Battle Pass Unlocked [ VIP ]


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 158 replies
    • Good Coffee, Great Coffee v1.0.1 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4
       
       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      • 3 replies
    • Good Coffee, Great Coffee v1.0.1 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4

       
       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      • 11 replies
    • Smashero.io - Hack N Slash RPG v1.13.0 +2 Jailed Cheats [ God / O-HK ]
      Modded/Hacked App: Smashero.io - Hack N Slash RPG By CANNON CRACKER, Inc.
      Bundle ID: com.cc.Smashero
      iTunes Store Link: https://apps.apple.com/us/app/smashero-io-hack-n-slash-rpg/id6505129091?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Jailbreak required hack(s): [Mod Menu Hack] Smashero.io - Hack N Slash RPG v3.3 +2 Cheats [ God / O-HK ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 19 replies
    • Smashero.io - Hack N Slash RPG v1.13.0 +2 Cheats [ God / O-HK ]
      Modded/Hacked App: Smashero.io - Hack N Slash RPG By CANNON CRACKER, Inc.
      Bundle ID: com.cc.Smashero
      iTunes Store Link: https://apps.apple.com/us/app/smashero-io-hack-n-slash-rpg/id6505129091?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Non-Jailbroken & No Jailbreak required hack(s): [No Jailbreak Required] Smashero.io - Hack N Slash RPG v3.3 +2 Jailed Cheats [ God / O-HK ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 49 replies
    • Modded/Hacked App: Hexapolis - Civilization game By NOXGAMES s.r.o.
      Bundle ID: com.noxgames.hex.polis.civilization.empire
      iTunes Store Link: https://apps.apple.com/us/app/hexapolis-civilization-game/id1559236448?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - IAP FREE [ Buy Anything Gems Gold ]

      - Max DMG [ Upgrade Trop ]

      - Max HP [ Upgrade Trop ]

      - Max DEF [ Upgrade Trop ]

      - ATK Range

      - Max Population

      - Silver Coins [ End Turn ]

      - No Fogg Map [ Just Move Trop ]

      - XP Reward + NO LVL POPUP [ Win Battle ]


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 31 replies
    • Hexapolis - Civilization game V2.3.0 [ +9 Jailed ] DMG
      Modded/Hacked App: Hexapolis - Civilization game By NOXGAMES s.r.o.
      Bundle ID: com.noxgames.hex.polis.civilization.empire
      iTunes Store Link: https://apps.apple.com/us/app/hexapolis-civilization-game/id1559236448?uo=4

       

       

      🔧 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🚀 Hack Features

      - IAP FREE [ Buy Anything Gems Gold ]

      - Max DMG [ Upgrade Trop ]

      - Max HP [ Upgrade Trop ]

      - Max DEF [ Upgrade Trop ]

      - ATK Range

      - Max Population

      - Silver Coins [ End Turn ]

      - No Fogg Map [ Just Move Trop ]

      - XP Reward + NO LVL POPUP [ Win Battle ]


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 8 replies
    • Modded/Hacked App: Lollipop 3: Match 3 Puzzles By Puzzle1Studio,inc.
      Bundle ID: com.puzzle1studio.ap.lollipopsweetheroesmatch3
      iTunes Store Link: https://apps.apple.com/us/app/lollipop-3-match-3-puzzles/id1634326372?uo=4

       

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Coins

      - Lives

      - Booster

      - Moves

      - Auto Win 

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack
      • 0 replies
    • Lollipop 3: Match 3 Puzzles v25.0226.00 [ +5 Jailed ] Auto Win
      Modded/Hacked App: Lollipop 3: Match 3 Puzzles By Puzzle1Studio,inc.
      Bundle ID: com.puzzle1studio.ap.lollipopsweetheroesmatch3
      iTunes Store Link: https://apps.apple.com/us/app/lollipop-3-match-3-puzzles/id1634326372?uo=4

       

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Coins

      - Lives

      - Booster

      - Moves

      - Auto Win 

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App
      • 0 replies
×
  • 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