Jump to content

Tool Easily Thin FAT Binaries on Windows! [ Offline Lipo ]

19 posts in this topic

Recommended Posts

While ARMConverter.com's online binary thinning tool is super useful for users, not everyone has a great upload speed to upload a 50 - 100MB binary.
That's the reason this simple tool was made. It has only one function which is thinning the binary by removing arm64 portion.
It's a Batch (.bat) script. I've tried simplifying it so that all you have to do is drag the fat binary to the lipo.bat file and then the .bat will automatically use lipo.exe to thin and output the thinned binary.







This is the first version so it may get improved in the future. :)
You can edit the lipo.bat and edit it as you like.

Edited by DiDA
1.1 Update
  • Like 3
  • Upvote 11

Share this post

Link to post
Share on other sites

Uhh DiDA back' again with them old goodies

@Diversityy @@Mayaxaya


Updated to v1.1


The batch script will now automatically output the FAT input to your desktop using the same inputname+thin (Asphalt8Thin). 


You can also change the location or the output filename as you'd prefer by editing the lipo.bat file.


I would suggest moving the iOSGods Lipo folder to Program Files for example, and then create a shortcut of the lipo.bat to your desktop so that you can simply drag the binary to the icon on the desktop and it will automatically thin it and export the thinned binary on the desktop.

Share this post

