Skip to content
Guest Big Announcement

Problem in Using GDB

Featured Replies

Guys, i am pretty new and trying to learn things around.

 

i am trying to hack game Guardian Hunter  which is a sub game.

 

I attach the pid and execute the watch command.

 

Even though the value of Hp changes the GDB still shows continuing

 

this is the log

(gdb) att 1112
Attaching to process 1112.
warning: Unrecognized osabi 0 in arm_set_osabi_from_host_info
Reading symbols for shared libraries . done
bfd_mach_o_scan: unknown architecture 0x100000c/0x0


***WARNING***: Possible number of sections anti-debug trick detected at segment __DATA !
Number of sections reported from the header is 2, the real number should be 2


***WARNING***: Possible number of sections anti-debug trick detected at segment __DATA_CONST !
Number of sections reported from the header is 4, the real number should be 4

***WARNING***: Possible number of sections anti-debug trick detected at segment __DATA_DIRTY !
Number of sections reported from the header is 2, the real number should be 2

Reading symbols for shared libraries + done

0x360d5130 in mach_msg_trap ()
(gdb) watch -location *0x0fe0a040
Hardware watchpoint 1: *(int *) 266379328
(gdb) c
Continuing.
^Cwarning: Unrecognized osabi 0 in arm_set_osabi_from_host_info

Program received signal SIGINT, Interrupt.
0x360e90c4 in __semwait_signal ()
(gdb) watch -location *0x0fe0a040
Hardware watchpoint 2: *(int *) 266379328
(gdb) c
Continuing.
^Cwarning: Unrecognized osabi 0 in arm_set_osabi_from_host_info

Program received signal SIGINT, Interrupt.
0x360d5198 in semaphore_timedwait_trap ()
(gdb) c
Continuing.
quit
 
 

The thing is i dont get the real address, Although the adress given by igg changes with change in hp 

 

p.s. its after attaching pid

Updated by Amol

  • Author

Bump Someone Help please..

this  warning comes everytime when i att pid and i cant get the new and old value probably coz of this.

 

though the app freezes while writing commands

Bump Someone Help please..

this  warning comes everytime when i att pid and i cant get the new and old value probably coz of this.

 

though the app freezes while writing commands

The app freezes haha, do you even know why are you typing "c"?

  • Author

The app freezes haha, do you even know why are you typing "c"?

dude, instead of making fun answer why i am getting anti-debug trick

 

c-continue to unfreeze the app so that the change in the offset value can be detected.

 

If u cant help, dont poke in

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.