Last active
July 30, 2023 13:26
-
-
Save ndunks/65a75fa57987bb231ab66a172c5ac2bd to your computer and use it in GitHub Desktop.
Bettercap Waydroid Note
This file contains 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
#!/bin/false | |
# Run without root( not fully work, miss some caps) | |
sudo setcap 'cap_net_bind_service=ep cap_net_admin=ep cap_net_broadcast=ep cap_net_raw=ep cap_fowner=ep cap_sys_admin=ep' `which bettercap` | |
# Trust bettercap Root Ca (Fake GoDaddy) | |
sudo mount /dev/loop0 ./mount | |
# Android 11 Go Daddy original CA root | |
system.img: system/etc/security/cacerts/bc3f2570.0 | |
openssl x509 -in ./bc3f2570.0 -text | grep Issuer | |
openssl x509 -inform PEM -subject_hash_old -in .bettercap-ca.cert.pem | head -n 1 | |
# 7a3894f6 | |
sudo cp ~/.bettercap-ca.cert.pem ./mount/system/etc/security/cacerts/7a3894f6.0 | |
# https://gist.github.com/pwlin/8a0d01e6428b7a96e2eb | |
# - copy ca to android | |
# - Install it using setings | |
# - then move it to system cers | |
cd ./mount/system/etc/security/cacerts | |
sudo bettercap -iface waydroid0 -eval 'set events.stream.http.request.dump true; set events.stream.http.response.dump true; set dns.spoof.domains *; set dns.spoof.all true; dns.spoof on; http.proxy on; https.proxy on;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment