2013-10-18 24 views
5

benötigt wird Ich muss tcpdump Ablaufverfolgung auf meinen Android-Geräten tun.Tcpdump Ablaufverfolgung auf Android - konnte Bibliothek "libssl.so" nicht laden, die von "/ system/bin/tcpdump"


Mein Setup:

Push-tcpdump-Datei

adb push filepath/tcpdump /sdcard/tcpdump 

Kopieren Sie die Datei auf/system/bin

Give Root-Rechte zu tcpdump-Datei sdcard

adb shell 
cd /system/bin 
su 
chmod 777 tcpdump 
Installieren

BUSYBOX from Google Play

tcpdump Spur

tcpdump -vv -s 0 -w /sdcard/filename.pcap 

Ich habe bereits geschafft zu tun, dass auf dem Samsung Galaxy S4 - es funktioniert gut. Es funktioniert jedoch nicht auf meinem Samsung Galaxy Tab. Nach tcpdump Befehl bekam ich Fehler:

tcpdump 
soinfo_link_image(linker.cpp:1635): could not load library "libssl.so" needed by 
"/system/bin/tcpdump"; caused by load_library(linker.cpp:761): not a valid ELF 
executable: libssl.soCANNOT LINK EXECUTABLE 

Beide Geräte sind verwurzelt und sie haben die gleiche tcpdump-Konfiguration. Ich habe libssl.so in/system/lib/

Samsung Galaxy S4

C:\Windows\System32>adb shell 
[email protected]:/ $ su 
su 
[email protected]:/ # cd system/bin 
cd system/bin 
[email protected]:/system/bin # tcpdump 
tcpdump 
tcpdump: WARNING: arptype 530 not supported by libpcap - falling back to cooked 
socket 
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode 
listening on rmnet_usb0, link-type LINUX_SLL (Linux cooked), capture size 96 byt 
es 

Samsung Galaxy Tab

C:\Windows\System32>adb shell 
[email protected]:/ # su 
su 
[email protected]:/ # cd system/bin 
cd system/bin 
[email protected]:/system/bin # tcpdump 
tcpdump 
soinfo_link_image(linker.cpp:1635): could not load library "libssl.so" needed by 
"/system/bin/tcpdump"; caused by load_library(linker.cpp:761): not a valid ELF 
executable: libssl.soCANNOT LINK EXECUTABLE 
255|[email protected]:/system/bin # 

Antwort

0

SOLUTION

Ich habe mein Problem gelöst, indem ich 'libssl.so' und 'libcrypto.so' von Samsung Galaxy S4 nach Samsung Galaxy Tab kopiert habe. Es scheint gut zu funktionieren. Ich habe keine Ahnung von den möglichen negativen Auswirkungen dieser Veränderung.

0

Samsung Galaxy Entdecken SGH-S730M * # 9900 # TCP-Dump erfordert OTP-Authentifizierung, so würde ich annehmen, TCP-Dump funktioniert auf keinem Android-Gerät ohne ein Passwort.

+0

Ich arbeite an gerooteten Geräten und ich benutze dies: http://www.tcpdump.org/. Es funktioniert gut – KnightWhoSayNi

4

http://www.kandroid.org/online-pdk/guide/tcpdump.html

kann es nützlich.

adb shell tcpdump -i any -p -s 0 -w /sdcard/capture.pcap 

# "-i any": listen on any network interface 
# "-p": disable promiscuous mode (doesn't work anyway) 
# "-s 0": capture the entire packet 
# "-w": write packets to a file (rather than printing to stdout) 

... do whatever you want to capture, then ^C to stop it ... 

adb pull /sdcard/capture.pcap . 

sudo apt-get install wireshark # or ethereal, if you're still on dapper 
wireshark capture.pcap   # or ethereal