"suid lib fix" main script execution failed

Discussion in 'Pwnage and Winpwn Discussions' started by craziztb, Jun 13, 2008.

  1. craziztb

    craziztb New Member

    Joined:
    Feb 14, 2008
    Messages:
    17
    Likes Received:
    0
    Whenever i try to install SUID Lib Fix, it gives me a main script execution failed,
    this only happens on the SUID Lib Fix package, everything else installs just fine. Ive tried to reinstall installer and bsd subsystem, nothing works, need help!
  2. bluetiger20

    bluetiger20 New Member

    Joined:
    Sep 16, 2007
    Messages:
    172
    Likes Received:
    1
    Device:
    4G iPod touch
    This is also happening with me!!! everything else installs!

    What do i do?
  3. jpga13

    jpga13 Banned

    Joined:
    Dec 4, 2007
    Messages:
    11,591
    Likes Received:
    435
    Device:
    iPad 3
    try the: cmod 4755 /Applications/Installer.app/Installer and then do a hard restrt and try again.
  4. bluetiger20

    bluetiger20 New Member

    Joined:
    Sep 16, 2007
    Messages:
    172
    Likes Received:
    1
    Device:
    4G iPod touch
    Nope.

    Still same error message, but still ONLY for SUID Lib Fix. Everything else installs fine. plenty of space from Boss Tools, etc, etc.

    so whats the deal?
  5. joolsca

    joolsca New Member

    Joined:
    Mar 23, 2008
    Messages:
    1
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
    Same for me...I USED to have it installed...had to uninstall because of other problems and now I can't install it again....
  6. jpga13

    jpga13 Banned

    Joined:
    Dec 4, 2007
    Messages:
    11,591
    Likes Received:
    435
    Device:
    iPad 3
    Did the rest of you have it installed previously and then uninstalled?
  7. craziztb

    craziztb New Member

    Joined:
    Feb 14, 2008
    Messages:
    17
    Likes Received:
    0
    yea when i pwned my ipod i had it preinstalled then i needed to uninstall it to get customize to work
  8. jfb392

    jfb392 New Member

    Joined:
    Oct 20, 2007
    Messages:
    2,512
    Likes Received:
    21
    Device:
    iPod touch
    You wouldn't ever need to uninstall it to get Customize to work, I believe it says you need it..
    Also, uninstalling it won't do anything, it just removes the array for it in your Installer .plist.
    You're attempting to install it again, which is attempting to create a symbolic link to something that already exists (because you've installed it once, which creates the symlink), which results in the main script execution error.
  9. ricardofelix95

    ricardofelix95 Banned

    Joined:
    Mar 16, 2008
    Messages:
    2,702
    Likes Received:
    4
    u need to restore, its the only solution
  10. jfb392

    jfb392 New Member

    Joined:
    Oct 20, 2007
    Messages:
    2,512
    Likes Received:
    21
    Device:
    iPod touch
    Sorry, but no.
    Let's take a look at what it really does..

    The dictionary in your Installer package .plist:
    Code:
    	<dict>
    		<key>bundleIdentifier</key>
    		<string>com.trejan.iphone.suidlibfix</string>
    		<key>category</key>
    		<string>Tweaks (1.1.4)</string>
    		<key>contact</key>
    		<string>tman_ipod@trejan.com</string>
    		<key>date</key>
    		<string>1202531712</string>
    		<key>description</key>
    		<string>Terminal Fix / SUID library fix for 1.1.3/4 only.</string>
    		<key>hash</key>
    		<string>b0365996ce60242a7bdbc22f2813ed46</string>
    		<key>location</key>
    		<string>http://thebigboss.org/repofiles/other/suidlibfix-1.0.zip</string>
    		<key>maintainer</key>
    		<string>trejan.com</string>
    		<key>name</key>
    		<string>SUID Lib Fix</string>
    		<key>scripts</key>
    		<dict>
    			<key>install</key>
    			<array>
    				<array>
    					<string>CopyPath</string>
    					<string>bin/</string>
    					<string>/bin</string>
    				</array>
    				<array>
    					<string>Exec</string>
    					<string>/bin/suidlibfix</string>
    				</array>
    			</array>
    			<key>uninstall</key>
    			<array>
    				<array>
    					<string>RemovePath</string>
    					<string>/bin/suidlibfix</string>
    				</array>
    			</array>
    			<key>update</key>
    			<array>
    				<array>
    					<string>RemovePath</string>
    					<string>/bin/suidlibfix</string>
    				</array>
    				<array>
    					<string>CopyPath</string>
    					<string>bin/</string>
    					<string>/bin</string>
    				</array>
    				<array>
    					<string>Exec</string>
    					<string>/bin/suidlibfix</string>
    				</array>
    			</array>
    		</dict>
    		<key>size</key>
    		<string>14850</string>
    		<key>source</key>
    		<string>http://thebigboss.org/repo.xml</string>
    		<key>sponsor</key>
    		<string>thebigboss.org</string>
    		<key>url</key>
    		<string>http://thebigboss.org/moreinfo/suidlibifix.php</string>
    		<key>version</key>
    		<string>1.0</string>
    	</dict>
    
    Notice, it downloads this, unzips it /bin/ and executes it.

    Now, let's take a look at suidlibfix:
    Code:
    #!/bin/sh
    chmod +s /usr/bin/login
    mkdir -p /usr/local/arm-apple-darwin && ln -s /usr/lib /usr/local/arm-apple-darwin/lib
    
    It's as simple as that.
    Notice, it creates a directory and a symbolic link, along with setuid/gid to /usr/bin/login.
    Now, take a look at the Uninstall array:
    Code:
    			<key>uninstall</key>
    			<array>
    				<array>
    					<string>RemovePath</string>
    					<string>/bin/suidlibfix</string>
    				</array>
    			</array>
    
    All it does is remove the suidlibfix shell script.
    It doesn't undo anything, so the fix is still applied.
    Therefore, it doesn't matter if you have it in Installer or not, you still have the functionality.
    If Installer requires it though, you can manually add that dictionary to your decrypted LocalPackages.plist or edit RemotePackages.plist to not require SUID Lib Fix for said package that requires it.

Share This Page