#TodayILearned
  • Intro
  • Mobile
    • ADB
    • Bundletool
    • Frida
    • Objection
    • Apktool
    • Patching Smali
    • jadx
    • Xamarin
    • Emulator
    • Correlium
  • Network
    • Bettercap
  • Red Team
    • Unicorn
    • Macros
    • Defense Evasion
      • Load shellcode from memory using Golang
      • Hershell
    • Initial Compromise
      • Password Spraying
  • Web
    • Burp
    • IIS
  • Pentest
    • Metasploit
    • sqlmap
    • Hashcat
  • Miscellaneous
  • Recon
  • Docker
    • GitHub
    • Pulling from an insecure registry
    • Exploring a Docker image
  • Recon
    • Aquatone
    • Censys
    • MassDNS
    • S3 buckets enumeration with ffuf
    • Shodan
  • Flutter
    • Privilege Escalation
  • SSTI
Powered by GitBook
On this page

Was this helpful?

  1. Mobile

Emulator

PreviousXamarinNextCorrelium

Last updated 5 years ago

Was this helpful?

cd ${ANDROID_HOME}/emulator
./emulator -list-avds
./emulator -avd $(./emulator -list-avds) -writable-system

Modifying system files

cd ${ANDROID_HOME}/tools
adb root
adb remount
adb pull /system/etc/hosts ~/Downloads/hosts
echo '192.168.0.17 www.test.com' >> ~/Downloads/hosts
adb push ~/Downloads/hosts /system/etc/hosts
adb reboot

The host file might be in a

Source:

different location
https://medium.com/code-procedure-and-rants/use-modified-hosts-file-on-android-emulator-4f29f5d12ac1