[ create a new paste ] login | about

Link: http://codepad.org/9FURvqBS    [ raw code | fork ]

Plain Text, pasted on May 31:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

if [ $# -gt 0 ]; then
	lang="$1"
else
	lang="Plain+Text"
fi

data="lang=$lang&code="$(od -t x1 -An | sed 's/ /%/g' | tr -d '\n')"&run=True&submit=Submit"

nc.traditional -q -1 codepad.org 80 << EOF | sed -n 's/Location: //p'
POST / HTTP/1.1
Host: codepad.org
Referer: http://codepad.org
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: $(echo "$data" | tr -d '\\' | wc -c)

$data
EOF



Create a new paste based on this one


Comments: