Solutions for some Android models without tcpdump

Source: Internet
Author: User

Enter the mount command

Mount

Rootfs on/type rootfs (RO, relatime)

Tmpfs on/dev type tmpfs (RW, relatime, mode = 755)

Devpts on/dev/PTS type devpts (RW, relatime, model = 600)

Proc on/proc type proc (RW, relatime)

Sysfs on/sys type sysfs (RW, relatime)

Tmpfs on/sqlite_stmt_journals type tmpfs (RW, relatime, size = 4096 K)

None on/dev/cpuctl type cgroup (RW, relatime, CPU)

/Dev/block/mtdblock3 on/system type yaffs2 (RO, relatime)

/Dev/block/mtdblock5 on/Data Type yaffs2 (RW, nosuid, nodev, relatime)

/Dev/block/mtdblock4 on/cache type yaffs2 (RW, nosuid, nodev, relatime)

/Dev/block // vold/179: 1 on/sdcard type vfat (RW, dirsync, nosuid, nodev, noexec, rela

Time, uid = 1000, gid = 1015, fmask = 0702, dmask = 0702, allow_utime = 0020, codePage = cp437, IOC

Harset = iso8859-1, shortname = mixed, utf8, errors = remount-Ro)

 

We can see that

/Dev/block/mtdblock3 on/system type yaffs2 (RO, relatime)

 

Remount the input command

Mount-O remount/dev/block/mtdblock3/System

 

 

Input mount again

We can see that

# Mount

Mount

Rootfs on/type rootfs (RO, relatime)

Tmpfs on/dev type tmpfs (RW, relatime, mode = 755)

Devpts on/dev/PTS type devpts (RW, relatime, model = 600)

Proc on/proc type proc (RW, relatime)

Sysfs on/sys type sysfs (RW, relatime)

Tmpfs on/sqlite_stmt_journals type tmpfs (RW, relatime, size = 4096 K)

None on/dev/cpuctl type cgroup (RW, relatime, CPU)

/Dev/block/mtdblock3 on/system type yaffs2 (RW, relatime)

/Dev/block/mtdblock5 on/Data Type yaffs2 (RW, nosuid, nodev, relatime)

/Dev/block/mtdblock4 on/cache type yaffs2 (RW, nosuid, nodev, relatime)

/Dev/block // vold/179: 1 on/sdcard type vfat (RW, dirsync, nosuid, nodev, noexec, rela

Time, uid = 1000, gid = 1015, fmask = 0702, dmask = 0702, allow_utime = 0020, codePage = cp437, IOC

Harset = iso8859-1, shortname = mixed, utf8, errors = remount-Ro)

 

You can see that/system can be deleted and modified as needed.

 

Import the tcpdump file to the/system/xbin/directory.

ADB push D:/tcpdump/system/xbin/

 

Then run the command

 

# Cd System

CD System

# Cd xbin

CD xbin

# Ls

Ls

Tcpdump

#./Tcpdump

./Tcpdump

./Tcpdump: Permission denied

# Chmod + x tcpdump

Chmod + x tcpdump

#./Tcpdump

./Tcpdump

Tcpdump: verbose output suppressed, use-V or-VV for full protocol decode

Listening On rmnet0, link-type en10mb (Ethernet), capture size 96 bytes

 

After adding permissions, tcpdump can be used.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.