|
楼主 |
发表于 2022-4-27 23:10:13
|
显示全部楼层
因光猫原系统的busybox功能不完整,也没有nano和dropbear,调试lxc可能会不方便,现分享出来。' f: _, T [6 f; K
% N( B# O( S H* D4 B: T! T2 p- root@F650A:~ # /usr/bin/busybox5 `# x% x1 Q) B" i# W- B( c
- BusyBox v1.23.2 (2020-06-16 16:53:26 CST) multi-call binary.
8 U/ G* Q+ @4 x( ] - BusyBox is copyrighted by many authors between 1998-2012.
3 B; Y# @2 e$ X I6 r+ v) y* k- ^ - Licensed under GPLv2. See source distribution for detailed3 g+ }2 P4 N* ^% ^
- copyright notices.
r- y- J7 p$ b: o2 }& e- k$ R - & b- d: R* K8 D2 Z9 y0 v$ m: a
- Usage: busybox [function [arguments]...]5 j. c1 |, N k( w, z8 p
- or: busybox --list[-full]
- g/ B* }( Y; C( N. @ - or: busybox --install [-s] [DIR]7 A0 _& [% w* i/ _
- or: function [arguments]...) O8 M" _5 E% k
( }; l! F# w3 S1 r p- BusyBox is a multi-call binary that combines many common Unix3 v: d) k) M" U2 Q9 k& \! {6 ?
- utilities into a single executable. Most people will create a
" @/ }$ c0 Y3 u( s2 Q8 K - link to busybox for each function they wish to use and BusyBox$ f6 s1 l, X5 t; ]# ]
- will act like whatever it was invoked as.
' l; q5 J( c' {$ W0 v7 { - $ F* y& N& T9 y) ]7 u6 s4 g* _/ t6 b
- Currently defined functions:( X# Y9 {7 u! |2 ?# e; W8 d
- [, [[, addgroup, adduser, ar, arp, arping, ash, awk, basename, blkid, brctl, bunzip2,3 _; K4 X3 Z1 V( P0 g0 N
- bzcat, cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt, cksum, clear, cmp, cp,
1 l* @* X* ? {# ?; c+ n/ D1 V1 ` - cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,6 n: U+ G- Y0 u+ g, r
- diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap, echo, egrep, eject, env,
6 q. U3 l8 R# D* v - ether-wake, expr, false, fbset, fdflush, fdformat, fdisk, fgrep, find, flock, fold, free,3 i! ?: R; k! w8 k
- freeramdisk, fsck, fstrim, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head,7 V# R3 L5 L7 U5 ?+ J' L' u" O6 M
- hexdump, hostid, hostname, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,* K. ~0 W3 R2 e
- install, ip, ipaddr, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kill, killall,
5 B3 I7 f& M& C; M$ e: q - killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger,
! B6 N$ _2 ~& e7 l, x% i" [" j - login, logname, losetup, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzma, makedevs,, y3 r& A, ?6 a
- md5sum, mdev, mesg, microcom, mkdir, mke2fs, mkfifo, mkfs.ext2, mknod, mkswap, mktemp,
8 m" u; t6 @: k8 C- I; R - modinfo, modprobe, more, mount, mountpoint, mt, mv, nameif, nanddump, nandwrite, netstat,, o% i% i2 F3 Z3 |9 ~# x6 l+ E
- nice, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, pipe_progress, pivot_root,# l2 Z0 K: m1 m" i
- poweroff, printenv, printf, ps, pwd, rdate, readlink, readprofile, realpath, reboot,
$ y' k7 C3 c8 x' ?: x: y - renice, reset, resize, rm, rmdir, rmmod, route, run-parts, runlevel, sed, seq, setarch,8 D( T& l+ X5 C: W
- setconsole, setkeycodes, setlogcons, setserial, setsid, sh, sha1sum, sha256sum, sha3sum,
9 U. @5 p0 h4 V, h4 m - sha512sum, sleep, sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon,
2 G$ n+ ?$ w7 q, \% J - switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,
9 b, O7 |" l' b# s! E- v) I - touch, tr, traceroute, traceroute6, true, tty, ubiattach, ubidetach, ubimkvol, ubirmvol,9 ~+ z$ X2 r" \
- ubirsvol, ubiupdatevol, udhcpc, umount, uname, uniq, unix2dos, unlink, unlzma, unxz, unzip,$ x( f% `7 l' U. ~2 d. w
- uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which,1 i3 S1 s' g0 u! w+ a3 \
- who, whoami, xargs, xz, xzcat, yes, zcat! ]( I! ~+ v; X
r7 Q; K+ ~0 }9 O/ A( N- ?4 q
复制代码- root@F650A:~ # nano -h! k; e0 _+ V* o& M1 C. u/ r' A
- Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...
9 g, U. V/ D T - , v5 E! k8 k& {% }) W8 C
- Option GNU long option Meaning& v* q4 B" l3 F% \5 n
- +LINE,COLUMN Start at line LINE, column COLUMN
/ t }& g+ ]6 d, Q) q A# G8 ^ - -D --boldtext Use bold instead of reverse video text
% l: \0 Z; L. m) Q5 k& s+ F - -K --rebindkeypad Fix numeric keypad key confusion problem
% D' y) K2 S0 r9 D4 L& J - -L --nonewlines Don't add newlines to the ends of files$ j7 U F6 { `0 u
- -O --morespace Use one more line for editing
4 I4 ^5 h; l- v! g3 U - -R --restricted Restricted mode
; t T; M& J7 J: H! y - -T <#cols> --tabsize=<#cols> Set width of a tab to #cols columns
4 K' {; t. u- D - -V --version Print version information and exit
& G) G8 @' m/ n# n" H. Y - -c --const Constantly show cursor position
9 W; ^; Q( w# ? - -d --rebinddelete Fix Backspace/Delete confusion problem! }$ d: ~; r) P
- -h --help Show this help text
: _. K4 }0 b- N/ W8 ^, d: p) A/ W) Z - -l --nofollow Don't follow symbolic links, overwrite! B: y1 p% \" @6 M# q7 E% N- K4 ]
- -n --noread Do not read the file (only write it)
: V' _, z0 | F6 m- y7 ~ - -p --preserve Preserve XON (^Q) and XOFF (^S) keys3 ^" I/ N+ g1 `: _7 L
- -t --tempfile Auto save on exit, don't prompt# Y' D9 o; `5 q$ ?2 @# i6 x( W
- -v --view View mode (read-only)
/ R5 d! z- D3 B, g - -x --nohelp Don't show the two help lines
+ T$ L! Z* P0 A( C) s - -z --suspend Enable suspension. m1 A+ d( I% t9 w6 p, T9 }4 I
- root@F650A:~ # nano -V: C( P4 e) T& j$ Q- m, W, P
- GNU nano, version 2.4.21 T- `3 ?% }9 B- F
- (C) 1999..2015 Free Software Foundation, Inc.
# f/ p2 k) m+ K3 g6 w* C( u - Email: nano@nano-editor.org Web: http://www.nano-editor.org/
% N8 j, b. U6 ~2 ~1 H% S - Compiled options: --enable-tiny --disable-utf8* `: _( H3 X* d6 G2 w
复制代码- root@F650A:~ # dropbear -h
& _4 T/ m' _; x - Dropbear server v2015.67 https://matt.ucc.asn.au/dropbear/dropbear.html
+ A8 L4 J. D+ m - Usage: dropbear [options]
( s, f. l4 p4 ? - -b bannerfile Display the contents of bannerfile before user login
5 X4 \0 I* j5 `0 R o, m - (default: none)
8 z( p+ j' X- m& b* h M - -r keyfile Specify hostkeys (repeatable)# z: {8 M% z# V/ x( v* F2 ]
- defaults:
. q$ @9 p& z7 i - dss /etc/dropbear/dropbear_dss_host_key, T# |) O+ O5 P" R; m
- rsa /etc/dropbear/dropbear_rsa_host_key& ^; A0 P/ Z6 X1 x" B. V
- ecdsa /etc/dropbear/dropbear_ecdsa_host_key
2 y; T( |% D# V! ^ - -R Create hostkeys as required N) u" v$ i% k& Q3 x
- -F Don't fork into background
. _/ W" S; @8 q, x G - -E Log to stderr rather than syslog) C0 j2 p1 i9 O0 J
- -m Don't display the motd on login& a8 G. Y4 [$ A1 c
- -w Disallow root logins
# o, w) } O3 {% L w4 T* h - -s Disable password logins
8 I+ O4 u, C* e( ?0 W# r6 s - -g Disable password logins for root
- E4 M4 b' ]6 w" g! f. P) R - -B Allow blank password logins
, D7 m. C3 u" b: i - -j Disable local port forwarding9 h. u/ H$ [( j7 Y* C( T
- -k Disable remote port forwarding
7 K0 W* v4 _! K" S - -a Allow connections to forwarded ports from any host/ P! W4 @0 a, z5 d* P9 [- M
- -p [address:]port2 M4 z$ y; [) `0 }" o; C) ]
- Listen on specified tcp port (and optionally address),
+ d9 N! P) m! \( u/ i! E - up to 10 can be specified
$ w+ q& u9 H$ T, \- ?' g - (default port is 22 if none specified)
9 l0 o: W( J# U1 d" J E! Y. W6 x. | - -P PidFile Create pid file PidFile- a" L0 T& ~+ A# Q) l
- (default /var/run/dropbear.pid)4 U. B. N, [ t" T) Q( a+ b
- -i Start for inetd, E. h9 ~/ Z- J+ V o
- -W <receive_window_buffer> (default 24576, larger may be faster, max 1MB)
' V! P+ ]3 H4 |. ` - -K <keepalive> (0 is never, default 0, in seconds)$ h5 }$ \' _$ g& z7 K
- -I <idle_timeout> (0 is never, default 0, in seconds)% }- Q# |# J( B% K) O& T
- -V Version
) |1 b: A* F9 A# J# V
复制代码 3 x" J$ B8 S& r7 g
' E# D7 e8 {' U* ~( W3 j7 O |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|