Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

wget question

Name: Anonymous 2006-12-05 21:23

If I want to post an image on 4chan from console only, how would I go about doing it with wget?

wget --post-data="MAX_FILE_SIZE=somenumber&resto=threadnumber&name=whatever&email=whatever&com=somecomment&upfile=(i don't know what to put here)&pwd=whatever&mode=regist" http://cgi.4chan.org/s/imgboard.php

...is what I have.  I'm not sure how to write the file location in there.

If I just write:

/home/me/file.jpg

It sends back an Updating page... and the image doesn't show up.  What am I doing wrong?

Name: Anonymous 2006-12-05 21:46

wget is, like, blocked and stuff. For good reason too.

Name: Anonymous 2006-12-05 21:51

What if I change the referrer and user agent?

Name: Anonymous 2006-12-05 21:55

>>3
duh. it will work.

Name: Anonymous 2006-12-05 22:13

wget --post-data="MAX_FILE_SIZE=2097152&resto=759155&name=&email=&sub=&com=yummy&upfile=/home/me/Porn/Pictures/kc.jpg&pwd=lolno&mode=regist" --keep-session-cookies --referer="http://cgi.4chan.org/s/759155.html"; --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20060601 Firefox/2.0 (Ubuntu-edgy)" http://cgi.4chan.org/s/imgboard.php

did not work :(

Name: Anonymous 2006-12-06 2:46 (sage)

What do you want to do this for?

Name: Anonymous 2006-12-06 10:22

>>7
For flooding, obviously

Name: Anonymous 2006-12-06 10:59

--post-file=xxx maybe?

Name: Anonymous 2006-12-06 11:15

lol 4chan censorship

Name: Anonymous 2006-12-06 11:15

where is post 6

HOW COULD WORDS BE DANGEROUS

Name: Anonymous 2006-12-06 11:15

>>6
lol your script is GPL

Name: Anonymous 2006-12-06 12:22 (sage)

>>11

It was deleted to spare him the embarassment of realizing that his stupid script doesn't work.

Don't change these.
Name: Email:
Entire Thread Thread List