shell.cgi 250 Bytes
Newer Older
Michel Roelofs's avatar
Michel Roelofs committed
1
#!/bin/bash
Jeroen Vreeken's avatar
Jeroen Vreeken committed
2
3
4
5
6
7
8
9
10
11
12

SHELLHOST="localhost"
#SHELLHOST="192.168.204.20"
SHELLPORT="11100"

echo "Content-type: text/plain"
echo "Cache-Control: no-cache"
echo "Pragma: no-cache"
echo

(cat ; echo ; echo "quit" ; sleep 1) > /dev/tcp/${SHELLHOST}/${SHELLPORT}