Last active
December 10, 2020 19:58
-
-
Save kleo/93fda5d3d925dbdaab7e62c40708caa6 to your computer and use it in GitHub Desktop.
timwr/CVE-2016-5195 dirtycow vagrant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # timwr/CVE-2016-5195 dirtycow vagrant | |
| vagrant init debian/stretch64 | |
| vagrant up | |
| # remote forward adb server port on host to vagrant | |
| vagrant ssh -- -R 5037:localhost:5037 | |
| # edit sources.list | |
| # add contrib for google-android-ndk-installer | |
| sudo apt update | |
| sudo apt install build-essential git google-android-ndk-installer | |
| # add android-ndk to path | |
| export PATH=/usr/lib/android-ndk/:$PATH | |
| # adb must be the same version on host and vagrant | |
| # edit sources.list | |
| # comment out stretch deb | |
| # add buster main | |
| sudo apt update | |
| sudo apt install adb | |
| # start adb server on host and list devices | |
| adb devices | |
| # list devices on vagrant | |
| adb devices | |
| # clone dirtycow poc by timwr | |
| git clone https://github.com/timwr/CVE-2016-5195 | |
| cd CVE-2016-5195 | |
| # test if vulnerable | |
| make test | |
| # root | |
| make root | |
| # References | |
| https://medium.com/@mohammadabdulsami/how-to-connect-to-adb-on-host-from-vagrant-6e912479474f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment