Posting on messageboards (16)

1 Name: #!/usr/bin/anonymous : 2008-11-16 07:35 ID:TZY5UESl

Posting on forums is relatively easy on most languages, but I can't figure out for the life of me how to post on imageboards (not messageboards) using either Java or C++.

Anyone know how? Not looking for full code, just a general idea of how to do it.

2 Name: #!/usr/bin/anonymous : 2008-11-16 16:24 ID:Heaven

all you need to do is send form data in an http post request, just like posting on any other board...

3 Name: #!/usr/bin/anonymous : 2008-11-17 12:50 ID:/mL1e/l8

wireshark is the answer

4 Name: #!/usr/bin/anonymous : 2008-11-17 13:32 ID:Heaven

>>3 No it isn't.

>I can't figure out for the life of me how to post on imageboards (not messageboards) using either Java or C++.
Same way you program in any other language. RTFM. A 2min google search will lead you to URLConnection and HTTPClient for Java. As for C++ there is probably something similar, if not you can always use sockets library.

5 Name: #!/usr/bin/anonymous : 2008-11-18 01:08 ID:Heaven

>>4
cURLpp or plain libcurl for C++.

6 Name: #!/usr/bin/anonymous : 2008-11-18 11:23 ID:TAiZQ9Vh

>>1
If the person running the board did not provide an API for automated posting, the you probably shouldn't be doing that anyways.

7 Name: #!/usr/bin/anonymous : 2008-11-19 15:45 ID:Heaven

>>6
http does not provide a way to maintain state across requests, you probably shouldn't be using cookies or URL encoding anyway.

8 Name: #!/usr/bin/anonymous : 2008-11-21 02:56 ID:XaQWPdkI

>>6 They did, it's called http

9 Name: #!/usr/bin/anonymous : 2008-11-21 10:04 ID:W0A9fS1U

  1. research what browser did to that imageboard.
  2. emulate to the act by java or c++.

10 Name: #!/usr/bin/anonymous : 2008-11-24 02:48 ID:L2eQdBIL

POST

11 Name: #!/usr/bin/anonymous : 2008-11-28 07:23 ID:xahuN7HZ

what i usually do is i save a local copy of the form or use some sort of browser extension that let's me modify the page source, opera let's you do this

then i modify action so it submits to localhost:8080 then i listen with nc -k -l 8080 and save what the form outputs and recreate this in my own program

12 Name: #!/usr/bin/anonymous : 2008-11-28 10:03 ID:Heaven

>>11
or you could, you know, do it the easy way and just read the HTTP and HTML specs.

13 Name: #!/usr/bin/anonymous : 2008-11-28 11:41 ID:xahuN7HZ

reading html specs will get you nowhere if you don't know what the form submits

15 Name: #!/usr/bin/anonymous : 2008-12-02 07:11 ID:AP7ziaI/

1: right click
2: view page source
3: copy the typed stuff
4: paste into your text editor or whatever
5: mess with it so that it is yours
6: sit back and watch the sunset

16 Name: #!/usr/bin/anonymous : 2008-12-04 20:08 ID:5m5F9b2v

>>14
i guess >>13 means like input field names and stuff.
but yeah, you could just copy paste the part of the source where <form...> is and change it in a new editor like >>15 said.

This thread has been closed. You cannot post in this thread any longer.