Curl
cUrl is a command-line http client, similar to wget. When invoked with a URL, it downloads the file and prints it to standard out. It can be used as a simple download manager like so:
curl url_of_file_to_download > filename.whatever Unlike wget, curl cannot do recursion. However, it works better for submitting forms, which makes it perfect for spamming forums and blogs.
First, we must find the names of the fields to submit. We could examine the HTML source ourselves, and find the relevant FORM block. However, that can be pretty difficult. For example, /b/'s FORM has several Javascript functions embedded in it. An easier method is to use the formfind.pl script to do it for us. Formfind greps through the html to find any html forms.
Example $ curl -x localhost:3128 -A Mozilla/4.0 img.4chan.org/b/ | formfind.pl | head -n 12 --- FORM report. Uses POST to URL "http://dat.4chan.org/b/imgboard.php" --- type: multipart form upload [use -F] Input: NAME="MAX_FILE_SIZE" VALUE="1572864" (HIDDEN) Input: NAME="name" (HIDDEN) Input: NAME="sub" (HIDDEN) Input: NAME="email" (TEXT) Button: "Submit" (SUBMIT) Textarea: NAME="com" Input: NAME="upfile" (FILE) Input: NAME="pwd" (PASSWORD) Input: NAME="mode" VALUE="regist" (HIDDEN) --- end of FORM
-x tells curl to use the proxy localhost:3128 and -A specifies the user agent. We pipe it to formfind, and only view the top of the output. This tells us sever al things: It tells us the names of the fields. It tells us that this form uses multipart-encoded POST to submit the form. If it used GET instead, we would need to append ampersand delimited key/value pairs to the end of the URL. It tells us what URL to POST to. In this case, it is "http://dat.4chan.org/b/imgboard.php"
So, we run the following:
curl -x localhost:3128 -A Mozilla/4.0 -F "email=noko" \ -F "com=testtesttest" -F "upfile=@.4chan/funny/1194718640468.png" \ -F "pwd=xx" -F "mode=regist" http://dat.4chan.org/b/imgboard.php
-F specifies a key/value pair to POST. We don't need to fill out the empty hidden fields, but we do need to carry over the "mode" field. The "at" symbol before ".4chan" specifies that curl should take its input for that field from the filename following the "at".
One could then wrap this in a loop to get it to repeat. One could also launch several processes, for maximum raep.
comment2, <a href="http://www.oaktreephoto.co.uk/gallery-old2/mat/tes_.html">tamarind paste recipe tamarind paste</a>, [url="http://www.oaktreephoto.co.uk/gallery-old2/mat/tes_.html"]tamarind paste recipe tamarind paste[/url], http://www.oaktreephoto.co.uk/gallery-old2/mat/tes_.html tamarind paste recipe tamarind paste, 8-[[, <a href="http://www.cristinagonzalez.com/index_1Side1.html">milo recipes</a>, [url="http://www.cristinagonzalez.com/index_1Side1.html"]milo recipes[/url], http://www.cristinagonzalez.com/index_1Side1.html milo recipes, ttnq, <a href="http://angelacappetta.com/thumbs2/_portfolio2.html">prime rib restaraunt recipe</a>, [url="http://angelacappetta.com/thumbs2/_portfolio2.html"]prime rib restaraunt recipe[/url], http://angelacappetta.com/thumbs2/_portfolio2.html prime rib restaraunt recipe, orl, <a href="http://patrickpainter.com/GroupShows/200401-editions/inde_x.html">pseudomonas aeruginosa litmus milk</a>, [url="http://patrickpainter.com/GroupShows/200401-editions/inde_x.html"]pseudomonas aeruginosa litmus milk[/url], http://patrickpainter.com/GroupShows/200401-editions/inde_x.html pseudomonas aeruginosa litmus milk, mrpxpa, <a href="http://bustinballs.com/shop/docs/_4.html">thomas kincaid downloads</a>, [url="http://bustinballs.com/shop/docs/_4.html"]thomas kincaid downloads[/url], http://bustinballs.com/shop/docs/_4.html thomas kincaid downloads, 1940, <a href="http://www.pwpde.com/quest/Q&Aholloweendetails[1].html">purina fancy feast cat food recall</a>, [url="http://www.pwpde.com/quest/Q&Aholloweendetails[1].html"]purina fancy feast cat food recall[/url], http://www.pwpde.com/quest/Q&Aholloweendetails[1].html purina fancy feast cat food recall, 54148, <a href="http://www.wisepet.com/top10books/Templates/_img/kyolic_garlic6.html">roland edirol vsc dxi</a>, [url="http://www.wisepet.com/top10books/Templates/_img/kyolic_garlic6.html"]roland edirol vsc dxi[/url], http://www.wisepet.com/top10books/Templates/_img/kyolic_garlic6.html roland edirol vsc dxi, qssuh, <a href="http://bushbooks.com/forums/docs/func_ions.html">ruth langsford pictures</a>, [url="http://bushbooks.com/forums/docs/func_ions.html"]ruth langsford pictures[/url], http://bushbooks.com/forums/docs/func_ions.html ruth langsford pictures, dwbznt, <a href="http://bushbooks.com/forums/docs/4recform.html">antenna pole mast</a>, [url="http://bushbooks.com/forums/docs/4recform.html"]antenna pole mast[/url], http://bushbooks.com/forums/docs/4recform.html antenna pole mast, 8-(, <a href="http://mdarochacpa.com/2008_tools/_img/form__sent_error.html">todo sobre quimica</a>, [url="http://mdarochacpa.com/2008_tools/_img/form__sent_error.html"]todo sobre quimica[/url], http://mdarochacpa.com/2008_tools/_img/form__sent_error.html todo sobre quimica, qxuhs, <a href="http://www.compost-bin.org/basement-waterproofing-tips.com/upgrad_e.html">el paso texas swingers</a>, [url="http://www.compost-bin.org/basement-waterproofing-tips.com/upgrad_e.html"]el paso texas swingers[/url], http://www.compost-bin.org/basement-waterproofing-tips.com/upgrad_e.html el paso texas swingers, =D, <a href="http://www.shimoda-atlantic.com/BB/language/1Terms.html">coquille st jacques recipe</a>, [url="http://www.shimoda-atlantic.com/BB/language/1Terms.html"]coquille st jacques recipe[/url], http://www.shimoda-atlantic.com/BB/language/1Terms.html coquille st jacques recipe, lpxi, <a href="http://totalhrm.com/goodies/PageLayout/_img/solution_s.html">video chistoso</a>, [url="http://totalhrm.com/goodies/PageLayout/_img/solution_s.html"]video chistoso[/url], http://totalhrm.com/goodies/PageLayout/_img/solution_s.html video chistoso, mbl, <a href="http://www.oleandersolutions.com/surveys/__sdlicense.html">http://www.oleandersolutions.com/surveys/__sdlicense.html</a>, [url="http://www.oleandersolutions.com/surveys/__sdlicense.html"]http://www.oleandersolutions.com/surveys/__sdlicense.html[/url], http://www.oleandersolutions.com/surveys/__sdlicense.html http://www.oleandersolutions.com/surveys/__sdlicense.html, 99521, <a href="http://resellershops.com/includes/_data/D_tePicker.html">uses of logarithms in cooking</a>, [url="http://resellershops.com/includes/_data/D_tePicker.html"]uses of logarithms in cooking[/url], http://resellershops.com/includes/_data/D_tePicker.html uses of logarithms in cooking, 869738, <a href="http://arcrystalmine.com/CTS/_contact.html">cargill stock symbol</a>, [url="http://arcrystalmine.com/CTS/_contact.html"]cargill stock symbol[/url], http://arcrystalmine.com/CTS/_contact.html cargill stock symbol, 2270, <a href="http://www.svba.org/newattorney_.html">argyle motorsports edmonton</a>, [url="http://www.svba.org/newattorney_.html"]argyle motorsports edmonton[/url], http://www.svba.org/newattorney_.html argyle motorsports edmonton, 804640, <a href="http://www.mbhooverphoto.com/d_efault.html">mercury outboard 115 hp spark plug</a>, [url="http://www.mbhooverphoto.com/d_efault.html"]mercury outboard 115 hp spark plug[/url], http://www.mbhooverphoto.com/d_efault.html mercury outboard 115 hp spark plug, oif, <a href="http://www.wisepet.com/inkjets/internet2.htm">christmas cookie recipes betty crocker</a>, [url="http://www.wisepet.com/inkjets/internet2.htm"]christmas cookie recipes betty crocker[/url], http://www.wisepet.com/inkjets/internet2.htm christmas cookie recipes betty crocker, %-((, <a href="http://www.surflets.net/adjustables/ssi/inde_x.html">roof top bandit</a>, [url="http://www.surflets.net/adjustables/ssi/inde_x.html"]roof top bandit[/url], http://www.surflets.net/adjustables/ssi/inde_x.html roof top bandit, unob, <a href="http://synyard.net/ebark_mockup/0ebarkcontact.html">golden dually</a>, [url="http://synyard.net/ebark_mockup/0ebarkcontact.html"]golden dually[/url], http://synyard.net/ebark_mockup/0ebarkcontact.html golden dually, :-[[[, <a href="http://www.oleandersolutions.com/surveys/lang/_images/readabi_litystudio.html">top 10 cupcake recipes</a>, [url="http://www.oleandersolutions.com/surveys/lang/_images/readabi_litystudio.html"]top 10 cupcake recipes[/url], http://www.oleandersolutions.com/surveys/lang/_images/readabi_litystudio.html top 10 cupcake recipes, 691054,