AdBot is a dynamic exploration tool for automated testing of in-app advertisement in Android apps based on DroidBot.
- Python 3.7, Java 8, Android SDK
- Add
platform_toolsdirectory in Android SDK toPATH - Install prerequisites with:
pip install androguard>=3.4.0a1 networkx Pillow- Make sure a testing Android device or emulator installed with Xposed is connected via
adb. - Change the parameters accordingly in
loader_single.py(loader.pyfor batch run). - Run
loader_single.pyorloader.py. (Users can customize the number and interval time of input events in the loader.)
AdTraffic is designed to harvest all the ad-related traffic at runtime and further collect ad contents, which runs in parallel with AdBot.
Supported OS: Windows XP or higher
AdTraffic utilizes Fiddler and FidderScript to capture and organize general traffic, which currently support Windows OS only.
- Make sure a testing Android device or emulator installed with Xposed is connected via
adb. - Setting up Fiddler to capture the traffic of your testing device (including HTTPS messages) according to this article.
- Specify
ad_traffic = Trueinloader_single.pyorloader.py. - Run
loader_single.pyorloader.py.