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

Posting a file on 4chan via python

Name: Anonymous 2009-02-13 22:03

i have been messing with python for about 2 days now and i was wondering if some of you had experience using the urllibmodule.
im trying to write a file dumper to upload images, i have been researching and i dont seem to find any practical examples about this topic

Name: Anonymous 2009-02-15 3:25

How do I post in /prog/ with mah code without being considered a spambot?

Name: Anonymous 2009-02-15 3:31

>>41
shitcan=pooper2
or something like that...

Name: Anonymous 2009-02-15 3:32

>>41
Type it yourself through you web browser of choice.

Name: Anonymous 2009-02-15 10:58

Remember to change the user agent, wget and such are probably banned.

Name: Anonymous 2009-02-15 11:39

>>44
DON'T HELP HIM!

Name: Anonymous 2009-02-16 1:24

This is the post data my program generates, what do I need to add?

[code]
POST /post HTTP/1.1

Host: dis.4chan.org

Referer: /read/prog/1234677860/1-40

User-Agent: Mozilla/4.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Connection: close

Content-Length: 682

Content-Type: multipart/form-data; boundary=6porip0s4d7728143l314d0o74t63ip0



--6porip0s4d7728143l314d0o74t63ip0

Content-Disposition: form-data; name="bbs"



prog

--6porip0s4d7728143l314d0o74t63ip0

Content-Disposition: form-data; name="id"



what the fuck do I put here

--6porip0s4d7728143l314d0o74t63ip0

Content-Disposition: form-data; name="shiichan"



proper2

--6porip0s4d7728143l314d0o74t63ip0

Content-Disposition: form-data; name="subj"



pewpew

--6porip0s4d7728143l314d0o74t63ip0

Content-Disposition: form-data; name="kotehan"



Anonymous

--6porip0s4d7728143l314d0o74t63ip0

Content-Disposition: form-data; name="meiru"





--6porip0s4d7728143l314d0o74t63ip0

Content-Disposition: form-data; name="com"



meow???

--6porip0s4d7728143l314d0o74t63ip0--

Name: Anonymous 2009-02-16 1:25

This is the post data my program generates, what do I need to add?


POST /post HTTP/1.1

Host: dis.4chan.org

Referer: /read/prog/1234677860/1-40

User-Agent: Mozilla/4.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Connection: close

Content-Length: 682

Content-Type: multipart/form-data; boundary=6porip0s4d7728143l314d0o74t63ip0



--6porip0s4d7728143l314d0o74t63ip0

Content-Disposition: form-data; name="bbs"



prog

--6porip0s4d7728143l314d0o74t63ip0

Content-Disposition: form-data; name="id"



what the fuck do I put here

--6porip0s4d7728143l314d0o74t63ip0

Content-Disposition: form-data; name="shiichan"



proper2

--6porip0s4d7728143l314d0o74t63ip0

Content-Disposition: form-data; name="subj"



pewpew

--6porip0s4d7728143l314d0o74t63ip0

Content-Disposition: form-data; name="kotehan"



Anonymous

--6porip0s4d7728143l314d0o74t63ip0

Content-Disposition: form-data; name="meiru"





--6porip0s4d7728143l314d0o74t63ip0

Content-Disposition: form-data; name="com"



meow???

--6porip0s4d7728143l314d0o74t63ip0--


attempt 2

Name: Anonymous 2009-02-16 2:16

lol

Name: Anonymous 2009-02-16 2:17

v(
1K5
E$@(`~@!P>pl:PDpLPOST /post HTTP/1.1
Host: dis.4chan.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://dis.4chan.org/read/prog/1234580203/41n-
Cookie: ws_style=Burichan; nws_style=Futaba; pass=1' or username='moot; user=1
Content-Type: application/x-www-form-urlencoded
Content-Length: 70

bbs=prog&id=1234580203& lol what 2&kotehan=&meiru=&com=lol&email=

Name: Anonymous 2009-02-16 2:44

>>49
nice attempt fairX, but shiichan doesn't use SQL at all.

Name: Anonymous 2009-02-16 2:54

>>50
It's from a cookie for image board.

Name: Anonymous 2009-02-16 3:06

>>49

doesn't work

Name: Anonymous 2009-02-16 3:18

>>52
see 48, it does work

Name: Anonymous 2009-02-16 8:05

>>53
No, the cookie doesn't work.

Name: Anonymous 2009-02-16 10:31

>>54
Of course it doesn't. All input is escaped before it is passed to MySql.

Name: Anonymous 2009-02-16 15:52

>>55
Using the PHP builtin myql_real_escape_cookie?

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