busybox在安卓設備中的使用

busybox下載:
https://busybox.net/downloads/binaries/1.35.0-i686-linux-musl/
busybox使用:

➜  Desktop adb push /Users/xxx/Desktop/busybox1 /sdcard
/Users/xxx/Desktop/busybox1: 1 file pushed, 0 skipped. 109.4 MB/s (1061344 bytes in 0.009s)
➜  Desktop adb shell
cmi:/ $ su
cmi:/ # cd sdcard
cmi:/sdcard # ls -la busybox1
-rw-rw---- 1 root everybody 1061344 2022-02-18 12:00 busybox1
cmi:/sdcard # su chmod 755 busybox1
cmi:/storage/emulated/0 # su ./busy
busybox   busybox1
cmi:/storage/emulated/0 # su ./busybox1 -h
MagiskSU

Usage: su [options] [-] [user [argument...]]

Options:
  -c, --command COMMAND         pass COMMAND to the invoked shell
  -h, --help                    display this help message and exit
  -, -l, --login                pretend the shell to be a login shell
  -m, -p,
  --preserve-environment        preserve the entire environment
  -s, --shell SHELL             use SHELL instead of the default /system/bin/sh
  -v, --version                 display version number and exit
  -V                            display version code and exit
  -mm, -M,
  --mount-master                force run in the global mount namespace

cmi:/storage/emulated/0 #
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章