Name: Anonymous 2012-12-20 3:33
What did I do wrong?
I'm pretty sure I copied Firefox's output correctly.
Yes, I am fully aware this is pathetic.
I'm pretty sure I copied Firefox's output correctly.
#!/bin/sh
POSTID=1355016238
NAME=%20
EMAIL=sage
COMMENT=%20%0D%0A
STR="bbs=prog&id=$POSTID&shii[spoiler]t[/spoiler]chan=pro[u]p[/u]er2&kot[b]e[/b]han=$NAME&me[i]i[/i]ru=$EMAIL&com=$COMMENT&email=%27"
STRLEN="$(echo \"$STR\" | wc -c)"
STRLEN=88
{
echo -n "POST /post HTTP/1.1\r\n"
echo -n "Host: dis.4chan.org:80\r\n"
# echo -n "User-Agent: netcat\r\n"
echo -n "Referer: http://dis.4chan.org/read/prog/$;POSTID\r\n"
echo -n "Content-Type: application/x-www-form-urlencoded\r\n"
echo -n "Content-Length: $STRLEN\r\n"
echo -n "\r\n"
echo -n "$STR\r\n"
} | nc dis.4chan.org 80Yes, I am fully aware this is pathetic.