Aca les traigo la version Tk de un script que habia hecho para decodificar las url lix.in
Lo bueno del programa es que guarda todo los logs en la carpeta donde ejecutaron el programa
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 | #!usr/bin/perl #Lix.In Decoder 0.2 #Version Tk #Coded By pr0xXx0r use LWP::UserAgent; use URI::Split qw(uri_split); use Tk; use Tk::Dialog; #if ( $^O eq 'MSWin32' ) { # use Win32::Console; # Win32::Console::Free(); #} my $nave = LWP::UserAgent->new; $nave->agent( "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12" ); $nave->timeout(5); my $color_fondo = "black"; my $color_text = "green"; my $ben = MainWindow->new( -background => $color_fondo, -foreground => $color_text ); $ben->title("Lix.In Decoder 0.2 (C) Doddy Hackman 2012"); $ben->geometry("492x385+20+20"); $ben->resizable( 0, 0 ); $ben->Label( -background => $color_fondo, -foreground => $color_text, -text => "Page : ", -font => "Impact1" )->place( -x => 20, -y => 20 ); my $page = $ben->Entry( -background => $color_fondo, -foreground => $color_text, -width => 40 )->place( -x => 73, -y => 24 ); $ben->Button( -text => "Decode", -width => 10, -command => \&home, -background => $color_fondo, -foreground => $color_text, -activebackground => $color_text )->place( -x => 325, -y => 23 ); $ben->Button( -text => "Logs", -width => 10, -command => \&logs, -background => $color_fondo, -foreground => $color_text, -activebackground => $color_text )->place( -x => 400, -y => 23 ); $ben->Label( -text => "Links Found", -font => "Impact", -background => $color_fondo, -foreground => $color_text )->place( -x => 200, -y => 80 ); my $links = $ben->Listbox( -width => 70, -height => 15, -background => $color_fondo, -foreground => $color_text )->place( -x => 32, -y => 140 ); MainLoop; sub home { $links->delete( "0.0", "end" ); my $url = $page->get; my $code = toma($url); while ( $code =~ m{http://lix\.in/(-\w+)}ig ) { push( @urls, "http://lix.in/" . $1 ); } while ( $code =~ m{http://lix\.in/(\w+)}ig ) { push( @urls, "http://lix.in/-" . $1 ); } my @urls = repes(@urls); for my $l (@urls) { chomp $l; $ben->update; decode_link( $l, $url ); } } sub decode_link { my ( $link, $url ) = @_; my ( $scheme, $auth, $path, $query, $frag ) = uri_split($url); if ( $link =~ /-(.*)/ ) { my $co = "-" . $1; chomp $co; my $code = tomar( $link, { "tiny" => $co, "submit" => "continue", "submit" => "submit" } ); if ( $code =~ /<iframe name="ifram" src="(.*)" marginwidth="0"/ ) { my $link = $1; chomp $link; unless ( $link =~ /lix\.in/ ) { savefile( $auth . ".txt", $link ); $links->insert( "end", $link ); } } } } sub logs { my ( $scheme, $auth, $path, $query, $frag ) = uri_split( $page->get ); my $f = $auth . ".txt"; if ( -f $f ) { system($f); } else { $ben->Dialog( -title => "Error", -buttons => ["OK"], -text => "Logs not found", -background => $color_fondo, -foreground => $color_text, -activebackground => $color_text )->Show(); } } sub repes { my @limpio; foreach $test (@_) { push @limpio, $test unless $repe{$test}++; } return @limpio; } sub savefile { open( SAVE, ">>" . $_[0] ); print SAVE $_[1] . "\n"; close SAVE; } sub toma { return $nave->get( $_[0] )->content; } sub tomar { my ( $web, $var ) = @_; return $nave->post( $web, [ %{$var} ] )->content; } # The End ? |
0 comentarios: sobre [Perl Tk] Lix.In Decoder 0.2
Publicar un comentario para [Perl Tk] Lix.In Decoder 0.2