Skip to content

Instantly share code, notes, and snippets.

@amindadgar
Created June 4, 2021 14:47
Show Gist options
  • Save amindadgar/ec9026719296e3b02db5e66d042e8fb9 to your computer and use it in GitHub Desktop.
Save amindadgar/ec9026719296e3b02db5e66d042e8fb9 to your computer and use it in GitHub Desktop.
Get DHCP client list from android hotstpot ( connect using adb )
# you can run this commands for rooted devices
adb tcpip 5555
adb connect 192.168.43.1 # mobile AP IP (Always it is this)
adb shell
cat /data/misc/dhcp/dnsmasq.leases # this command will show a list of connected devices with their ip and mac address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment