pwny.cc
  • Home
  • SO
    • AI
      • Evasion
        • Exercise 1
        • Exercise 2
        • Exercise 3
        • Exercise 4
    • Android
      • adb
      • apktool
      • burp suite
      • dns spoofing
      • frida
      • intent
      • jadx
      • JNI
      • objection
      • tcpdump
      • webview
    • iOS
      • objection
    • Linux
      • Internal Recon
      • Bypasses
      • Network
      • Exfiltration
      • Containers
      • Iptables
    • Windows
      • Internal Recon
      • External Recon
      • Bypasses
      • Network
      • Exfiltration
  • SHELLS
    • Misc
    • Web Shells
    • Reverse Shells
    • Obfuscated Shells
  • WEB ATTACKS
    • Misc
    • Command Injection
    • Cross-Site Scripting (XSS)
      • XSS Tips
      • WAF Bypasses
    • Insecure Direct Object Reference (IDOR)
    • Insecure File Upload
    • Local File Inclusion (LFI)
      • Bypass Techniques
      • LFI to RCE
    • OAuth
    • Open Redirect
      • Open Redirect to XSS
    • Server Side Request Forgery (SSRF)
    • Server Side Template Injection (SSTI)
    • SQL Injection (SQLi)
      • SQLMap
      • MySQL
      • MSSQL
      • Oracle
      • PostgreSQL
    • XML External Entity (XXE)
  • OTHER
    • Cracking
      • Hashcat
      • John the Ripper
    • Sandbox Escape
Powered by GitBook
On this page
  • dnsmasq
  • Setup dnsmasq
  • Configure DNS server on Android
  • Option 1: Settings way
  • Option 2: DNS over VPN

Was this helpful?

  1. SO
  2. Android

dns spoofing

dnsmasq

Setup dnsmasq

dnsmasq.conf

address=/appserver.com/192.168.178.37
address=/otherserver.com/192.168.178.37
log-queries

Run dnsmasq using docker

docker pull andyshinn/dnsmasq
docker run --name my-dnsmasq --rm -it -p 0.0.0.0:53:53/udp \
 -v D:\tmp\proxy\dnsmasq.conf:/etc/dnsmasq.conf andyshinn/dnsmasq.conf andyshinn/dnsmasq

Configure DNS server on Android

Option 1: Settings way

Change DNS configuration from settings apps (but unfortunately some apps like Chrome will ignore our DNS server)

Option 2: DNS over VPN

  1. Change DNS settings to "Other DNS"

  2. Select "Proxy DNS" (DNS 53)

  3. Create a new entry pointing ot your local DNS server host

  4. Launch the VPN

You can check whether DNS spoofing works by going to Google Chrome and visit chrome://net-internals.

Previousburp suiteNextfrida

Last updated 6 months ago

Was this helpful?

Using we can control this:

rethinkdns app