Link to post
Share on other sites

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

  • Similar Content

    • By shmoo
      The best debugger ever made has returned to iOS with arm64 support! I have spent about five days fixing bugs, adding features, and making this GDB usable. However, I need all the help I can get in fixing bugs. If you find a bug, or see any debug output, *PLEASE* DM me on Twitter @hackedbyshmoo with steps to reproduce so I can add that bug to my list.
      Installs to /usr/bin, put your gdbinit in /var/root if you run GDB as root and /var/mobile if you run GDB as mobile.
      It is buggy. Please dont get your hopes up. If you get abort trap: 6 when trying to attach, keep trying or use the pid
      if you jailbroke with doubleh3lix this may not work due to issues sending signals over SSH
       Bugs destroyed: 
       - SIGINT wasn't being handled correctly. If you tried to interrupt the program, nothing would happen, the GDB prompt wouldn't come back, and you wouldn't be able to type. Fixed by writing my own SIGINT handler 
       - When you detached from a process, a ton of errors would be spit to the screen and it would fail. This no longer happens and detaching works again 
       - You can no longer Ctrl C two times in a row, which would either (a)ruin your debugging session or (b)crash GDB 
       - A broken breakpoint auto-added when attaching that would screw up your debugging session is auto-deleted ("could not insert breakpoint -1") 
       - The inferior's name wasn't being updated correctly. Fixed by calling exec_close whenever you attach to something 
       - No more nasty errors when you kill the debuggee 
       - iOS 10 support by changing DYLD_VERSION_MAX from 14 to 15 
       - You can debug multithreaded programs without GDB crashing. Before, doing anything after a breakpoint hit would cause GDB to crash 
       - You can attach to a process if you give its executable name 
       - add-aslr-bp: a command to automatically add the ASLR slide to breakpoints. To use, set add-aslr-bp on 
       - add-aslr-set: a command to automatically add the ASLR slide to the expression in the set command. To use, set add-aslr-set on. Since memory addresses already have ASLR accounted for, we need an upper bound to know when to not add the ASLR slide. Use 0x103000000 if you know you aren't going to be modifing memory and only instructions, otherwise, use IDA Pro to find out where main code segment ends (Ctrl+S) 
       - You must install Gawk package from CoolStar’s repo for this gdb to work. Hardware watchpoints will never be supported 
       Known bugs: 
       - Rare bug that can be fixed by detaching and reattaching 
       - Spamming c after a breakpoint hits may crash GDB under special circumstances 
       - Very bad lag when scrolling up in the TUI asm window 
       - ascii value of memory shown side by side with the actual memory printed out by the examine command (x) 
       - TUI window that shows memory like Cheat Engine's memory editor 
      How do I get it? Uninstall any other GNU Debugger you may have, add my repo: shmoo419.github.io, and install GNU Debugger.
      - swigger (for arm64 support: https://github.com/swigger/gdb-ios)
      - me (for building, fixing bugs, adding stuff, and making it usable)
    • By DiDA
      It's been a while since our previous template was updated but we're back with the newest version of the custom iOSGods NIC template. Before you're able to use this, you must follow the new theos installation tutorial here. Once theos is set up and working, we can continue!

      What's this?
      This is a tweak/patcher/hack making template which will simplify the creation of new hacks and tweaks for Cydia.

      How do I use it?
      You will first need to install theos using the tutorial linked above. Then download the template below and place it in $THEOS/templates/. Do not extract or anything, just place it as a .tar archive. Once that's done, you can simply run $THEOS/bin/nic.pl and the new iOSGods [x] iOSGods Tweak Patcher v3.x option will appear for you to select and create your new project.

      Default Tweak.xm content with Code Inject, MS, MSHook examples and helpful links. High resolution images used for the settings. Automatic Popup Code so you won't have to worry about finding the AppDelegate. Automatic Popup Message. Your username will be added to the popup message, preferences & Cydia information page. Root.plist shortcut added to the root of your project folder for easy preferences editing. Ability to easily switch from Tweak to Patcher with just a single line in Makefile. Ability to specify App Name which will be used in the preferences pane and inside the popup. Template now uses the new UIAlertController instead of UIAlertView. vm_writeData which has ARM64 support has been integrated into the template. And a few more tweaks and adjustments to make the template easy to use!


      Hidden Content
      React or reply to this topic to see the hidden content. More info  
      @shmoo for his help with the popup!
      @Razzile for writeData!
      Other useful topics and templates
      Please search iOSGods if you have any questions or issues. If the search results have nothing regarding your question or issue, create a new topic in Help & Support section.
    • By Chrizk0
      Updated template: 
      You can still use the content on this topic as examples.

      Hey guys! Today i'm bringing you a Custom NIC Patcher for MSHooking, MSHook with Prefs may be more complicated then just making a simple Tweak. This is why @DiDA & I made the template for you guys that are in need.
      What does this do?
      You know how you have to make a tweak project and then cd into that folder and make a subproject of the tweak project to make it into a patcher? This template makes it so all you have to do is press number 1, type in your info and your patcher project folder will be created.
      Why is it useful?
      It's simple, painless, & fast, you don't have to set up all files manually.
      Where to put:
      After downloaded place the NIC Template in /var/theos/templates/iphone (expecting you have theos on your device).
      How to use it?
      Open up terminal, type in:
      /var/theos/bin/nic.pl And select:
      iOSGods MSHook Patcher v1.1 So basically this template is based off the other ones in the Tools section but content is changed for MSHook type of hacking.
      Thats all, enjoy!
      Download link and content:
      Hidden Content
      React or reply to this topic to see the hidden content. More info
      You can also use our online MSHook Generator to easily generate the Tweak.xm and Preferences Plist code.
    • By Archangel04
      Hey guys, 
      Today I'm gonna show you guys a easy way to make mod menus without going into UI elements. This works from Settings and any changes you make there apply to the hack WITHOUT restarting the app being hacked. The download link is available for those who want to use the template directly.
      -Basic knowledge of hacking, hooking
      -THEOS (preferably built from Github)
      Download link:

      Hidden Content
      React or reply to this topic to see the hidden content. More info How-To:

      Hidden Content
      React or reply to this topic to see the hidden content. More info Credits : @Archangel04
    • By DiDA
      Updated template: 

      Made this for myself but someone requested it also and I thought I'd share this with everyone else who wants it.
      Tweak.xm content:
      /* Code Injection Example More CSCI examples can be found here: http://iosgods.com/forum/48-coding-center/ */ #include "writeData.h" %ctor { writeData(0xOFFSET, 0xHACKEDHEX); writeData(0x15BE04, 0x78708AE5); } /* Normal Tweak Example Visit this thread for more information: http://iosgods.com/topic/831-tutorial-how-to-hack-using-mobile-substrate-method-hooking/ */ %hook Coins - (int)have { return 999999; //Return any amount } %end /* MSHook Tweak Example Read this thread for more help: http://iosgods.com/topic/4295-tutorial-how-to-hack-with-mshook-new-way/ */ int getMoney() { return 9999; } %ctor{ MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN10Characters5Money8GetValueEv")),(void*)getMoney, NULL); } /* Popup with a link Varieties of a UIAlertView Popup can be found here: http://iosgods.com/topic/13988-varieties-of-uialertview-types-to-use-in-your-tweaks-patchers/ */ %hook AppDelegate // Change this with your Application's Delegate. AppController, UnityAppController, GameDelegate etc. - (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app. UIAlertView *igcredits = [[UIAlertView alloc] initWithTitle:@"@@PROJECTNAME@@ Cheats" message:@"\n@@PROJECTNAME@@ Cheats by @@[member='User']@@ for iOSGods.com" delegate:self cancelButtonTitle:@"Thanks" otherButtonTitles:@"Visit Us", nil]; [igcredits show]; [igcredits release]; return %orig(); } %new -(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { NSString *button = [alertView buttonTitleAtIndex:buttonIndex]; if([button isEqualToString:@"Visit Us"]) { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://iosgods.com/"]]; } } %end How to use/install:
      1. Download the template here:

      Hidden Content
      React or reply to this topic to see the hidden content. More info
      2. Send the iosgods_tweak.nic.tar to /var/theos/templates/iphone/
      3. Start a new project and select iOSGods Tweak v1.3 from the options.
      Done! Enjoy!
  • Recently Browsing   0 members

    No registered users viewing this page.

    • Administrator |
    • Global Moderator  |
    • Moderator  |
    • ViP Plus |
    • ViP |
    • Cheater  |
    • Modder  |
    • Novice Cheater |
    • Rookie Modder |
    • Contributor |
    • Senior Member |
    • Member |

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.