SHOW:
|
|
- or go back to the newest paste.
| 1 | #!/usr/bin/perl | |
| 2 | # M-A_labz | |
| 3 | # Modules | |
| 4 | use HTTP::Request; | |
| 5 | use strict; | |
| 6 | use Win32::Console::ANSI; | |
| 7 | use warnings; | |
| 8 | use LWP::Simple; | |
| 9 | use Term::ANSIColor; | |
| 10 | if($^O =~ /Win/){
| |
| 11 | ||
| 12 | system("cls");
| |
| 13 | system("title Mass Scripts Grabber 0.1");
| |
| 14 | }else{
| |
| 15 | system("clear");
| |
| 16 | } | |
| 17 | $|=1; | |
| 18 | print color("red"), '
| |
| 19 | ____________________________________________________________________ | |
| 20 | | | | |
| 21 | | Mass Scripts Grabber (bing supported) | | |
| 22 | | By Mr_AnarShi-T | | |
| 23 | | WwW.HaCkTeAcH.OrG | | |
| 24 | | v 0.1 | | |
| 25 | |____________________________________________________________________| | |
| 26 | '; | |
| 27 | print color 'reset'; | |
| 28 | - | print color("yellow"), "\n\n[+] Enter Single Ip or Ips List : ";
|
| 28 | + | |
| 29 | print color("yellow"), "\n\n[+] Enter List File Ips : ";
| |
| 30 | print color 'reset'; | |
| 31 | my $host=<STDIN>; | |
| 32 | - | if ($host =~ /.txt/) |
| 32 | + | |
| 33 | - | {
|
| 33 | + | |
| 34 | my @SITE = <SITE>; | |
| 35 | - | @SITE = <SITE>; |
| 35 | + | |
| 36 | foreach my $xp (@SITE) {
| |
| 37 | - | }else {
|
| 37 | + | |
| 38 | - | @SITE = ($host); |
| 38 | + | |
| 39 | - | } |
| 39 | + | |
| 40 | my %group; | |
| 41 | ||
| 42 | ||
| 43 | if ( $ip !~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/ ) {
| |
| 44 | print color("bold white"), "# Skiping $ip\n";
| |
| 45 | print color 'reset'; | |
| 46 | ||
| 47 | } | |
| 48 | ||
| 49 | my $page = 0; | |
| 50 | print color("green"), "Working on $ip\n";
| |
| 51 | print color 'reset'; | |
| 52 | print color("bold white"), "[#] Begin Reserving !";
| |
| 53 | print color 'reset'; | |
| 54 | while (1) {
| |
| 55 | ||
| 56 | my $content = get("http://www.bing.com/search?q=ip:$ip&first=$page&FORM=PERE") or
| |
| 57 | ||
| 58 | die("Error getting output\n");
| |
| 59 | my $status = keys %group; | |
| 60 | - | my $content = get("http://www.bing.com/search?q=ip::$ip&first=$page&FORM=PERE") or
|
| 60 | + | |
| 61 | $group{$1} = undef;
| |
| 62 | } | |
| 63 | last if ($status == keys %group); | |
| 64 | $page = $page + 10; | |
| 65 | } | |
| 66 | ||
| 67 | print color("bold white"), "\n# OUTPUT for $ip\n";
| |
| 68 | print color 'reset'; | |
| 69 | open (IN,">reverse-$ip.txt"); | |
| 70 | foreach my $host (keys %group) {
| |
| 71 | print IN "$host\n"; | |
| 72 | } | |
| 73 | close(IN); | |
| 74 | ||
| 75 | open (F, "<reverse-$ip.txt") || die "[-] Can't open the List Of Domains Names!"; | |
| 76 | my @DOMAINS = <F>; | |
| 77 | close F; | |
| 78 | - | print "[+] Start Checking ...\n"; |
| 78 | + | |
| 79 | chomp $D; | |
| 80 | ||
| 81 | # Wordpress Grabbing !! | |
| 82 | ||
| 83 | my $wp = "http://".$D."/wp-login.php/"; | |
| 84 | my $reqwp=HTTP::Request->new(GET=>$wp); | |
| 85 | my $uawp=LWP::UserAgent->new(); | |
| 86 | $uawp->timeout(0); | |
| 87 | my $responsewp=$uawp->request($reqwp); | |
| 88 | ||
| 89 | my $wp2 = "http://".$D."/wp/wp-login.php/"; | |
| 90 | my $sitewp2 = "http://".$D."/wp/"; | |
| 91 | my $reqwp2=HTTP::Request->new(GET=>$wp2); | |
| 92 | my $uawp2=LWP::UserAgent->new(); | |
| 93 | $uawp2->timeout(0); | |
| 94 | my $responsewp2=$uawp2->request($reqwp2); | |
| 95 | ||
| 96 | my $wp1 = "http://".$D."/cms/wp-login.php/"; | |
| 97 | my $sitewp1 = "http://".$D."/cms/"; | |
| 98 | my $reqwp1=HTTP::Request->new(GET=>$wp1); | |
| 99 | my $uawp1=LWP::UserAgent->new(); | |
| 100 | $uawp1->timeout(0); | |
| 101 | my $responsewp1=$uawp1->request($reqwp1); | |
| 102 | ||
| 103 | my $wp3 = "http://".$D."/portal/wp-login.php/"; | |
| 104 | my $sitewp3 = "http://".$D."/portal/"; | |
| 105 | my $reqwp3=HTTP::Request->new(GET=>$wp3); | |
| 106 | my $uawp3=LWP::UserAgent->new(); | |
| 107 | $uawp3->timeout(0); | |
| 108 | my $responsewp3=$uawp3->request($reqwp3); | |
| 109 | ||
| 110 | # Joomla Grabbing !! | |
| 111 | ||
| 112 | my $joom = "http://".$D."/administrator/"; | |
| 113 | my $reqjoom=HTTP::Request->new(GET=>$joom); | |
| 114 | my $uajoom=LWP::UserAgent->new(); | |
| 115 | $uajoom->timeout(0); | |
| 116 | my $responsejoom=$uajoom->request($reqjoom); | |
| 117 | ||
| 118 | my $joom2 = "http://".$D."/joomla/administrator/"; | |
| 119 | my $site2 = "http://".$D."/jooma/"; | |
| 120 | my $reqjoom2=HTTP::Request->new(GET=>$joom2); | |
| 121 | my $uajoom2=LWP::UserAgent->new(); | |
| 122 | $uajoom2->timeout(0); | |
| 123 | my $responsejoom2=$uajoom2->request($reqjoom2); | |
| 124 | ||
| 125 | my $joom1 = "http://".$D."/cms/administrator/"; | |
| 126 | my $site1 = "http://".$D."/cms/"; | |
| 127 | my $reqjoom1=HTTP::Request->new(GET=>$joom1); | |
| 128 | my $uajoom1=LWP::UserAgent->new(); | |
| 129 | $uajoom1->timeout(0); | |
| 130 | my $responsejoom1=$uajoom1->request($reqjoom1); | |
| 131 | ||
| 132 | my $joom3 = "http://".$D."/portal/administrator/"; | |
| 133 | my $site3 = "http://".$D."/portal/"; | |
| 134 | my $reqjoom3=HTTP::Request->new(GET=>$joom3); | |
| 135 | my $uajoom3=LWP::UserAgent->new(); | |
| 136 | $uajoom3->timeout(0); | |
| 137 | my $responsejoom3=$uajoom3->request($reqjoom3); | |
| 138 | ||
| 139 | # Vbulletin Grabbing !! | |
| 140 | ||
| 141 | my $vb1 = "http://".$D."/vb/clientscript/vbulletin_global.js"; | |
| 142 | my $sitevb1 = "http://".$D."/core/"; | |
| 143 | my $reqvb1=HTTP::Request->new(GET=>$vb1); | |
| 144 | my $uavb1=LWP::UserAgent->new(); | |
| 145 | $uavb1->timeout(0); | |
| 146 | my $responsevb1=$uavb1->request($reqvb1); | |
| 147 | ||
| 148 | my $vb2 = "http://".$D."/clientscript/vbulletin_global.js"; | |
| 149 | my $sitevb2 = "http://".$D."/"; | |
| 150 | my $reqvb2=HTTP::Request->new(GET=>$vb2); | |
| 151 | my $uavb2=LWP::UserAgent->new(); | |
| 152 | $uavb2->timeout(0); | |
| 153 | my $responsevb2=$uavb2->request($reqvb2); | |
| 154 | ||
| 155 | my $vb3 = "http://".$D."/cc/clientscript/vbulletin_global.js"; | |
| 156 | my $sitevb3 = "http://".$D."/"; | |
| 157 | my $reqvb3=HTTP::Request->new(GET=>$vb3); | |
| 158 | my $uavb3=LWP::UserAgent->new(); | |
| 159 | $uavb3->timeout(0); | |
| 160 | my $responsevb3=$uavb3->request($reqvb3); | |
| 161 | ||
| 162 | # whmcs grabbing !! | |
| 163 | ||
| 164 | my $whm = "http://".$D."/clients/includes/jscript/jquery.js"; | |
| 165 | my $sitewhm = "http://".$D."/clients/"; | |
| 166 | my $reqwhm=HTTP::Request->new(GET=>$whm); | |
| 167 | my $uawhm=LWP::UserAgent->new(); | |
| 168 | $uawhm->timeout(0); | |
| 169 | my $responsewhm=$uawhm->request($reqwhm); | |
| 170 | ||
| 171 | my $whm2 = "http://".$D."/whmcs/includes/jscript/jquery.js"; | |
| 172 | my $sitewhm2 = "http://".$D."/whmcs/"; | |
| 173 | my $reqwhm2=HTTP::Request->new(GET=>$whm2); | |
| 174 | my $uawhm2=LWP::UserAgent->new(); | |
| 175 | $uawhm2->timeout(0); | |
| 176 | my $responsewhm2=$uawhm2->request($reqwhm2); | |
| 177 | ||
| 178 | my $whm3 = "http://".$D."/billing/includes/jscript/jquery.js"; | |
| 179 | my $sitewhm3 = "http://".$D."/billing"; | |
| 180 | my $reqwhm3=HTTP::Request->new(GET=>$whm3); | |
| 181 | my $uawhm3=LWP::UserAgent->new(); | |
| 182 | $uawhm3->timeout(0); | |
| 183 | my $responsewhm3=$uawhm3->request($reqwhm3); | |
| 184 | ||
| 185 | my $whm4 = "http://".$D."/support/includes/jscript/jquery.js"; | |
| 186 | my $sitewhm4 = "http://".$D."/support/"; | |
| 187 | my $reqwhm4=HTTP::Request->new(GET=>$whm4); | |
| 188 | my $uawhm4=LWP::UserAgent->new(); | |
| 189 | $uawhm4->timeout(0); | |
| 190 | my $responsewhm4=$uawhm4->request($reqwhm4); | |
| 191 | ||
| 192 | # Zen Cart grabbing !! | |
| 193 | ||
| 194 | my $zen = "http://".$D."/store/admin/login.php?zenAdminID"; | |
| 195 | my $sitezen = "http://".$D."/"; | |
| 196 | my $reqzen=HTTP::Request->new(GET=>$zen); | |
| 197 | my $uazen=LWP::UserAgent->new(); | |
| 198 | $uazen->timeout(0); | |
| 199 | my $responsezen=$uazen->request($reqzen); | |
| 200 | ||
| 201 | my $zen2 = "http://".$D."/admin/login.php?zenAdminID"; | |
| 202 | my $sitezen2 = "http://".$D."/"; | |
| 203 | my $reqzen2=HTTP::Request->new(GET=>$zen2); | |
| 204 | my $uazen2=LWP::UserAgent->new(); | |
| 205 | $uazen2->timeout(0); | |
| 206 | my $responsezen2=$uazen2->request($reqzen2); | |
| 207 | ||
| 208 | my $zen3 = "http://".$D."/products/admin/login.php?zenAdminID"; | |
| 209 | my $sitezen3 = "http://".$D."/"; | |
| 210 | my $reqzen3 =HTTP::Request->new(GET=>$zen3); | |
| 211 | my $uazen3 =LWP::UserAgent->new(); | |
| 212 | $uazen3 ->timeout(0); | |
| 213 | my $responsezen3 =$uazen3 ->request($reqzen3 ); | |
| 214 | ||
| 215 | my $zen4 = "http://".$D."/shop/admin/login.php?zenAdminID"; | |
| 216 | my $sitezen4 = "http://".$D."/"; | |
| 217 | my $reqzen4 =HTTP::Request->new(GET=>$zen4 ); | |
| 218 | my $uazen4 =LWP::UserAgent->new(); | |
| 219 | $uazen4 ->timeout(0); | |
| 220 | my $responsezen4 =$uazen4 ->request($reqzen4 ); | |
| 221 | ############################################################################################### | |
| 222 | # Checking Wordpress Websites !! | |
| 223 | if ($responsewp->content=~ /<body class="login">/){print color("green"), "[+] $D :[WordPress]\n";
| |
| 224 | print color 'reset'; | |
| 225 | open(TN,">>$ip-scripts.txt"); | |
| 226 | print TN "$D is wordpress\n"; | |
| 227 | close(TN); | |
| 228 | } | |
| 229 | else {if ($responsewp1->content=~ /<body class="login">/){print color("green"), "[+] $D :[WordPress]\n";
| |
| 230 | print color 'reset'; | |
| 231 | open(TN,">>$ip-scripts.txt"); | |
| 232 | print TN "$site1 is wordpress\n"; | |
| 233 | close(TN); | |
| 234 | } | |
| 235 | else{ if ($responsewp2->content=~ /<body class="login">/){print color("green"), "[+] $D :[WordPress]\n";
| |
| 236 | print color 'reset'; | |
| 237 | open(TN,">>$ip-scripts.txt"); | |
| 238 | print TN "$site2 is wordpress\n"; | |
| 239 | close(TN); | |
| 240 | } | |
| 241 | else{ if ($responsewp3->content=~ /<body class="login">/){print color("green"), "[+] $D :[WordPress]\n";
| |
| 242 | print color 'reset'; | |
| 243 | open(TN,">>$ip-scripts.txt"); | |
| 244 | print TN "$site3 is wordpress\n"; | |
| 245 | close(TN); | |
| 246 | } | |
| 247 | ||
| 248 | # Checking Joomla Websites !! | |
| 249 | ||
| 250 | if ($responsejoom->content=~ /Joomla!/){print color("green"), "[+] $D :[Joomla]\n";
| |
| 251 | print color 'reset'; | |
| 252 | open(TN,">>$ip-scripts.txt"); | |
| 253 | print TN "$D is joomla\n"; | |
| 254 | close(TN); | |
| 255 | } | |
| 256 | else {if ($responsejoom1->content=~ /Joomla!/){print color("green"), "[+] $D :[Joomla]\n";
| |
| 257 | print color 'reset'; | |
| 258 | open(TN,">>$ip-scripts.txt"); | |
| 259 | print TN "$site1 is joomla\n"; | |
| 260 | close(TN); | |
| 261 | } | |
| 262 | else{ if ($responsejoom2->content=~ /Joomla!/){print color("green"), "[+] $D :[Joomla]\n";
| |
| 263 | print color 'reset'; | |
| 264 | open(TN,">>$ip-scripts.txt"); | |
| 265 | print TN "$site2 is joomla\n"; | |
| 266 | close(TN); | |
| 267 | } | |
| 268 | else{ if ($responsejoom3->content=~ /Joomla!/){print color("green"), "[+] $D :[Joomla]\n";
| |
| 269 | print color 'reset'; | |
| 270 | open(TN,">>$ip-scripts.txt"); | |
| 271 | print TN "$site3 is joomla\n"; | |
| 272 | close(TN); | |
| 273 | } | |
| 274 | ||
| 275 | # Vbulletin Checking Websites !! | |
| 276 | ||
| 277 | else{ if ($responsevb1->is_success && $responsevb1->content=~/!window.console/){print color("green"), "[+] $D :[Vbulttein]\n";
| |
| 278 | print color 'reset'; | |
| 279 | open(TN,">>$ip-scripts.txt"); | |
| 280 | print TN "$site3 is vb\n"; | |
| 281 | close(TN); | |
| 282 | } | |
| 283 | else{ if ($responsevb2->is_success && $responsevb1->content=~/!window.console/){print color("green"), "[+] $D :[Vbulttein]\n";
| |
| 284 | print color 'reset'; | |
| 285 | open(TN,">>$ip-scripts.txt"); | |
| 286 | print TN "$site3 is vb\n"; | |
| 287 | close(TN); | |
| 288 | } | |
| 289 | else{ if ($responsevb3->is_success && $responsevb1->content=~/!window.console/){print color("green"), "[+] $D :[Vbulttein]\n";
| |
| 290 | print color 'reset'; | |
| 291 | open(TN,">>$ip-scripts.txt"); | |
| 292 | print TN "$site3 is vb\n"; | |
| 293 | close(TN); | |
| 294 | } | |
| 295 | ||
| 296 | # Checking Whmcs Websites !! | |
| 297 | ||
| 298 | else{ if ($responsewhm->is_success && $responsewhm->content=~/jQuery/){print color("green"), "[+] $D:[Whmcs]\n";
| |
| 299 | print color 'reset'; | |
| 300 | open(TN,">>$ip-scripts.txt"); | |
| 301 | print TN "$sitewhm is whmcs\n"; | |
| 302 | close(TN); | |
| 303 | } | |
| 304 | else{ if ($responsewhm2->is_success && $responsewhm2->content=~/jQuery/){print color("green"), "[+] $D :[Whmcs]\n";
| |
| 305 | print color 'reset'; | |
| 306 | open(TN,">>$ip-scripts.txt"); | |
| 307 | print TN "$sitewhm2 is whmcs\n"; | |
| 308 | close(TN); | |
| 309 | } | |
| 310 | else{ if ($responsewhm3->is_success && $responsewhm3->content=~/jQuery/){print color("green"), "[+] $D :[Whmcs]\n";
| |
| 311 | print color 'reset'; | |
| 312 | open(TN,">>$ip-scripts.txt"); | |
| 313 | print TN "$sitewhm3 is whmcs\n"; | |
| 314 | close(TN); | |
| 315 | } | |
| 316 | else{ if ($responsewhm4->is_success && $responsewhm4->content=~/jQuery/){print color("green"), "[+] $D :[Whmcs]\n";
| |
| 317 | print color 'reset'; | |
| 318 | open(TN,">>$ip-scripts.txt"); | |
| 319 | print TN "$sitewhm4 is whmcs\n"; | |
| 320 | close(TN); | |
| 321 | } | |
| 322 | ||
| 323 | # Checking Zen Cart Websites | |
| 324 | ||
| 325 | else{ if ($responsezen->is_success && $responsezen->content=~/zenAdminID/){print color("green"), "[+] $D :[Zen Cart]\n";
| |
| 326 | print color 'reset'; | |
| 327 | open(TN,">>$ip-scripts.txt"); | |
| 328 | print TN "$sitezen is Zen Cart\n"; | |
| 329 | close(TN); | |
| 330 | } | |
| 331 | else{ if ($responsezen2->is_success && $responsezen2->content=~/zenAdminID/){print color("green"), "[+] $D :[Zen Cart]\n";
| |
| 332 | print color 'reset'; | |
| 333 | open(TN,">>$ip-scripts.txt"); | |
| 334 | print TN "$sitezen2 is Zen Cart\n"; | |
| 335 | close(TN); | |
| 336 | } | |
| 337 | else{ if ($responsezen3->is_success && $responsezen3->content=~/zenAdminID/){print color("green"), "[+] $D :[Zen Cart]\n";
| |
| 338 | print color 'reset'; | |
| 339 | open(TN,">>$ip-scripts.txt"); | |
| 340 | print TN "$sitezen3 is Zen Cart\n"; | |
| 341 | close(TN); | |
| 342 | } | |
| 343 | else{ if ($responsezen4->is_success && $responsezen4->content=~/zenAdminID/){print color("green"), "[+] $D :[Zen Cart]\n";
| |
| 344 | print color 'reset'; | |
| 345 | open(TN,">>$ip-scripts.txt"); | |
| 346 | print TN "$sitezen4 is Zen Cart\n"; | |
| 347 | close(TN); | |
| 348 | } | |
| 349 | else {
| |
| 350 | print color("bold white"), "[-] $D :[Unknown] \n";
| |
| 351 | print color 'reset'; | |
| 352 | }}}}}}}}}}}}}}}}}}}} |