By Deffjm


2019-04-09 23:24:55 8 Comments

I'm trying to install tcpdump to monitor network traffic. I've tried multiple versions from link1 and link2. Whenever I try to execute I get an error:

~$ adb connect 192.168.1.10:5555
~$ adb root
~$ adb push tcpdump /data/local
~$ adb shell
~$ su
~# cd /data/local
~# chmod 777 tcpdump
~# ./tcpdump -s 0 -v -w out.pcap
/system/bin/sh: ./tcpdump: not executable: 32-bit ELF file

Any help is appreciated.

EDIT:

~$ uname -m
i686

1 comments

@Irfan Latif 2019-04-12 22:46:27

You are on x86 architecture but trying to run a tcpdump binary built for ARM architecture. Link2 provides source code and link1 a 32-bit ARM binary which won't work obviously. You need a 32-bit executable for Intel / AMD processors which you can build from source code, or try this one.

RELATED: ARM vs. x86.

Related Questions

Sponsored Content

1 Answered Questions

Using Android Emulator's Root Shell via Command Line

2 Answered Questions

[SOLVED] Why chmod gives "Operation not permitted" error?

2 Answered Questions

2 Answered Questions

[SOLVED] adb shell error: device not found (Ubuntu)

2 Answered Questions

[SOLVED] Running TRIM from shell

1 Answered Questions

[SOLVED] Can't use chmod to alter permissions on emulated phone

0 Answered Questions

1 Answered Questions

Is root ownership inherited in shell scripts? (rsync via ssh permission denied)

1 Answered Questions

[SOLVED] Shell utterly borked, toolbox claims "no such tool"

Sponsored Content