Skip to content

seanlilmateus/tcpdump-android

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Overview

This script will cross compile tcpdump for use on Android devices.

It was written by Loic Poulain on OMAPpedia. See http://omappedia.org/wiki/USB_Sniffing_with_tcpdump for full details.

Build

Install the Android NDK then:

export NDK=/ndk/is/here  
./build-tcpdump

Install on Droid

> adb push tcpdumpbuild/tcpdump /sdcard
> adb shell
# su
# mount | grep system
/dev/block/xxxxxxxx /system ext4 ro,relatime,barrier=1,data=ordered 0 0
# mount -o remount,rw /dev/block/xxxxxxxx /system
# cp /sdcard/tcpdump /system/bin/tcpdump
# mount -o remount,ro /dev/block/xxxxxxxx /system

Run

# tcpdump -D (or run netcfg)
1.eth0
2.any (Pseudo-device that captures on all interfaces)
3.lo

# tcpdump -vv -i eth0 -s 0 -w /sdcard/dump.cap

About

Build tcpdump for Android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%