Jump to content
Un_Known

Connect Android With IDA for LIB Debugging & Dynamic analysis

Recommended Posts

Posted (edited)

While lib files on android can be analysed statically very easily but dynamic lib debugging is also another option to get to know what is happening during runtime.

When static analysis may take up alot of time dynamic analysis is always a better option!

So how to debug libs?

lib files are not independent they need a running process to be debugged.

Let's Start:

Perquisites:

IDA PRO

ADB 

Rooted Device

USB cable

Note: Enable usb debugging

And don't select Filetransfer mode select PTP mode otherwise device won't be listed by ADB

Google if you don't Know how to Connect  to PC using ADB

Now

Load lib in IDA PRO first which is to be analysed.

Now connect your device to PC over ADB 

Go to IDA PRO installation directory and from folder dbgsrv copy file android_server to adb folder

And execute following commands:

adb devices  [To make sure device is connected ]

adb push android_server /local/data/tmp

adb shell

su

cd /data/local/tmp

ll [To Get list of files incurrent  directory]

chmod 755 android_server 

./android_server

Minimizethe windows where android_server is running and open a new command prompt window and run following command:

adb forward tcp:23946 tcp:23946

 

select the "Remote ARM Linux/Android debugger", go into "ProcessOptions" in the debugger menu, and set the hostname to localhost.And port : 23946

Now Run the apk on your device from which this lib was extracted!

And In IDA go to:

Debugger menu Choose attach to process and from list of processes select the process of your apk.

Thnx 

Any correction and suggetion would be welcomed!

 

Edited by Un_Known

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 Dicky2321
      View File Free Script Pubg Mobile Hack 0.14.0 • Anti Banned • VIP S9 OPEN :)
      Script Free, Script Vip, Anti Banned 100%
      Test In Rank Ace, Kill 30+, Its Real Bro.
      Its Fiture Simple.. Get Full Fitures Script In My Channel Telegram 99% Anti Banned
       
      + Materials needed:
      - New  Script Free And VIP [ Anti Banned ]
      - New Antiban Hosts Free And VIP [ Anti Banned ]
      - New Lib Free And VIP [ Anti Banned ]
      - Virtual For No Root [ Anti Banned ]
       
      + Everything You Need Here : Here
      + My Channel Telegram :  Here
       
      + Recomended Gameguardian v80
       
      Translate aja bro jika kagak paham
       
      Thank you bro.
      Submitter Dicky2321 Submitted 12/15/2018 Category PUBG  
    • By Dicky2321
      Script Free, Script Vip, Anti Banned 100%
      Test In Rank Ace, Kill 30+, Its Real Bro.
      Its Fiture Simple.. Get Full Fitures Script In My Channel Telegram 99% Anti Banned
       
      + Materials needed:
      - New  Script Free And VIP [ Anti Banned ]
      - New Antiban Hosts Free And VIP [ Anti Banned ]
      - New Lib Free And VIP [ Anti Banned ]
      - Virtual For No Root [ Anti Banned ]
       
      + Everything You Need Here : Here
      + My Channel Telegram :  Here
       
      + Recomended Gameguardian v80
       
      Translate aja bro jika kagak paham
       
      Thank you bro.
    • By Drok
      Excuse me, I know it's not related to hack games, but I can't root my phone, my phone is oppo a71 cph 1801 a20 190614, I tried Magisk Manager and flash file rom zip of phone but it error message: unknown image format 😞, I downloaded it in a web oppo :
      this is web I used to download rom for my phone 
      https://oppo-np.custhelp.com/app/software_update_detail/p_name/A71 (2018)
      I don't sure it has must rom exactly for this, I hope you can help me, please and excuse me 😞
    • By xBLOODYACEx
      View File Root+noRoot 💯 safe.vip leaked file now free!!!
      .sh file work on rooted and VMOS virtual.
      Lib work for both. Rooted and nonerooted.
      Tired of getting banned in end of match?
      U wanna show ur self ?
      10min ban?1day? Kick host@&$¥
      Use lib!!!!!!!
      Vip lib and shell file has been leak 
      Credit:
      Stay A Mystery xanderdarkofficial.
      tested the lib and sh on VMOS no root .Worked fine for me.
      Don't start with main account test on ur sec Account first . Coz script also effect on ban reason.
      I play safe mod only color wallhack less recoli 50% headshot small magic shot.
      U have to do this step always. 😈
      Like and subscribe my channel for more.
      We dont ask for money for make/share vip leaks.
      Subscribe will be enough.
      https://www.youtube.com/channel/UCq4KcnOpWn2vbwEhxv8XTig
      Link: on video.....
       
      Loading.............
      Submitter xBLOODYACEx Submitted 07/31/2019 Category PUBG  
    • By xBLOODYACEx
      .sh file work on rooted and VMOS virtual.
      Lib work for both. Rooted and nonerooted.
      Tired of getting banned in end of match?
      U wanna show ur self ?
      10min ban?1day? Kick host@&$¥
      Use lib!!!!!!!
      Vip lib and shell file has been leak 
      Credit:
      Stay A Mystery xanderdarkofficial.
      tested the lib and sh on VMOS no root .Worked fine for me.
      Don't start with main account test on ur sec Account first . Coz script also effect on ban reason.
      I play safe mod only color wallhack less recoli 50% headshot small magic shot.
      U have to do this step always. 😈
      Like and subscribe my channel for more.
      We dont ask for money for make/share vip leaks.
      Subscribe will be enough.
      https://www.youtube.com/channel/UCq4KcnOpWn2vbwEhxv8XTig
      Link: on video.....
       
      Loading.............
×
×
  • Create New...