该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

测试机器:华为P7-L07

安卓测试环境:EMUI 3.1 安卓5.1.1(版本号:P7-L07C01B851,基带版本:23.600.06.00.00,内核版本:3.0.8-00533-gdc91976 android@localhost #2 Sat Oct 10 16:06:36 CST 2015) ROOT chroot容器挂载Debain 8 Jessie与安卓并行运行,在Linux Deploy里设置Linux对内置和外载SD卡的完全访问

安卓ROOT过程:先用kingroot获得ROOT权限再在制作机器系统镜像后传至电脑上用winHEX抓取机器解锁码进行BootLoader解锁然后再刷第三方TWRP RECOVERY再把Kingroot卸载掉然后再在TWRP里刷superSU安装包以获得纯净ROOT管理

Linux测试环境:Debain 8 Jessie 加 Busybox 加 安卓系统里运行的“hin2n”APP 加 其它软件……(部分详情请看实验部分)

实验:

root@localhost:/storage/sdcard1# ip r

default via 10.4.131.1 dev wlan0 metric 305

10.0.2.0/24 dev tun0 proto kernel scope link src 10.0.2.9

10.4.131.0/24 dev wlan0 proto kernel scope link src 10.4.131.228 metric 305

10.8.0.0/24 dev tun1 proto kernel scope link src 10.8.0.1

root@localhost:/storage/sdcard1# route

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

default 10.4.131.1 0.0.0.0 UG 305 0 0 wlan0

10.0.2.0 * 255.255.255.0 U 0 0 0 tun0

10.4.131.0 * 255.255.255.0 U 305 0 0 wlan0

10.8.0.0 * 255.255.255.0 U 0 0 0 tun1

root@localhost:/storage/sdcard1# ifconfig

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:25776 errors:0 dropped:0 overruns:0 frame:0

TX packets:25776 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:1803914 (1.7 MiB) TX bytes:1803914 (1.7 MiB)

tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00

inet addr:10.0.2.9 P-t-P:10.0.2.9 Mask:255.255.255.0

UP POINTOPOINT RUNNING MTU:1400 Metric:1

RX packets:13665 errors:0 dropped:0 overruns:0 frame:0

TX packets:12857 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:500

RX bytes:887658 (866.8 KiB) TX bytes:784802 (766.4 KiB)

tun1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00

inet addr:10.8.0.1 P-t-P:10.8.0.1 Mask:255.255.255.0

UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:100

RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr **:**:**:**:**:**

inet addr:10.4.131.228 Bcast:10.4.131.255 Mask:255.255.255.0

inet6 addr: fe80::**********/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1400 Metric:1

RX packets:211696 errors:0 dropped:82 overruns:0 frame:0

TX packets:337241 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:27209237 (25.9 MiB) TX bytes:29321849 (27.9 MiB)

root@localhost:/storage/sdcard1# ifconfig `ip r | sed -nr '/default/{s#.*dev\s*([^ \t]*)\s*.*#\1#p}'` | grep "inet addr:" | awk '{print $2}' | cut -c 6-

10.4.131.228

root@localhost:/storage/sdcard1#uname -a

Linux localhost 3.0.8-00533-gdc91976 #2 SMP PREEMPT Sat Oct 10 16:06:36 CST 2015 armv7l GNU/Linux

root@localhost:/storage/sdcard1# cat /proc/version

Linux version 3.0.8-00533-gdc91976 (android@localhost) (gcc version 4.7 (GCC) ) #2 SMP PREEMPT Sat Oct 10 16:06:36 CST 2015

root@localhost:/storage/sdcard1# busybox

BusyBox v1.22.1 (Debian 1:1.22.0-9+deb8u1) multi-call binary.

BusyBox is copyrighted by many authors between 1998-2012.

Licensed under GPLv2. See source distribution for detailed

copyright notices.

Usage: busybox [function [arguments]...]

or: busybox --list[-full]

or: busybox --install [-s] [DIR]

or: function [arguments]...

BusyBox is a multi-call binary that combines many common Unix

utilities into a single executable. Most people will create a

link to busybox for each function they wish to use and BusyBox

will act like whatever it was invoked as.

Currently defined functions:

[, [[, acpid, adjtimex, ar, arp, arping, ash, awk, basename, blockdev, brctl, bunzip2, bzcat, bzip2, cal, cat, chgrp,

chmod, chown, chroot, chvt, clear, cmp, cp, cpio, cttyhack, cut, date, dc, dd, deallocvt, depmod, devmem, df, diff,

dirname, dmesg, dnsdomainname, dos2unix, du, dumpkmap, dumpleases, echo, egrep, env, expand, expr, false, fgrep, find,

fold, free, freeramdisk, fstrim, ftpget, ftpput, getopt, getty, grep, groups, gunzip, gzip, halt, head, hexdump, hostid,

hostname, httpd, hwclock, id, ifconfig, init, insmod, ionice, ip, ipcalc, kill, killall, klogd, last, less, ln, loadfont,

loadkmap, logger, login, logname, logread, losetup, ls, lsmod, lzcat, lzma, lzop, lzopcat, md5sum, mdev, microcom, mkdir,

mkfifo, mknod, mkswap, mktemp, modinfo, modprobe, more, mount, mt, mv, nameif, nc, netstat, nslookup, od, openvt, patch,

pidof, ping, ping6, pivot_root, poweroff, printf, ps, pwd, rdate, readlink, realpath, reboot, renice, reset, rev, rm,

rmdir, rmmod, route, rpm, rpm2cpio, run-parts, sed, seq, setkeycodes, setsid, sh, sha1sum, sha256sum, sha512sum, sleep,

sort, start-stop-daemon, stat, strings, stty, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac, tail, tar,

taskset, tee, telnet, test, tftp, time, timeout, top, touch, tr, traceroute, traceroute6, true, tty, udhcpc, udhcpd,

umount, uname, uncompress, unexpand, uniq, unix2dos, unlzma, unlzop, unxz, unzip, uptime, usleep, uudecode, uuencode,

vconfig, vi, watch, watchdog, wc, wget, which, who, whoami, xargs, xz, xzcat, yes, zcat

root@localhost:/storage/sdcard1#

linux c 获取网关ip,linux sh 如何根据出口网关来获取本机出口ip相关推荐

  1. 查看网卡ip linux,教你如何查看本机ip地址?

    说到查看电脑本机的IP,相信不少人都在需要更换网络或者网络出现故障时用到这门技术,而作为一个电脑"小白",怎么对自己的电脑ip进行查看,查看ip地址真如我们所想象的那样难吗,别着急 ...

  2. linux vmware文件互传,Linux与Windows文件互传(VMWare)

    Linux与Windows文件互传(VMWare) 虚拟机无桌面的Linux 与 物理机Windows 文件互传有很多种方法,现在先说一种通过共享文件夹的形式,其他方法后续再补充 1.背景 1) 虚拟 ...

  3. 编译linux系统到开发板,Linux系统有关交叉编译和移植到6410开发板上的简单过程...

    在进行移植之前,要检查一下目标机(这里指6410开发板)与宿主机之间的接线问题,即串口线.网线是否正确连接,目标机的电源是否插好!在接线问题解决后,才能保证交叉编译正常进行! 个人理解,移植的主要思想 ...

  4. 【python】获取本机局域网ip和公网ip

    1.本地局域网IP 局域网ip比较好获取,只需要udp协议访问一下DNS地址即可 import socketdef get_host_ip():s = socket.socket(socket.AF_ ...

  5. linux系统下获取IP,MAC,子网掩码,网关

    添加对应头文件 #include<stdio.h> #include <cstdlib> #include<string.h> #include<unistd ...

  6. linux拨号失败分配局域网ip,linux pppd-GPRS和以太网同时在线,解决拨号默认网关...

    问题分析:      linux 系统下pppd-GPRS和以太网同时在线,当以太网配置网关,将导致pppd拨号之后不能使用获取到默认网关,会使用以太网配置的网关,将导致pppd-gprs无法联网,提 ...

  7. 使用Linux curl命令获取本机公网IP地址

    使用Linux curl命令获取本机公共IP地址 在本教程中,我们将学习如何使用Linux curl命令查找计算机的公共IP地址. 通常,如果我们想要找到我们使用的公共IP地址,我们会去谷歌并搜索&q ...

  8. QT 怎么获取linux本机的IP地址?

    一.QHostAddress 转 QString QHostAddress haAdrdress = QHostAddress::LocalHost;//LocalHost相当于本地的"12 ...

  9. linux——关于ip、静态网络、动态网络、网关、DNS的设置

    一.常用网络协议 1.ip基础知识 #1.ipv4  2进制32位-----10进制 11111110.11111110.11111110.11111110 == 254.254.254.254 17 ...

  10. Linux ct获取本机ip,linux ip命令

    ip 是个命令, ip 命令的功能很多!基本上它整合了 ifconfig 与 route 这两个命令,不过ip 的功能更强大! 如果您有兴趣的话,请自行 vi /sbin/ifup 就知道整个 ifu ...

最新文章

  1. 类型名称了解typename的双重意义
  2. 01pxc集群的部署
  3. 【C#/.NET】.NET6中全局异常处理
  4. 玩转算法第七章-二叉树与递归
  5. 安装和卸载mysql
  6. mysqldump 导出数据库出错
  7. 1.gloox开发环境搭建
  8. oracle数据库匿名快,pl/sql分匿名块和命名块
  9. 色差仪软件的安装和电池充电
  10. ajax——优化0126(增删改查:添加查看详情,返回结果类型为JSON型,在窗口显示)...
  11. CCF NOI1074 2的幂次方表示
  12. python是干嘛的-python是什么?python可以用来干什么?
  13. 广东开放大学学习指南
  14. php压缩解压zip文件夹,php利用ZipArchive类实现文件压缩与解压
  15. matlab人脸识别论文,基于matlab的人脸识别系统设计本科毕业论文(设计).doc
  16. 社区电商平台有哪些运营模式
  17. python中add方法_python中add函数怎么用
  18. XGBoost资料( 多届竞赛冠军获得者 周耀 整理)
  19. 车牌识别一体机 尊贵
  20. 收发器(Transceiver)架构4——发信机1

热门文章

  1. server2003进入oracle,windows server 2003安装oracle
  2. 计算机自适应测试的应用 托福,计算机自适应测试系统的研究和应用.pdf
  3. 二值化处理c语言程序,数字信号处理c语言程序集
  4. grep 两个字符串_文本搜索神器Grep
  5. 事物Spring boot @Transactional
  6. 关于session丢失原因的分析
  7. 用shell编写一个三角形图案
  8. 现代软件工程 作业 第一周博客作业
  9. htc vive实现传送功能(Teleport)
  10. Memcache存储大数据的问题