Ghost-Framework: Perform ADB command to access an Android device via USB

Ghost Framework is an Android post-exploitation framework that exploits the Android Debug Bridge to remotely access an Android device.





Why Ghost-Framework?

  • Simple and clear UX/UI
    • Ghost Framework has a simple and clear UX/UI. It is easy to understand and it will be easier for you to master the Ghost Framework.
  • Device shell access
    • Ghost Framework can access the remote Android device shell without using OpenSSH or other protocols.
  • Controlling device screen
    • Ghost Framework can access the device screen and control it remotely using a mouse and keyboard.


Install Ghost-Framework

To install Ghost Framework you should execute the following commands.

mrdev@kali:~$ git clone https://github.com/EntySec/ghost.git
--------------------------------------------------------------------------------------------------------------------------------------- 
--------------------------------------------------------------------------------------------------------------------------------------- 
--------------------------------------------------------------------------------------------------------------------------------------- 
mrdev@kali:~$ ls
ghost
mrdev@kali:~$ cd ghost/
mrdev@kali:~(ghost)# chmod +x install.sh
mrdev@kali:~(ghost)# ./install.sh
--------------------------------------------------------------------------------------------------------------------------------------- 
--------------------------------------------------------------------------------------------------------------------------------------- 
---------------------------------------------------------------------------------------------------------------------------------------
mrdev@kali:~(ghost)# cd
mrdev@kali:~$ ghost


Uninstall Ghost-Framework

To uninstall Ghost Framework you should execute the following commands.

mrdev@kali:~$ ls
ghost
mrdev@kali:~$ cd ghost/
mrdev@kali:~(ghost)# chmod +x uninstall.sh
mrdev@kali:~(ghost)# ./uninstall.sh
--------------------------------------------------------------------------------------------------------------------------------------- 
--------------------------------------------------------------------------------------------------------------------------------------- 
---------------------------------------------------------------------------------------------------------------------------------------
mrdev@kali:~(ghost)#


Connect Android

Let me connect my Samsung J7 elite. So Plug in USB and allow USB debugging.

Note: Always remember, your target device must be connected with a wifi router, not with a mobile hotspot.

Now again open the terminal and follow these commands:

mrdev@kali:~$ ghost
ghost> help
ghost> options
ghost> set RHOST 192.xx.xx.xxx
ghost> run


To find your device IP address go to Settings → About phone → Status.

Extra Credit

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Ok, Go it!