Skip to content

Instantly share code, notes, and snippets.

@Techbrunch
Last active April 28, 2024 15:36
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Techbrunch/9298a16d9dd328935f3a2373326fd08a to your computer and use it in GitHub Desktop.
Save Techbrunch/9298a16d9dd328935f3a2373326fd08a to your computer and use it in GitHub Desktop.
Xamarin Reverse Engineering

Notes:

Regarding the interception of HTTP:

We did it through USB reverse tunneling and iptable rules local to the phone.

# Setup USB reverse tunnel for port 8080 (MITM)
adb reverse tcp:8080 tcp:8080

# Add rules to redirect HTTP through the reverse tunnel (Phone)
iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to-destination 127.0.0.1:8080
iptables -t nat -A OUTPUT -p tcp --dport 443 -j DNAT --to-destination 127.0.0.1:8080

Blog Posts:

GitHub:

Documentation:

@dannytactic
Copy link

hello trying to contact you but seems cant find any details... can you help me to reverse engineer a xamarin app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment