TA的每日心情 | 难过 2015-7-29 09:23 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
最近小弟接到一个整机待机流量测试的任务,采用tcpdump抓包
具体方法如下:
set "sleeptime=10"
set "axb=adb"
%axb% root
%axb% remount
%axb% push .\busybox system/xbin
%axb% shell chmod 755 system/xbin/busybox
%axb% push .\daemonize system/xbin
%axb% shell chmod 755 system/xbin/daemonize
::%axb% shell chmod 777 /data/local/tcpdump
%axb% shell chmod 777 /system/xbin/tcpdump
::dos2unix .\runtcpdump.sh
%axb% push .\runtcpdump.sh /data/
%axb% shell chmod 777 /data/runtcpdump.sh
%axb% shell rm -rf /sdcard/tcpdump/*.*
%axb% shell mkdir "/sdcard/tcpdump/"
set filename=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%
%axb% shell "daemonize tcpdump -i any -p -vv -s 0 -w /sdcard/tcpdump/tcpdump_%filename%.cap; sleep 1"
%axb% shell "daemonize /data/runtcpdump.sh %sleeptime%; sleep 1"
echo Started!!
pause
但是运行后
E:\runTcpdump1.2\runTcpdump1.2>adb shell "daemonize tcpdump -i any -p -vv -s 0 -
w /sdcard/tcpdump/tcpdump_20150729 917.cap; sleep 1"
error: only position independent executables (PIE) are supported.
E:\runTcpdump1.2\runTcpdump1.2>adb shell "daemonize /data/runtcpdump.sh 10; slee
p 1"
error: only position independent executables (PIE) are supported.
求解决办法。。。。。。。。。。。。。。。
|
|