level 8
x86:/ $ su
x86:/ # busybox mount /storage/A4AE40E7AE40B398/ADM/zesty-desktop-i386.iso /data/1
x86:/ # busybox mount /data/1/casper/filesystem.squashfs /data/2
x86:/ # cd /data/2
x86:/data/2 # busybox mount /sys sys
x86:/data/2 # busybox mount /proc proc
x86:/data/2 # chroot /data/2
# ls -al
/bin/sh: 1: ls: not found
# $PATH
/bin/sh: 4: /su/bin:/vendor/bin:/system/bin:/su/xbin:/system/xbin: not found
这是安卓的环境变量,导入Ubuntu环境变量
# export PATH=/bin:/sbin:/
输入bash
# bash
root@localhost:/#
root@localhost:/# ls
bin boot dev etc home initrd.img lib media mnt opt proc root run sbin snap srv sys tmp usr var vmlinuz
root@localhost:/# apt
Command 'apt' is available in '/usr/bin/apt'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
apt: command not found
继续导入环境变量
root@localhost:/# export PATH=/bin:/sbin:/usr/bin:/
root@localhost:/# apt
apt 1.4~beta2 (i386)
Usage: apt [options] command
apt is a commandline package manager and provides commands for
searching and managing as well as querying information about packages.
It provides the same functionality as the specialized APT tools,
like apt-get and apt-cache, but enables options more suitable for
interactive use by default.
Most used commands:
list - list packages based on package names
search - search in package descriptions
show - show package details
install - install packages
remove - remove packages
autoremove - Remove automatically all unused packages
update - update list of available packages
upgrade - upgrade the system by installing/upgrading packages
full-upgrade - upgrade the system by removing/installing/upgrading packages
edit-sources - edit the source information file
See apt(8) for more information about the available commands.
Configuration options and syntax is detailed in apt.conf(5).
Information about how to configure sources can be found in sources.list(5).
Package and version choices can be expressed via apt_preferences(5).
Security details are available in apt-secure(8).
This APT has Super Cow Powers.
root@localhost:/# sudo
sudo: unable to resolve host localhost: Connection refused
usage: sudo -h | -K | -k | -V
usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] file ...
root@localhost:/#
root@localhost:/# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/6/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 6.2.1-7ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=i686-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-i386 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc=auto --enable-targets=all --enable-multiarch --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 6.2.1 20161215 (Ubuntu 6.2.1-7ubuntu1)
root@localhost:/#
2016年12月19日 17点12分
1
x86:/ # busybox mount /storage/A4AE40E7AE40B398/ADM/zesty-desktop-i386.iso /data/1
x86:/ # busybox mount /data/1/casper/filesystem.squashfs /data/2
x86:/ # cd /data/2
x86:/data/2 # busybox mount /sys sys
x86:/data/2 # busybox mount /proc proc
x86:/data/2 # chroot /data/2
# ls -al
/bin/sh: 1: ls: not found
# $PATH
/bin/sh: 4: /su/bin:/vendor/bin:/system/bin:/su/xbin:/system/xbin: not found
这是安卓的环境变量,导入Ubuntu环境变量
# export PATH=/bin:/sbin:/
输入bash
# bash
root@localhost:/#
root@localhost:/# ls
bin boot dev etc home initrd.img lib media mnt opt proc root run sbin snap srv sys tmp usr var vmlinuz
root@localhost:/# apt
Command 'apt' is available in '/usr/bin/apt'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
apt: command not found
继续导入环境变量
root@localhost:/# export PATH=/bin:/sbin:/usr/bin:/
root@localhost:/# apt
apt 1.4~beta2 (i386)
Usage: apt [options] command
apt is a commandline package manager and provides commands for
searching and managing as well as querying information about packages.
It provides the same functionality as the specialized APT tools,
like apt-get and apt-cache, but enables options more suitable for
interactive use by default.
Most used commands:
list - list packages based on package names
search - search in package descriptions
show - show package details
install - install packages
remove - remove packages
autoremove - Remove automatically all unused packages
update - update list of available packages
upgrade - upgrade the system by installing/upgrading packages
full-upgrade - upgrade the system by removing/installing/upgrading packages
edit-sources - edit the source information file
See apt(8) for more information about the available commands.
Configuration options and syntax is detailed in apt.conf(5).
Information about how to configure sources can be found in sources.list(5).
Package and version choices can be expressed via apt_preferences(5).
Security details are available in apt-secure(8).
This APT has Super Cow Powers.
root@localhost:/# sudo
sudo: unable to resolve host localhost: Connection refused
usage: sudo -h | -K | -k | -V
usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] file ...
root@localhost:/#
root@localhost:/# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/6/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 6.2.1-7ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=i686-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-i386 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc=auto --enable-targets=all --enable-multiarch --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 6.2.1 20161215 (Ubuntu 6.2.1-7ubuntu1)
root@localhost:/#















