Giter VIP home page Giter VIP logo

entysec / ghost Goto Github PK

View Code? Open in Web Editor NEW
2.7K 188.0 922.0 437 KB

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

Home Page: https://entysec.com

License: MIT License

Python 100.00%
adb android-device android android-debug-bridge android-exploit post-exploitation exploit exploitation-framework android-hack android-hacking

ghost's Introduction

logo

Ghost Framework



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

Installation

pip3 install git+https://github.com/EntySec/Ghost

ghost's People

Contributors

develoopeer avatar enty8080 avatar loubaris avatar psnappz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ghost's Issues

No internet connection !

after change root permission by following command

chmod +x install.sh

then run command > ./install.sh after a few second came up with No internet connection !
However there is fast broadband internet connection and i have check twice that internet is connected.
I'm using Kali Linux latest version on Oracle virtual box.

Any idea to fix this issue ??

ModuleNotFoundError: No module named 'readline'

I just installed ghost script now and when i tried to run it gave me this error

Traceback (most recent call last):
  File "./ghost", line 27, in <module>
    import readline
ModuleNotFoundError: No module named 'readline'

how to resolve this?

No internet connection!

When I try to install ghost with ./install.sh it returns no internet connection even though I am connected to the internet.

user

NOT CONNECTING TO IP

Not an apk file

Hello dev
I recently got not an apk error if its an rror then please solve it or if its my mistake then how to properly use INSTALL command

ghost start faillure !

  .-.
.'   `.
:0 0  :
: o    `.

: . : `. : : . `. : : ` . `. `.. : `. ;
:; :'
: . . . '''---..,___.

Ghost Framework v5.0

ghost> help
Traceback (most recent call last):
File "./ghost", line 232, in
main()
File "./ghost", line 86, in main
elif con == "clear":
UnboundLocalError: local variable 'con' referenced before assignment

no module named readline

i did the pip3 install readline that you told the other guy, but it still says the module is missing
Proof :

root@DESKTOP-3PKQ18O:~# pip3 install readline
Requirement already satisfied: readline in /usr/local/lib/python3.8/dist-packages (6.2.4.1)

any idea?

Does it support android version under 10?

Well, I have 3 devices as follows:

  • Android 10
  • Android 7
  • Android 5

In the developer settings for android 10, there is an option for wireless debugging which is absent in the other two phones.

And I could only connect to the android 10 device and others weren't connected ( which I assume was because they didn't have wireless ADB option)

So, this only works for devices running android 10?

Launching Ghost

After installation every time when I try to start a Ghost this error came up. Anyone, Please Help.

Traceback (most recent call last):
File "./ghost", line 27, in
import readline
ModuleNotFoundError: No module named 'readline'

Failed to start Ghost Server my resolve

I read the thread here on this subject and it was closed with run the install.sh, I found that did not work on my Kali machines, I went through the install script and found that

apt-get -y install adb - did not work.

The line in the ghost script that displays that error is
def start_server():
adb = os.popen("which adb").read()
if adb.strip("\n") == "":
print(E+"Failed to start Ghost Server!")
sys.exit()
else:
os.system("chmod +x core/server.sh && core/server.sh")

I resolved this by changing the sources.list file and added the following.

deb http://http.kali.org/kali kali-rolling main contrib non-free
'# For source package access, uncomment the following line
'# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
'# For source package access, uncomment the following line
'# deb-src http://http.kali.org/kali sana main non-free contrib
'# deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
deb http://old.kali.org/kali moto main non-free contrib
'# For source package access, uncomment the following line
deb-src http://old.kali.org/kali moto main non-free contrib

After that it worked.

Remove the quotes

error while trying to connect to ip

hi
when i try to connect i get this error

double free or corruption (out)
/usr/local/bin/ghost: line 85: 25311 Aborted

any fix please?

thank you

failed to start ghost server

after the successful installation ghost framework in kali linux 2020 ...it shows "failed to start ghost server"..

install

When you lift upload application In this path, for example /system/bin/sh/
I find and everything is fine
but wehn i install

[-] Local file: /system/bin/client/client.apk: does not exist!
Is there any solution

after running the command "ghost"

Traceback (most recent call last):
File "./ghost", line 27, in
import readline
ModuleNotFoundError: No module named 'readline'
(i have already have adb and got it upgraded)

IP address problem

Sir, im all new to this & i cant connect to my device's IP address.
I already tried IP address in Settings > About Phone, but its not working.

I have also installed & updated adb. Pls help..

What is the dependencies size?

It's been running for 10+ minutes and there's no update in the CLI except for Installing dependencies. What is the dependencies' size?

Failed to start Ghost Server!

Hi,

I installed ghost as mentioned in the instructions. But when the try to start, it says Failed to start Ghost Server!.

root@kali:~/ghost# ghost
[-] Failed to start Ghost Server!

Ghost don't work on my Wifi LAN

I install and probe over internet thats work fine, searching device with Shodan.
But is posible to work over my Wifi LAN?. My android device is turne on USB debug.

ghost> connect 192.168.100.217:5555
[*] Connecting to 192.168.100.217:5555...
[-] Failed to connect to 192.168.100.217:5555!

Server issue

After Sudo ghost.
Its Shows Failed to start Ghost server.

Failed to connect

hi when I try to connect my device by entring ip and port 8080 it says failed to connect .
Is this only work in same network?
or I have to install genemotion device in virtual box?
any help will be appreciable
Thanks.

connection failed

ghost> connect 106.210.207.---
[*] Connecting to 106.210.207.---...

  • daemon not running; starting now at tcp:5037
  • daemon started successfully
    [-] Failed to connect to 106.210.207.---
    ghost> connect 106.210.207.103
    [*] Connecting to 106.210.207.---...
    [-] Failed to connect to 106.210.207.---

i am getting this problem it was working fine yesterday now what happen

Having issues while saving screen shots and screen record

[] Recording screen...
[
] Press Ctrl-C to stop.
^C[*] Saving to /root/Desktop/screen.mp4...
[+] Saved to /root/Desktop/screen.mp4!

OS: Kali Linux 2019 rooted version
requirements are installed and updated daily on this machine.

import readline

Traceback (most recent call last):
File "./ghost", line 24, in
import readline
ModuleNotFoundError: No module named 'readline'

Failed to start the server

I simply typedghost in terminal to start ghost, but it fails to start the server, even though I gave as the superuser also but still it is same.
Screenshot from 2020-05-04 05-00-48
Screenshot from 2020-05-04 05-00-28

cant connect ip and here is the command u wanted

ghost> connect 193.163.1.79:5555
[] Connecting to 193.163.1.79:5555...
[-] Failed to connect to 193.163.1.79:5555!
ghost> connect 193.163.1.79
[
] Connecting to 193.163.1.79...
[-] Failed to connect to 193.163.1.79!
ghost>


i have changed my ip in here for privacy reasons.

unable to Connect Ip

For example if my android Ip is 192.168.0.140 and used port 5555 but failed process what i can do? how i can fix this issue to remotely access my testing device

sudo ghost doesn't open ghost

root@kali:~# sudo ghost
Traceback (most recent call last):
File "./ghost", line 27, in
import readline
ModuleNotFoundError: No module named 'readline'

No internet connection!

When i try to install ghost on ubuntu 20.04 i get the no internet connection, but not on my kali linux !

Help with Screenshot

Whenever I take a screenshot, it does not save where I tell it to, even though the message says success. In fact, I cannot find where it saves at all. Any ideas?

upload issue

Hi,

When I try to upload just a simple file.txt I have an error crashes ghost-framework :

ghost(XX.XXX.XXX.XX:5555)> upload Zone.txt Downloads Traceback (most recent call last): File "./ghost", line 479, in <module> main() File "./ghost", line 460, in main rp = rp[rp.index('/')+1:][::-1] ValueError: substring not found

Dunno why is doing this...

OS used : MacOS Cataline 10.15.1 && Linux Kali 4.19.93-Re4son-V7

Appreciate your help :)

No Application found

Hi,

When I try to launch an app on target device, I get
... com.battlenet.showguide com.android.bluetooth com.android.providers.contacts com.android.captiveportallogin ghost(XX.XXX.XXX.XX:5555)> launch bluetooth [-] Application is not found!

OS used : macOS Catalina 10.15.1 && Linux Kali.

Appreciate your help on that ! :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.