Jump to content

GDB Error: Segmentation fault: 11


Go to solution Solved by Rook,

20 posts in this topic

Recommended Posts

@@DiDA

i got address "0x31b68e78" of ptrace follow your way.and i load binary to IDA,then i try to search for it.but there isnt the address which i found.any ideas ?

 

 

 

"Breakpoint 1 at 0x31b68e78

Pending breakpoint 1 - "ptrace" resolved

warning: Unrecognized osabi 0 in arm_set_osabi_from_host_info"

@@DiDA

i got address "0x31b68e78" of ptrace follow your way.and i load binary to IDA,then i try to search for it.but there isnt the address which i found.any ideas ?

 

 

 

"Breakpoint 1 at 0x31b68e78

Pending breakpoint 1 - "ptrace" resolved

warning: Unrecognized osabi 0 in arm_set_osabi_from_host_info"

Search for ptrace/syscall/sysctl and xref it to see how many there are.

 

If the app has sysctl, look for the one with memset, getpid near it and if you see a MOVS R1, #0x1F, NOP it.

Search for ptrace/syscall/sysctl and xref it to see how many there are.

 

If the app has sysctl, look for the one with memset, getpid near it and if you see a MOVS R1, #0x1F, NOP it.

i`ve found this,but without "MOVS R1, #0x1F",

and is it must me the same as "MOVS R1, #0x1F"

 
 
ADD             R7, SP, #0xC
STMFD           SP!, {R8,R10}
SUB             SP, SP, #0x20C
BIC             SP, SP, #7
MOV             R5, R1
MOV             R1, #0x1EC------->is this correct one??
MOV             R6, R0
STR             R1, [sP,#0x220+var_28]
MOV             R0, R5  ; void *
MOV             R1, #0  ; int
MOV             R4, R2
BL              _memset
MOV             R0, #1
MOV             R1, #0xE
STR             R0, [sP,#0x220+var_24]
MOV             R8, #0
STR             R1, [sP,#0x220+var_20]
MOV             R1, #4  ; u_int
STR             R0, [sP,#0x220+var_1C]
ADD             R0, SP, #0x220+var_24 ; int *
STR             R6, [sP,#0x220+var_18]
ADD             R6, SP, #0x220+var_218
ADD             R3, SP, #0x220+var_28 ; size_t *
STR             R8, [sP,#0x220+var_220] ; void *
MOV             R2, R6  ; void *
STR             R8, [sP,#0x220+var_21C] ; size_t
BL              _sysctl
CMP             R0, #0
BLT             loc_19531E4
Updated by zzmutu

i found MOVS            R1, #0x1F      app crashed when i changed to whatever values or nop it .any ideas ?

__text:00F36D08                 PUSH            {R4-R7,LR}
__text:00F36D0A                 ADD             R7, SP, #0xC
__text:00F36D0C                 PUSH.W          {R8,R10}
__text:00F36D10                 SUB.W           SP, SP, #0x20C
__text:00F36D14                 MOV             R5, R0
__text:00F36D16                 MOV             R0, #(___stack_chk_guard_ptr - 0xF36D24)
__text:00F36D1E                 MOV             R10, R1
__text:00F36D20                 ADD             R0, PC ; ___stack_chk_guard_ptr
__text:00F36D22                 MOVS            R4, #0
__text:00F36D24                 MOVS            R1, #0x1F     nop or changed to any values different 
__text:00F36D26                 MOVS            R2, #0
__text:00F36D28                 LDR.W           R8, [R0] ; ___stack_chk_guard
__text:00F36D2C                 MOVS            R3, #0
__text:00F36D2E                 LDR.W           R0, [R8]
__text:00F36D32                 STR             R0, [sP,#0x220+var_18]
__text:00F36D34                 MOVS            R0, #0x1A ; int
__text:00F36D36                 STR             R4, [sP,#0x220+var_220]
__text:00F36D38                 BLX             _syscall
__text:00F36D3C                 ADD             R6, SP, #0x220+var_204
__text:00F36D3E                 MOV.W           R0, #0x1EC
__text:00F36D42                 STR             R0, [sP,#0x220+var_218]
__text:00F36D44                 MOVS            R1, #0  ; int
__text:00F36D46                 MOV             R0, R6  ; void *
__text:00F36D48                 MOV.W           R2, #0x1EC ; size_t
__text:00F36D4C                 BLX             _memset
__text:00F36D50                 MOVS            R0, #1
__text:00F36D52                 MOVS            R1, #0xE
__text:00F36D54                 STR             R0, [sP,#0x220+var_214]
__text:00F36D56                 STR             R1, [sP,#0x220+var_210]
__text:00F36D58                 STR             R0, [sP,#0x220+var_20C]
__text:00F36D5A                 BLX             _getpid
__text:00F36D5E                 STR             R0, [sP,#0x220+var_208]
__text:00F36D60                 ADD             R0, SP, #0x220+var_214 ; int *
__text:00F36D62                 ADD             R3, SP, #0x220+var_218 ; size_t *
__text:00F36D64                 MOVS            R1, #4  ; u_int
__text:00F36D66                 MOV             R2, R6  ; void *
__text:00F36D68                 STR             R4, [sP,#0x220+var_220] ; void *
__text:00F36D6A                 STR             R4, [sP,#0x220+var_21C] ; size_t
__text:00F36D6C                 BLX             _sysctl
__text:00F36D70                 CMP             R0, #0

 

 

On 11/23/2014 at 1:13 AM, DiDA said:

World At Arms has Anti-Debugging Protection (ptrace)

 

You need to disable ptrace in order to debug the process. Disable ptrace by doing this:

 

Open Terminal and type in:


gdb /User/Containers/Bundle/Application/xxxxxx-xxxx-xxx-xxx-xxxxxx/MCT.app/MCT

Then:


break ptrace

Then:


run

Terminal will show you the Offset. Go to the offset in IDA and NOP ptrace and then attach MCT again normally.

 

More info: http://www.coredump.gr/articles/ios-anti-debugging-protections-part-1/

 

Tutorial by shmoo: https://iosgods.com/topic/26721-breaking-securityhow-to-disable-syscall-anti-debugging-protection/

is it same command for LLDB??? and is there some option in ida pro to remove that permanet....?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • Grimguard Tactics: Fantasy RPG v1.3.22 +1 Jailed Cheat [ Auto Win ]
      Modded/Hacked App: Grimguard Tactics: Fantasy RPG By Outerdawn Limited
      Bundle ID: com.outerdawn.grimguard
      iTunes Store Link: https://apps.apple.com/us/app/grimguard-tactics-fantasy-rpg/id1496893856?uo=4


      Hack Features:
      - Auto Win
      - Unlimited Daily Rewards
      - No Stamina Cost


      Jailbreak required hack(s): [Mod Menu Hack] Grimguard Tactics: Fantasy RPG v1.1.10 +3 Cheats [ Auto Win ] - ViP 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/
        • Agree
        • Like
      • 60 replies
    • Grimguard Tactics: Fantasy RPG v1.3.22 +3 Cheats [ Auto Win ]
      Modded/Hacked App: Grimguard Tactics: Fantasy RPG By Outerdawn Limited
      Bundle ID: com.outerdawn.grimguard
      iTunes Store Link: https://apps.apple.com/us/app/grimguard-tactics-fantasy-rpg/id1496893856?uo=4


      Hack Features:
      - Auto Win
      - Unlimited Daily Rewards
      - No Stamina Cost


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Grimguard Tactics: Fantasy RPG v1.1.10 +3 Jailed Cheats [ Auto Win ] - ViP Non-Jailbroken Hacks & 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/
        • Thanks
        • Winner
        • Like
      • 51 replies
    • Jurassic World Alive v3.10.28 - [ Dino Don't Move & More ]
      Modded/Hacked App: Jurassic World Alive By Ludia
      Bundle ID: com.ludia.jw2
      iTunes Store Link: https://apps.apple.com/us/app/jurassic-world-alive/id1231085864

      Hack Features:
      - Dino Don't Move
      - Inf.Battery
      - VIP Enabled

      This hack works on the latest x64 or ARM64 iDevices: iPhone 5s, 6, 6 Plus, 6s, 6s Plus, 7, 7 Plus, 8, 8 Plus, X, Xr, Xs, Xs Max, SE, iPod Touch 6G, iPad Air, Air 2, Pro & iPad Mini 2, 3, 4 and later.


      Jailbreak required hack(s): https://iosgods.com/topic/103431-jurassic-world-alive-v1829-dino-dont-move-more/?tab=comments#comment-3107135
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,872 replies
    • Jurassic World Alive v3.10.28 - [ Dino Don't Move & More ]
      Modded/Hacked App: Jurassic World Alive By Ludia
      Bundle ID: com.ludia.jw2
      iTunes Store Link: https://apps.apple.com/us/app/jurassic-world-alive/id1231085864


      Hack Features:
      - Dino Don't Move
      - Inf. Battery
      - VIP Enabled

      This hack is an In-Game Mod Menu (iGMM). In order to activate the Mod Menu, tap on the iOSGods button found inside the app. This hack works on the latest x64 or ARM64 iDevices: iPhone 5s, 6, 6 Plus, 6s, 6s Plus, 7, 7 Plus, 8, 8 Plus, X, Xr, Xs, Xs Max, SE, iPod Touch 6G, iPad Air, Air 2, Pro & iPad Mini 2, 3, 4 and later.
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,596 replies
    • Grim Soul: Survival v6.7.1 +19 Jailed Cheats [Free Crafting + More]
      Modded/Hacked App: Grim Soul: Survival By Andrey Pryakhin
      Bundle ID: fantasy.survival.game.rpg
      iTunes Store Link: https://itunes.apple.com/us/app/grim-soul-survival/id1366215798


      Mod Requirements:
      - Jailbroken or Non-Jailbroken iPhone/iPad/iPod Touch.
      - Cydia Impactor.
      - A Computer Running Windows/Mac/Linux.


      Hack Features:
      - Unlimited Storage Items - Taking storage items will increase them.
      - Free Crafting - Will allow you to craft items without the required materials.
      - No Crafting Level Requirement
      - Free Construction
      - Items Duplicate When Split
      - Unlimited Item Durability
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 4,078 replies
    • Grim Soul: Survival v6.7.1 +19 Cheats [Unlimited Currencies + More]
      Modded/Hacked App: Grim Soul: Survival By Andrey Pryakhin
      Bundle ID: fantasy.survival.game.rpg
      iTunes Store Link: https://itunes.apple.com/us/app/grim-soul-survival/id1366215798


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features:
      - Unlimited Thalers/Coins & Crafting Points - Once enabled, purchase something using coins & use a craft point so the currencies stick, then disable this feature.
      - Unlimited Storage Items - Taking storage items will increase them.
      - Unlimited Energy / Instant Energy Refills - Will refill your energy once you run to another location.
      - Godmode - Unlinked. Health will still decrease but you won't die.
      - One-Hit Kill - Linked to the enemy. Would recommend enabling 'Godmode'.
      - Increased Attack Range - Allows you to kill enemies from some distance away.
      - Free Crafting - Will allow you to craft items without the required materials.
      - No Crafting Level Requirement
      - Free Construction
      - Items Duplicate When Split
      - Unlimited Item Durability
      - x2 Player Speed
      - x3 Player Speed
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 4,981 replies
    • DRAGON BALL Z DOKKAN BATTLE Japan (ドラゴンボールZ ドッカンバトル) v5.24.0 +7 Cheats!
      Modded/Hacked App: ドラゴンボールZ ドッカンバトル By BANDAI NAMCO Entertainment Inc.
      Bundle ID: jp.co.bandainamcogames.BNGI0211
      iTunes Link: https://itunes.apple.com/jp/app/ドラゴンボールz-ドッカンバトル/id951627670


      Hack Features
      - Unlimited HP  -  (Put .0 at the back of your value: 1000.0)
      - Unlimited Damage  -  (Put .0 at the back of your value: 1000.0)
      - Unlimited Defense  -  (Put .0 at the back of your value: 1000.0)
      - Dice Hack -  [ONLY RANGE BETWEEN 1 - 6 or it will crash]  -  (Put .0 at the back of your value: 4.0)
      - Dice Hack 1, 2, 3
      - Dice Hack 4, 5, 6
      - Auto Win Battles -> Disable if you get errors.
      PUT .0 at the back of all values!
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 7,902 replies
    • Last Day On Earth: Survival v1.29.5 +36 FREE Hacks
      Modded/Hacked App: Last Day on Earth: Survival By Andrey Pryakhin
      Bundle ID: zombie.survival.craft.z
      iTunes Link: https://itunes.apple.com/us/app/last-day-on-earth-survival/id1241932094

      Hack Features:
      - Coins Hack - Spend/Buy something that costs Coins to increase Coins!
      - Durability Hack - Weapons, Clothes, Boots, etc. Will not break. You can always keep using them.
      - Crafting Hack - Able to craft stuff without required items!
      - Skill Points Hack - Skill Points won't decrease, reset to increase.
      - Duplicate Items Hack - Split Items to duplicate them! Now it will duplicate by 20!
      - Loot box hack - Open 1 lootbox for 1000! - x64 only
      - Items increase when Taking from Inbox. You will never run out of Items in your inbox! - x64 only
      - Minigun Doesn't Overheat - x64 only
      - Unlimited Energy. Energy Increases instead of subtracting! - x64 only
      - Bow One Hit Kill - x64 only
      - Anti-Ban

      During the month of December, we have decided to make the ViP hack for free for all users! :) Extra features include:
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 29,658 replies
    • Last Day on Earth: Survival v1.29.5 +17 FREE Jailed Cheats
      Modded/Hacked App: Last Day On Earth: Zombie Survival By Andrey Pryakhin
      Bundle ID: zombie.survival.craft.z
      iTunes Link: https://itunes.apple.com/us/app/last-day-on-earth-zombie-survival/id1241932094


      Hack Features
      Hack Features
      - Coins Hack - Buy something that costs coins to increase
      - Duplicate Items Hack - Split items to duplicate them :p
      - Skill Points Hack - Use to increase
      - Weapon/Item Durability Hack - Your weapons and items will never break.
      - Loot Boxes Hack! -> Open 1 loot box and gain 10,000!

      This hack was made by ZahirSher for iOSGods.com.
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 41,880 replies
    • Nightfall: Kingdom Frontier TD v1.0.143 +8 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Nightfall: Kingdom Frontier TD By Fansipan Limited
      Bundle ID: com.fansipan.nightfall.tower.simulation.strategy.td.game
      iTunes Store Link: https://apps.apple.com/us/app/nightfall-kingdom-frontier-td/id6621272416?uo=4


      Hack Features:
      - God Mode
      - Unlimited In-Game Coins -> Will increase instead of decrease.
      - Unlimited Currencies -> Will increase instead of decrease.
      - No Ads
      - Add 1K Currency -> Head over to Settings and toggle the Discord button. [ VIP ]
      - Unlock All Features -> Head over to Settings and toggle the Discord button. [ VIP ]
      - Unlock All / Everything ->  Head over to Settings and toggle the Discord button. [ VIP ]
      - Complete Tutorial -> Head over to Settings and toggle the Discord button. [ VIP ]


      Jailbreak required hack(s): [Mod Menu Hack] Nightfall: Kingdom Frontier TD v1.0.41 +8 Cheats [ Unlimited Currencies ] - 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/
        • Informative
        • Agree
        • Haha
        • Winner
        • Like
      • 45 replies
    • Nightfall: Kingdom Frontier TD v1.0.143 +8 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Nightfall: Kingdom Frontier TD By Fansipan Limited
      Bundle ID: com.fansipan.nightfall.tower.simulation.strategy.td.game
      iTunes Store Link: https://apps.apple.com/us/app/nightfall-kingdom-frontier-td/id6621272416?uo=4


      Hack Features:
      - God Mode
      - Unlimited In-Game Coins -> Will increase instead of decrease.
      - Unlimited Currencies -> Will increase instead of decrease.
      - No Ads
      - Add 1K Currency -> Head over to Settings and toggle the Discord button. [ VIP ]
      - Unlock All Features -> Head over to Settings and toggle the Discord button. [ VIP ]
      - Unlock All / Everything ->  Head over to Settings and toggle the Discord button. [ VIP ]
      - Complete Tutorial -> Head over to Settings and toggle the Discord button. [ VIP ]


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Nightfall: Kingdom Frontier TD v1.0.41 +8 Jailed Cheats [ Unlimited Currencies ] - 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/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 55 replies
    • Westland Survival - Cowboy RPG v8.4.0 +7 [ Items Cheat ]
      Modded/Hacked App: Westland Survival - Cowboy RPG By HELIO LTD
      Bundle ID: com.heliogames.a1
      iTunes Store Link: https://apps.apple.com/us/app/westland-survival-cowboy-rpg/id1339238576?uo=4


      Hack Features:
      - Unlimited Energy / Instant Energy Refills
      - Unlock All Blueprints
      - Items Duplicate When Split / Items Hack
      - Unlimited Consumable Items
      - Unlimited Item Durability
      - God Mode / Never Die -> Linked with enemies. Useful for looting.
      - One Hit Kill / High Damage -> Linked with enemies. Use with caution.


      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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 326 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