Skip to content

vishwaraj101/droidhound

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About D-hound

  • D-hound is a python tool designed to help pentesters and bug hunters to perform quick dynamic scans on android apps right from terminal. It also keeps on sniffing the app version as soon as the newer version is released or change is detected it will notify the user and starts scanning the app .

  • Useful for security engineering teams to integrate it in cycle to regularly scan there apk builds for vulnerability checks.

Video Demo :

https://youtu.be/llcc-uuh7Gg

Dependencies :

dhound uses bs4, requests, schedule, and argparse python modules.

These dependencies can be installed using the requirements file:

  • Installation on Windows:
c:\python27\python.exe -m pip install -r requirements.txt
  • Installation on Linux
sudo pip install -r requirements.txt

How to setup guide ?

Install python

  • 2.7.x is suggested and make sure python_path is in environment variables

Install ADB

Install drozer

Install Android Emulator

  • Suggested Genymotion with android 4.4.4,5.0,6.0, or Leapdroid (only if in case wanted to run emulator inside another vm)

  • Install drozer_agent.apk in the emulator and keep it running in the background.

Drozer agent

  • Also put drozer agent as dz.apk in droidhound folder as the tool will install it back if in case drozer agent get's unistalled from device or emulator .

Finally clone it

git clone https://github.com/vishwaraj/droidhound.git
cd droidhound

Note :

  • You have to update adb_path (where adb is located in windows ? ) in below code which can be found in dhound.py file
  • Similarly update drozer_path and adb_path in the below code as per your system which can be found in testd.py file
# dhound.py file here please update adb_path as per your system adb location
# Code for os check
if platform=='win32':

                adb_path="C:\\pentdroid\\bin\\platform-tools\\adb.exe"
                pwd=os.getcwd()
                testd_path=pwd+"\\testd.py"
                directory=pwd+"\\"+package

else:
    adb_path="adb"
    directory=pwd+"/"+package
#In testd.py file Please update adb_path and drozer_path as located in your system
#Code for os check
if platform=='win32':
    
	adb_path="C:\\pentdroid\\bin\\platform-tools\\adb.exe"
	drozer_path="C:\\drozer\\drozer.bat"
	save_path=pwd+"\\"+pname

else:
	adb_path="adb"
	drozer_path="drozer"
	save_path=pwd+"/"+pname

To get Push Notifications or version change alerts

Now it will be ready to use

Usage :

$ python dhound.py
 
   ___    __                     __
  / _ \  / /  ___  __ _____  ___/ /
 / // / / _ \/ _ \/ // / _ \/ _  / 
/____/ /_//_/\___/\_,_/_//_/\_,_/  

[+]By Vishwaraj 

Usage: dhound.py -t,--target <package_name>
Usage: dhound.py -s,--sniff  <package_name>
vraj:documents vishwaraj$ 

Short Form Long Form Description
-t --target Downloads the apk and start the scanning
-s --sniff Detects version change , sends push notifcation and starts scanning

if you already have any apk in your emulator and directly want's to scan then

  • Start the drozer agent in emulator
  • Then hit python testd.py <package_name_from_playstore>
  • you will find the results in package folder

Examples :

  • To download and start scanning

python dhound.py -t <package_name_playstore> python dhound.py -t com.deveoper.xyz

  • To check and notify about version change

python dhound.py -s <package_name_from_playstore>

Reporting :

  • It will save the report in html format under droidhound/<package_name> directory .

License :

dhound is available as open source under the terms of the MIT License

Version

Current version is 1.0

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/vishwaraj/droidhound

About

Hunt android apps right from terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages