Advertisement
Guest User

blargh

a guest
Jan 4th, 2010
1,454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 31.83 KB | None | 0 0
  1. #!/bin/bash
  2. banner="
  3.                                                  _
  4.                                                 | |
  5.                        _ __ __ _ _ __  ___   ___| |_
  6.                       | '_ / _´ | '_ \/ _ \ / __| , \`.
  7.                       | | | (_| | |_)   __/_\__ \ || |
  8.                       |_|  \__,_| ,__/\___(_)___/_||_|
  9.                                 |_|
  10.                                      -v 5 (13/8/07)
  11.  
  12. "
  13.  
  14. #rape the spamscript, you may use this file for any and all purposes
  15. #nobody can be held responsible for your use of this file
  16. #if you disagree with this text then good day to you sir
  17.  
  18. #description: shitty script to automate tasks on gay little wapanese boards
  19.  
  20. #depends on; curl, bash
  21.  
  22. #usage; chmod +x rape.sh; edit vars then ./run it
  23.  
  24. #direct bugreports, spam, etc to win32blows@gmail.com
  25. #http://freewebs.com/fukkensaved/  lol freewebs
  26.  
  27. #changelog;
  28. # 11/8/07 - hello world
  29. # 11/8/07 - added random thread reply
  30. # 12/8/07 - bugfixes
  31. # 12/8/07 - field too long message added
  32. # 12/8/07 - bugfixes
  33. # 13/8/07 (trellis' mod)
  34. #     - read -e
  35. #         - imgcount fix
  36. #         - now spamming multiple arbitrary threads
  37. # 13/8/07 - added 420chan and wtfux
  38.  
  39. #####
  40. ## vars - change me
  41. #####
  42. useragent="Mozilla/5.0"
  43. PWD=changeme #$RANDOM for random
  44. SLEEP=10  #secs to wait until next post attempt
  45. COMMENT="
  46.  
  47. "       #multiline comments supported
  48.  
  49. #####
  50. ## no real need to change this
  51. #####
  52. NUM=1
  53. BUMP=1
  54. UNIQUE=""
  55. timeout=15
  56. reed="read -e"
  57.  
  58. clear;echo "$banner"
  59. #####
  60. ## this shit below is the default configs for the most popular chans
  61. ## shit may change, kikemods may create wordfilters to ban your scripting ass forever, so stay vigilant
  62. #####
  63.  
  64. #################################################
  65. ###############4chan works Thu 9/8/07############
  66. #################################################
  67. fourchan(){
  68. clear; echo "$banner"
  69.      echo  "                           ________________________
  70.  
  71.                                  4chan menu
  72.                           ________________________
  73. "
  74. echo "Choose a board > "
  75. echo -n " (a,b,c,d,e,f,g,gif,h,hr,k,m,o,p,r,s,t,u,v,w,
  76.  wg,i,ic,cm,y,an,cgl,ck,co,mu,n,po,tg,tv,x): " ; $reed iboard ; echo "";
  77. case "$iboard" in
  78.    b)
  79.         iserver="img"
  80.         pserver="dat"
  81.         post="imgboard.php"
  82.         ;;
  83.    a|c|g|k|m|o|p|v|w|cm|an|ck|co|mu|po|tg|tv|x)
  84.         iserver="zip"
  85.         pserver="bin"
  86.         post="imgboard.php"
  87.         ;;
  88.    d|e|hr|u|wg|y|cgl|n)
  89.         iserver="orz"
  90.         pserver="tmp"
  91.         post="imgboard.php"
  92.         ;;
  93.    f)
  94.         iserver="cgi"
  95.         pserver="nov"
  96.         post="up.php"
  97.         ;;
  98.    gif|h|r|s|t|i|ic)
  99.         iserver="cgi"
  100.         pserver="nov"
  101.         post="imgboard.php"
  102.         ;;
  103.    *)
  104.         fourchan
  105.         ;;
  106. esac
  107. ##################
  108. BOARD="http://$pserver.4chan.org/$iboard/$post"
  109. ##################
  110. echo -n "Rapemode>
  111. (file/dump/random/count): "; $reed rape; echo ""
  112. case "$rape" in
  113. file|fil|fi|f)
  114.         echo "Select file to spam with>"; echo -n " (eg. /home/user/pic.jpg): "; $reed IMAGE
  115.          if [ ! -e "$IMAGE" ]
  116.            then
  117.            echo ""; echo -n " "; echo -n "$IMAGE does not exist..."; sleep 1; fourchan
  118.          fi
  119.         echo ""; echo " image: $(ls -sh $IMAGE) selected...̈́" ; echo ""
  120.         echo "Name>"; echo -n " (leave blank for none): "; $reed NAME; echo ""
  121.         echo "Email>"; echo -n " (leave blank for none): "; $reed EMAIL; echo ""
  122.         echo "Subject>"; echo -n " (leave blank for none): "; $reed SUB; echo ""
  123.         echo "URL of thread(s)>"; echo -n " (eg. 1993711 1993711 or blank for new threads): "; $reed URL ;echo ""
  124.  
  125.         while true
  126.         do
  127.         for url in $URL
  128.         do
  129.         echo -n "." >> $IMAGE
  130.         echo [$NUM] [$IMAGE - $PWD] ; echo ""  ; echo -n " >> "
  131.         curl -s -S -A $useragent --max-time $timeout --max-filesize 3145728 -F "resto=$url" -F "name=$NAME" -F "email=$EMAIL" -F "sub=$SUB" -F "com=$COMMENT"  -F "upfile=@$IMAGE" -F "pwd=$PWD" -F "mode=regist" -F "submit=submit" $BOARD | awk '/Updating page./ {print "Successfully uploaded!"} /Error: Duplicate file entry detected./ {print "Duplicate."} /Error: Flood detected./ {print "Flood detected."} /Max limit of/ {print "Max limit reached."} /Abnormal reply/ {print "Oh fuck."} /Error: No file selected./ {print "No file selected."} /Error: Cannot find record./ {print "Cannot find record."} /Error: No text entered./ {print "No text entered."} /Thread specified does not exist./ {print "Thread does not exist."}  /404 - Not Found/ {print "404 - Not found."} /You are banned ;_;/ {print "Banned."} /Error: Field too long./ {print "Field too long."}'
  132.         let "NUM += 1"
  133.         echo ""; echo " * Waiting $SLEEP seconds..."; echo ""
  134.         #let "SLEEP = SLEEP + $RANDOM % 5"  #im not a script, srsly u guise lolol
  135.         sleep $SLEEP
  136.         done
  137.         done
  138.         echo " Done."
  139.         ;;
  140. dump|dum|du|d)
  141.         echo "Select dir(s) to dump>"; echo -n " (eg. /home/user/pics/* /home/user/gay/*): "; $reed FILES ; echo ""
  142.     echo "$(ls -shd $FILES)"; echo ""
  143.         echo "Name>"; echo -n " (leave blank for none): "; $reed NAME; echo ""
  144.         echo "Email>"; echo -n " (leave blank for none): "; $reed EMAIL; echo ""
  145.         echo "Subject>"; echo -n " (leave blank for none): "; $reed SUB; echo ""
  146.         echo "URL of thread>"; echo -n " (eg. 1993711 or blank for new threads): "; $reed URL ;echo ""
  147.         for file in $FILES
  148.         do
  149.          if [ ! -e "$file" ]
  150.           then
  151.           echo ""; echo " * $file does not exist."
  152.           continue
  153.          fi
  154.          if [ -d "$file" ]
  155.           then
  156.           echo ""; echo " * $file is a folder."
  157.           continue
  158.          fi
  159.         echo ""; echo "[$NUM] [" $(ls -sphd "$file") $(echo "$URL - $BOARD]")  ; echo ""  ; echo -n " >> "
  160.         curl -s -S -A $useragent --max-time $timeout --max-filesize 3145728 -F "resto=$URL" -F "name=$NAME" -F "email=$EMAIL" -F "sub=$SUB" -F "com=$COMMENT" -F "upfile=@$file" -F "pwd=$PWD" -F "mode=regist" -F "submit=submit" $BOARD | awk '/Updating page./ {print "Successfully uploaded!"} /Error: Duplicate file entry detected./ {print "Duplicate."} /Error: Flood detected./ {print "Flood detected."} /Max limit of/ {print "Max limit reached."} /Abnormal reply/ {print "Abnormal reply."} /Error: No file selected./ {print "No file selected."} /Error: Cannot find record./ {print "Cannot find record."} /Error: No text entered./ {print "No text entered."} /404 - Not Found/ {print "404 - Not found."} /You are banned ;_;/ {print "Banned."} /Error: Field too long./ {print "Field too long."}'
  161.         let "NUM += 1"
  162.         echo ""; echo " * Waiting $SLEEP seconds..."
  163.         sleep $SLEEP
  164.         continue
  165.         done
  166.         ;;
  167. random|rando|rand|ran|ra|r)
  168.         echo "Select file to spam random threads>"; echo -n " (eg. /home/user/pic.jpg): "; $reed IMAGE
  169.          if [ ! -e "$IMAGE" ]
  170.            then
  171.            echo ""; echo -n " "; echo -n "$IMAGE does not exist..."; sleep 1; fourchan
  172.          fi
  173.         echo ""; echo " image: $(ls -sh $IMAGE) selected..."; echo ""
  174.         echo "Name>"; echo -n " (leave blank for none): "; $reed NAME; echo ""
  175.         echo "Email>"; echo -n " (leave blank for none): "; $reed EMAIL; echo ""
  176.         echo "Subject>"; echo -n " (leave blank for none): "; $reed SUB; echo ""
  177.         while true
  178.         do
  179.         URL=$(curl -s -S -A $useragent "http://$iserver.4chan.org/$iboard/imgboard.html" | grep '<span class="postername">'|(read x x x b x x x x x x x; echo $b|sed s/....$//|sed 1s/^............//) )
  180.         echo -n "." >> $IMAGE
  181.         echo [$NUM] [$IMAGE - $PWD - $URL]  ; echo ""  ; echo -n " >> "
  182.         curl -s -S -A $useragent --max-time $timeout --max-filesize 3145728 -F "resto=$URL" -F "name=$NAME" -F "email=$EMAIL" -F "sub=$SUB" -F "com=$COMMENT"  -F "upfile=@$IMAGE" -F "pwd=$PWD" -F "mode=regist" -F "submit=submit" $BOARD | awk '/Updating page./ {print "Successfully uploaded!"} /Error: Duplicate file entry detected./ {print "Duplicate."} /Error: Flood detected./ {print "Flood detected."} /Max limit of/ {print "Max limit reached."} /Abnormal reply/ {print "Oh fuck."} /Error: No file selected./ {print "No file selected."} /Error: Cannot find record./ {print "Cannot find record."} /Error: No text entered./ {print "No text entered."} /Thread specified does not exist./ {print "Thread does not exist."}  /404 - Not Found/ {print "404 - Not found."} /You are banned ;_;/ {print "Banned."} /Error: Field too long./ {print "Field too long."}'
  183.         let "NUM += 1"
  184.         echo ""; echo " * Waiting $SLEEP seconds..."; echo ""
  185.         #let "SLEEP = SLEEP + $RANDOM % 5"  #im not a script, srsly u guise lolol
  186.         sleep $SLEEP
  187.         done
  188.         ;;
  189. count|coun|cou|co|c)
  190.         echo "Select thread(s) to count images>" ; echo -n " (eg. 111941 112013 112151): " ; $reed threads; echo ""
  191.         while true; do
  192.         for thread in $threads; do
  193.         echo ""; echo "                               images in $CHAN's /$iboard/ $thread"
  194.         echo "________________________________________________________________________________________________________,"
  195.         echo "   5|  10|  15|  20|  25|  30|  35|  40|  45|  50|  55|  60|  65|  70|  75|  80|  85|  90|  95| 100| 105|"
  196. ##################
  197. HTML="http://$iserver.4chan.org/$iboard/res/$thread.html"
  198. ##################
  199.         curl -s -A $useragent --max-time $timeout $HTML | awk '/File :/ {printf "|"}'
  200.         sleep 1;
  201.         done
  202.         done
  203.         ;;
  204. *)
  205.         fourchan
  206.         ;;
  207. esac
  208. }
  209. #################################################
  210. ################ end of 4chan() #################
  211. #################################################
  212.  
  213.  
  214.  
  215. #################################################
  216. ###############7chan works Thu 9/8/07############
  217. #########except the boards with captchas#########
  218. #################################################
  219. sevenchan(){
  220. clear; echo "$banner"
  221.      echo  "                           ________________________  
  222.                                                    
  223.                                  7chan menu        
  224.                           ________________________  
  225. "
  226. echo "Choose a board > "
  227. echo -n " (a,b,c,d,e,f,g,gif,h,hr,k,m,o,p,r,s,t,u,v,w,
  228.  wg,i,ic,cm,y,an,cgl,ck,co,mu,n,po,tg,tv,x): " ; $reed iboard ; echo "";
  229. case "$iboard" in
  230.    cake|d|di|fn|fur|gu|men|s|sm|ss|u|y)
  231.         iserver="fap"
  232.         pserver="fap"
  233.         post="board.php"
  234.         ;;
  235.    34|b|rx|fail|fl|gif|r|svg|t|vid|w|wp|x|zom|be|jb|pco)
  236.         iserver="img"
  237.         pserver="img"
  238.         post="board.php"
  239.         ;;
  240.    a|ani|cat|cf|g|halp|lit|me|tech|vg)
  241.         iserver="sfw"
  242.         pserver="sfw"
  243.         post="board.php"
  244.         ;;
  245.    co|fit|oe|pr)
  246.         iserver="lol"
  247.         pserver="lol"
  248.         post="board.php"
  249.         ;;
  250.    *)
  251.         sevenchan
  252.         ;;
  253. esac
  254.  
  255. ##################
  256. BOARD="http://$pserver.7chan.org/$post"
  257. ##################
  258. echo -n "Rapemode>
  259. (file/dump/count): "; $reed rape; echo ""
  260. case "$rape" in
  261. file|fil|fi|f)
  262.         echo "Select file to spam with>"; echo -n " (eg. /home/user/pic.jpg): "; $reed IMAGE
  263.          if [ ! -e "$IMAGE" ]
  264.            then
  265.            echo ""; echo -n " "; echo -n "$IMAGE does not exist..."; sleep 1; sevenchan
  266.          fi
  267.         echo ""; echo " image: $(ls -sh $IMAGE) selected..."; echo ""
  268.         echo "Name>"; echo -n " (leave blank for none): "; $reed NAME; echo ""
  269.         echo "Email>"; echo -n " (leave blank for none): "; $reed EMAIL; echo ""
  270.         echo "Subject>"; echo -n " (leave blank for none): "; $reed SUB; echo ""
  271.         echo "URL of thread(s)>"; echo -n " (eg. 1993711 123345 or 0 for new threads): "; $reed URL ;echo ""
  272.         while true
  273.         do
  274.         for url in $URL
  275.         do
  276.         echo -n "." >> $IMAGE
  277.         echo [$NUM] [$IMAGE - $PWD] ; echo ""  ; echo -n " >> "
  278.         curl -s -S -A $useragent --max-time $timeout --max-filesize 3145728 -F "board=$iboard" -F "replythread=$url" -F "name=$NAME" -F "em=$EMAIL" -F "subject=$SUB"  -F "message=$COMMENT" -F "imagefile=@$IMAGE" -F "postpassword=$PWD"  $BOARD | awk '/Updating page./ {print "Successfully uploaded!"} /Error: Duplicate file entry detected./ {print "Duplicate."} /Error: Flood detected./ {print "Flood detected."} /Max limit of/ {print "Max limit reached."} /Abnormal reply/ {print "Abnormal reply."} /Error: No file selected./ {print "No file selected."} /Error: Cannot find record./ {print "Cannot find record."} /Error: No text entered./ {print "No text entered."} /404 - Not Found/ {print "404 - Not found."} /<title>YOU ARE BANNED!/ {print "Banned."} /Error: Field too long./ {print "Field too long."}'
  279.         let "NUM += 1"
  280.         echo ""; echo " * Waiting $SLEEP seconds..."; echo ""
  281.         #let "SLEEP = SLEEP + $RANDOM % 5"  #im not a script, srsly u guise lolol
  282.         sleep $SLEEP
  283.         done
  284.     done
  285.         echo " Done."
  286.         ;;
  287. dump|dum|du|d)
  288.         echo "Select dir(s) to dump>"; echo -n " (eg. /home/user/pics/* /home/user/gay/*): "; $reed FILES ; echo ""
  289.     echo "$(ls -shd $FILES)"; echo ""
  290.         echo "Name>"; echo -n " (leave blank for none): "; $reed NAME; echo ""
  291.         echo "Email>"; echo -n " (leave blank for none): "; $reed EMAIL; echo ""
  292.         echo "Subject>"; echo -n " (leave blank for none): "; $reed SUB; echo ""
  293.         echo "URL of thread>"; echo -n " (eg. 1993711 or 0 for new threads): "; $reed URL ;echo ""
  294.         for file in $FILES
  295.         do
  296.          if [ ! -e "$file" ]
  297.           then
  298.           echo ""; echo " * $file does not exist."
  299.           continue
  300.          fi
  301.          if [ -d "$file" ]
  302.           then
  303.           echo ""; echo " * $file is a folder."
  304.           continue
  305.          fi
  306.         echo ""; echo "[$NUM] [" $(ls -sphd "$file") $(echo "$URL]") ; echo ""  ; echo -n " >> "
  307.         curl -s -S -A $useragent --max-time $timeout --max-filesize 3145728 -F "board=$iboard" -F "replythread=$URL" -F "name=$NAME" -F "em=$EMAIL" -F "subject=$SUB"  -F "message=$COMMENT" -F "imagefile=@$file" -F "postpassword=$PWD"  $BOARD | awk '/Updating page./ {print "Successfully uploaded!"} /Error: Duplicate file entry detected./ {print "Duplicate."} /Error: Flood detected./ {print "Flood detected."} /Max limit of/ {print "Max limit reached."} /Abnormal reply/ {print "Abnormal reply."} /Error: No file selected./ {print "No file selected."} /Error: Cannot find record./ {print "Cannot find record."} /Error: No text entered./ {print "No text entered."} /404 - Not Found/ {print "404 - Not found."} /<title>YOU ARE BANNED!/ {print "Banned."} /Error: Field too long./ {print "Field too long."}'
  308.         let "NUM += 1"
  309.         echo ""; echo " * Waiting $SLEEP seconds..."
  310.         sleep $SLEEP
  311.         continue
  312.         done
  313.         ;;
  314. count|coun|cou|co|c)
  315.         echo "Select thread(s) to count images>" ; echo -n " (eg. 111941 112013 112151): " ; $reed threads; echo ""
  316.         while true; do
  317.         for thread in $threads; do
  318.         echo ""; echo "                               images in $CHAN's /$iboard/ $thread"
  319.         echo "________________________________________________________________________________________________________,"
  320.         echo "   5|  10|  15|  20|  25|  30|  35|  40|  45|  50|  55|  60|  65|  70|  75|  80|  85|  90|  95| 100| 105|"
  321. ##################
  322. HTML="http://$iserver.7chan.org/$iboard/res/$thread.html"
  323. ##################
  324.         curl -s -A $useragent --max-time $timeout $HTML | awk '/File :/ {printf "|"}'
  325.         sleep 1;
  326.         done
  327.         done
  328.         ;;
  329. *)
  330.         sevenchan
  331.         ;;
  332. esac
  333. }
  334. #################################################
  335. ################ end of 7chan() #################
  336. #################################################
  337.  
  338.  
  339. #################################################
  340. #############420chan works Thu 13/8/07###########
  341. #################################################
  342. boringchan(){
  343. clear; echo "$banner"
  344.      echo  "                           ________________________  
  345.                                                    
  346.                                 420chan menu        
  347.                           ________________________  
  348. "
  349. echo "Choose a board > "
  350. echo -n " (420,b,i,mma,wooo,weed,hooch,mdma,hal,stim,dis,
  351. opi,smoke,benz,del,other,f,m,po,vg,cd,gif,meow,w): " ; read iboard ; echo "";
  352. case "$iboard" in
  353.    b|f|m|cd|gif|meow|w)
  354.     iserver="img"
  355.     pserver="img"
  356.     post="wakaba.pl"
  357.     i=0
  358.     ;;
  359.    420|mma|wooo|weed|hooch|mdma|hal|stim|dis|opi|smoke|benz|del|other|po|vg)
  360.     iserver="disc"
  361.     pserver="disc"
  362.     post="wakaba.pl"
  363.     i=0
  364.     ;;
  365.    i)
  366.     post="wakaba.pl"
  367.     i=1
  368.     ;;
  369.    *)
  370.     boringchan
  371.     ;;
  372. esac
  373.  
  374. ##################
  375. if [ "$i" -eq 0 ]
  376. then BOARD="http://$pserver.420chan.org/$iboard/wakaba.pl"
  377. else BOARD="http://not420chan.com/$iboard/wakaba.pl"
  378. fi
  379. ##################
  380. echo -n "Rapemode>
  381. (file/dump/count): "; $reed rape; echo ""
  382. case "$rape" in
  383. file|fil|fi|f)
  384.         echo "Select file to spam with>"; echo -n " (eg. /home/user/pic.jpg): "; $reed IMAGE
  385.          if [ ! -e "$IMAGE" ]
  386.            then
  387.            echo ""; echo -n " "; echo -n "$IMAGE does not exist..."; sleep 1; boringchan
  388.          fi
  389.         echo ""; echo " image: $(ls -sh $IMAGE) selected..."; echo ""
  390.         echo "Name>"; echo -n " (leave blank for none): "; $reed NAME; echo ""
  391.         echo "Email>"; echo -n " (leave blank for none): "; $reed EMAIL; echo ""
  392.         echo "Subject>"; echo -n " (leave blank for none): "; $reed SUB; echo ""
  393.         echo "URL of thread(s)>"; echo -n " (eg. 1993711 123345 or 0 for new threads): "; $reed URL ;echo ""
  394.         while true
  395.         do
  396.         for url in $URL
  397.         do
  398.         echo -n "." >> $IMAGE
  399.         echo [$NUM] [$IMAGE - $PWD] ; echo ""  ; echo -n " >> "
  400.     curl -s -S -A Mozilla/4.0 -F "task=post" -F "parent=$URL" -F "field1=$NAME" -F "field2=$EMAIL" -F "field3=$SUB" -F "field4=$COMMENT" -F "file=@$IMAGE" -F "password=$PWD" $BOARD  |  awk '/index.html/ {print "Successfully uploaded!"} /Upload something smaller/ {print "File too big."} /Either this image is too big or there is no image at all/ {print "File too big or no file selected."} /Cannot find reply/ {print "Cannot find reply."} /Upload failed/ {print "Upload failed."} /Cannot find record/ {print "Cannot find record."} /No verification code on record/ {print "No verification code on record."} /Wrong verification code entered/ {print "Wrong verification code."} /File format not supported/ {print "File format not supported."} /String refused/ {print "String refused."} /Unjust POST/ {print "Unjust POST."} /No file selected/ {print "No file selected."} /No comment entered/ {print "No comment entered,"} /Too many characters in text field/ {print "Text field too long."} /Posting not allowed/ {print "Posting not allowed."} /Abnormal reply/ {print "Abnormal reply smaller"} /Host is banned/ {print "Banned."} /Proxy is banned for being open/ {print "Proxy banned."} /Flood detected, post discarded/ {print "Flood detected, post discarded."} /Flood detected, file discarded/ {print "Flood detected, file discarded."} /Flood detected/ {print "Flood detected."} /Open proxy detected/ {print "Proxy detected."} /This file has already been posted/ {print "Duplicate file detected."} /A file with the same name already exists/ {print "Duplicated file name detected."} /Thread does not exist/ {print "Thread does not exist."} /Possible virus-infected file/ {print "Possible virus-infected file."} /Could not write to directory/ {print "Could not write to server dir."} /Spammers are not welcome here/ {print "Spammer detected."} /SQL connection failure/ {print "SQL connection failure."} /Critical SQL problem!/ {print "Critical SQL problem."}'
  401.         let "NUM += 1"
  402.         echo ""; echo " * Waiting $SLEEP seconds..."; echo ""
  403.         #let "SLEEP = SLEEP + $RANDOM % 5"  #im not a script, srsly u guise lolol
  404.         sleep $SLEEP
  405.         done
  406.     done
  407.         echo " Done."
  408.         ;;
  409. dump|dum|du|d)
  410.         echo "Select dir(s) to dump>"; echo -n " (eg. /home/user/pics/* /home/user/gay/*): "; $reed FILES ; echo ""
  411.     echo "$(ls -shd $FILES)"; echo ""
  412.         echo "Name>"; echo -n " (leave blank for none): "; $reed NAME; echo ""
  413.         echo "Email>"; echo -n " (leave blank for none): "; $reed EMAIL; echo ""
  414.         echo "Subject>"; echo -n " (leave blank for none): "; $reed SUB; echo ""
  415.         echo "URL of thread>"; echo -n " (eg. 1993711 or 0 for new threads): "; $reed URL ;echo ""
  416.         for file in $FILES
  417.         do
  418.          if [ ! -e "$file" ]
  419.           then
  420.           echo ""; echo " * $file does not exist."
  421.           continue
  422.          fi
  423.          if [ -d "$file" ]
  424.           then
  425.           echo ""; echo " * $file is a folder."
  426.           continue
  427.          fi
  428.         echo ""; echo "[$NUM] [" $(ls -sphd "$file") $(echo "$URL]") ; echo ""  ; echo -n " >> "
  429.     curl -s -S -A Mozilla/4.0 -F "task=post" -F "parent=$URL" -F "field1=$NAME" -F "field2=$EMAIL" -F "field3=$SUB" -F "field4=$COMMENT" -F "file=@$file" -F "password=$PWD" $BOARD  | awk '/index.html/ {print "Successfully uploaded!"} /Upload something smaller/ {print "File too big."} /Either this image is too big or there is no image at all/ {print "File too big or no file selected."} /Cannot find reply/ {print "Cannot find reply."} /Upload failed/ {print "Upload failed."} /Cannot find record/ {print "Cannot find record."} /No verification code on record/ {print "No verification code on record."} /Wrong verification code entered/ {print "Wrong verification code."} /File format not supported/ {print "File format not supported."} /String refused/ {print "String refused."} /Unjust POST/ {print "Unjust POST."} /No file selected/ {print "No file selected."} /No comment entered/ {print "No comment entered,"} /Too many characters in text field/ {print "Text field too long."} /Posting not allowed/ {print "Posting not allowed."} /Abnormal reply/ {print "Abnormal reply smaller"} /Host is banned/ {print "Banned."} /Proxy is banned for being open/ {print "Proxy banned."} /Flood detected, post discarded/ {print "Flood detected, post discarded."} /Flood detected, file discarded/ {print "Flood detected, file discarded."} /Flood detected/ {print "Flood detected."} /Open proxy detected/ {print "Proxy detected."} /This file has already been posted/ {print "Duplicate file detected."} /A file with the same name already exists/ {print "Duplicated file name detected."} /Thread does not exist/ {print "Thread does not exist."} /Possible virus-infected file/ {print "Possible virus-infected file."} /Could not write to directory/ {print "Could not write to server dir."} /Spammers are not welcome here/ {print "Spammer detected."} /SQL connection failure/ {print "SQL connection failure."} /Critical SQL problem!/ {print "Critical SQL problem."}'
  430.         let "NUM += 1"
  431.         let "NUM += 1"
  432.         echo ""; echo " * Waiting $SLEEP seconds..."
  433.         sleep $SLEEP
  434.         continue
  435.         done
  436.         ;;
  437. count|coun|cou|co|c)
  438.         echo "Select thread(s) to count images>" ; echo -n " (eg. 111941 112013 112151): " ; $reed threads; echo ""
  439.         while true; do
  440.         for thread in $threads; do
  441.         echo ""; echo "                               images in $CHAN's /$iboard/ $thread"
  442.         echo "________________________________________________________________________________________________________,"
  443.         echo "   5|  10|  15|  20|  25|  30|  35|  40|  45|  50|  55|  60|  65|  70|  75|  80|  85|  90|  95| 100| 105|"
  444. ##################
  445. if [ "$i" -eq 0 ]
  446. then HTML="http://$iserver.420chan.org/$iboard/res/$thread.html"
  447. else HTML="http://not420chan.com/$iboard/res/$thread.html"
  448. fi
  449. ##################
  450.         curl -s -A $useragent --max-time $timeout $HTML | awk '/File :/ {printf "|"}'
  451.         sleep 1;
  452.         done
  453.         done
  454.         ;;
  455. *)
  456.         boringchan
  457.         ;;
  458. esac
  459. }
  460. #################################################
  461. ############### end of 420chan() ################
  462. #################################################
  463.  
  464.  
  465. #################################################
  466. ##############wtfux works Thu 13/8/07############
  467. #################################################
  468. wtfux(){
  469. clear; echo "$banner"
  470.      echo  "                           ________________________  
  471.                                                    
  472.                                  wtfux menu        
  473.                           ________________________  
  474. "
  475. echo "Choose a board > "
  476. echo -n " (cams,cats,random,flash,jihad,
  477. gaming,pron,hentai,mporn): " ; read iboard ; echo "";
  478.  
  479. ##################
  480. BOARD="http://wtfux.org/$iboard/wakaba.pl"
  481. ##################
  482. echo -n "Rapemode>
  483. (file/dump/count): "; $reed rape; echo ""
  484. case "$rape" in
  485. file|fil|fi|f)
  486.         echo "Select file to spam with>"; echo -n " (eg. /home/user/pic.jpg): "; $reed IMAGE
  487.          if [ ! -e "$IMAGE" ]
  488.            then
  489.            echo ""; echo -n " "; echo -n "$IMAGE does not exist..."; sleep 1; wtfux
  490.          fi
  491.         echo ""; echo " image: $(ls -sh $IMAGE) selected..."; echo ""
  492.         echo "Name>"; echo -n " (leave blank for none): "; $reed NAME; echo ""
  493.         echo "Email>"; echo -n " (leave blank for none): "; $reed EMAIL; echo ""
  494.         echo "Subject>"; echo -n " (leave blank for none): "; $reed SUB; echo ""
  495.         echo "Bump>"; echo -n " (1 or 0): "; $reed BUMP; echo ""
  496.         echo "URL of thread(s)>"; echo -n " (eg. 1993711 123345 or 0 for new threads): "; $reed URL ;echo ""
  497.         while true
  498.         do
  499.         for url in $URL
  500.         do
  501.         echo -n "." >> $IMAGE
  502.         echo [$NUM] [$IMAGE - $PWD] ; echo ""  ; echo -n " >> "
  503.     curl -s -S -A Mozilla/4.0 -F "task=post" -F "parent=$URL" -F "field1=$NAME" -F "field2=$EMAIL" -F "field3=$SUB" -F "field4=$COMMENT" -F "file=@$IMAGE" -F "bumpcheck=$BUMP" -F "password=$PWD" $BOARD  | awk '/wakaba.html/ {print "Successfully uploaded!"} /Upload something smaller/ {print "File too big."} /Either this image is too big or there is no image at all/ {print "File too big or no file selected."} /Cannot find reply/ {print "Cannot find reply."} /Upload failed/ {print "Upload failed."} /Cannot find record/ {print "Cannot find record."} /No verification code on record/ {print "No verification code on record."} /Wrong verification code entered/ {print "Wrong verification code."} /File format not supported/ {print "File format not supported."} /String refused/ {print "String refused."} /Unjust POST/ {print "Unjust POST."} /No file selected/ {print "No file selected."} /No comment entered/ {print "No comment entered,"} /Too many characters in text field/ {print "Text field too long."} /Posting not allowed/ {print "Posting not allowed."} /Abnormal reply/ {print "Abnormal reply smaller"} /Host is banned/ {print "Banned."} /Proxy is banned for being open/ {print "Proxy banned."} /Flood detected, post discarded/ {print "Flood detected, post discarded."} /Flood detected, file discarded/ {print "Flood detected, file discarded."} /Flood detected/ {print "Flood detected."} /Open proxy detected/ {print "Proxy detected."} /This file has already been posted/ {print "Duplicate file detected."} /A file with the same name already exists/ {print "Duplicated file name detected."} /Thread does not exist/ {print "Thread does not exist."} /Possible virus-infected file/ {print "Possible virus-infected file."} /Could not write to directory/ {print "Could not write to server dir."} /Spammers are not welcome here/ {print "Spammer detected."} /SQL connection failure/ {print "SQL connection failure."} /Critical SQL problem!/ {print "Critical SQL problem."}'
  504.         let "NUM += 1"
  505.         echo ""; echo " * Waiting $SLEEP seconds..."; echo ""
  506.         #let "SLEEP = SLEEP + $RANDOM % 5"  #im not a script, srsly u guise lolol
  507.         sleep $SLEEP
  508.         done
  509.     done
  510.         echo " Done."
  511.         ;;
  512. dump|dum|du|d)
  513.         echo "Select dir(s) to dump>"; echo -n " (eg. /home/user/pics/* /home/user/gay/*): "; $reed FILES ; echo ""
  514.         echo "$(ls -shd $FILES)"; echo ""
  515.         echo "Name>"; echo -n " (leave blank for none): "; $reed NAME; echo ""
  516.         echo "Email>"; echo -n " (leave blank for none): "; $reed EMAIL; echo ""
  517.         echo "Subject>"; echo -n " (leave blank for none): "; $reed SUB; echo ""
  518.         echo "URL of thread>"; echo -n " (eg. 1993711 or 0 for new threads): "; $reed URL ;echo ""
  519.         for file in $FILES
  520.         do
  521.          if [ ! -e "$file" ]
  522.           then
  523.           echo ""; echo " * $file does not exist."
  524.           continue
  525.          fi
  526.          if [ -d "$file" ]
  527.           then
  528.           echo ""; echo " * $file is a folder."
  529.           continue
  530.          fi
  531.         echo ""; echo "[$NUM] [" $(ls -sphd "$file") $(echo "$URL]") ; echo ""  ; echo -n " >> "
  532.     curl -s -S -A Mozilla/4.0 -F "task=post" -F "parent=$URL" -F "field1=$NAME" -F "field2=$EMAIL" -F "field3=$SUB" -F "field4=$COMMENT" -F "file=@$file" -F "password=$PWD" $BOARD | awk '/wakaba.html/ {print "Successfully uploaded!"} /Upload something smaller/ {print "File too big."} /Either this image is too big or there is no image at all/ {print "File too big or no file selected."} /Cannot find reply/ {print "Cannot find reply."} /Upload failed/ {print "Upload failed."} /Cannot find record/ {print "Cannot find record."} /No verification code on record/ {print "No verification code on record."} /Wrong verification code entered/ {print "Wrong verification code."} /File format not supported/ {print "File format not supported."} /String refused/ {print "String refused."} /Unjust POST/ {print "Unjust POST."} /No file selected/ {print "No file selected."} /No comment entered/ {print "No comment entered,"} /Too many characters in text field/ {print "Text field too long."} /Posting not allowed/ {print "Posting not allowed."} /Abnormal reply/ {print "Abnormal reply smaller"} /Host is banned/ {print "Banned."} /Proxy is banned for being open/ {print "Proxy banned."} /Flood detected, post discarded/ {print "Flood detected, post discarded."} /Flood detected, file discarded/ {print "Flood detected, file discarded."} /Flood detected/ {print "Flood detected."} /Open proxy detected/ {print "Proxy detected."} /This file has already been posted/ {print "Duplicate file detected."} /A file with the same name already exists/ {print "Duplicated file name detected."} /Thread does not exist/ {print "Thread does not exist."} /Possible virus-infected file/ {print "Possible virus-infected file."} /Could not write to directory/ {print "Could not write to server dir."} /Spammers are not welcome here/ {print "Spammer detected."} /SQL connection failure/ {print "SQL connection failure."} /Critical SQL problem!/ {print "Critical SQL problem."}'
  533.         let "NUM += 1"
  534.         let "NUM += 1"
  535.         echo ""; echo " * Waiting $SLEEP seconds..."
  536.         sleep $SLEEP
  537.         continue
  538.         done
  539.         ;;
  540. count|coun|cou|co|c)
  541.         echo "Select thread(s) to count images>" ; echo -n " (eg. 111941 112013 112151): " ; $reed threads; echo ""
  542.         while true; do
  543.         for thread in $threads; do
  544.         echo ""; echo "                               images in $CHAN's /$iboard/ $thread"
  545.         echo "________________________________________________________________________________________________________,"
  546.         echo "   5|  10|  15|  20|  25|  30|  35|  40|  45|  50|  55|  60|  65|  70|  75|  80|  85|  90|  95| 100| 105|"
  547. ##################
  548. HTML="http://wtfux.org/$iboard/res/$thread.html"
  549. ##################
  550.         curl -s -A $useragent --max-time $timeout $HTML | awk '/File :/ {printf "|"}'
  551.         sleep 1;
  552.         done
  553.         done
  554.         ;;
  555. *)
  556.         wtfux
  557.         ;;
  558. esac
  559. }
  560. #################################################
  561. ################ end of wtfux() #################
  562. #################################################
  563.  
  564.  
  565. echo "Select a chan > "
  566. echo -n " (4chan,7chan,wtfux,420chan): "; $reed CHAN
  567. case "$CHAN" in
  568.      4chan|4ch|4)
  569.            CHAN=4chan
  570.            fourchan
  571.            ;;
  572.      7chan|7ch|7)
  573.            CHAN=7chan
  574.            sevenchan
  575.        ;;
  576.      420chan|420ch|420)
  577.            CHAN=420chan
  578.            boringchan
  579.        ;;
  580.      wtfux|wtf|w)
  581.            CHAN=wtfux
  582.            wtfux
  583.        ;;
  584.      *)
  585.        echo "What?"
  586.            ;;
  587. esac
  588.  
  589. echo ""; echo "Done."
  590.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement