|
|
|
|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 58
Members: 0
Total: 58
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Take A Look Anything possible here? |
|
Posted: Sat Oct 11, 2008 3:15 am |
|
|
Cablekid |
Advanced user |
|
|
Joined: Jul 14, 2007 |
Posts: 85 |
|
|
|
|
|
|
|
Right now if i did site.com/graphics/glitter/index.php?pg=../../ it shows me what files are where.
Is anything else possible?
Code: | <?
/**
* index.php - Glitter graphics script
*
*/
include('../../config.php');
include ($sm['path_inc'] . 'header.php');
$sm['page_name'] = 'Glitter Graphics';
?>
<div class="text">
<div align="center"><img src="{url_base}graphics/glitter/3/i88566774_35866.gif"><br>
<br>
<a href="{url_base}graphics/glitter/glitter1.php">Page 1</a> ;; ;;
<a href="{url_base}graphics/glitter/glitter2.php">Page 2</a><br />
<a href="{url_base}graphics/glitter/glitter3.php">Page 3</a> ;; ;;
<a href="{url_base}graphics/glitter/glitter4.php">Page 4</a><br />
<a href="{url_base}graphics/glitter/glitter5.php">Page 5</a><br>
<br />
</div>
</div>
<?php
if(!empty($_GET['pg']))
{
$sm['page_name'] = 'MySpace Glitter Graphics, Page ' . $_GET['pg'];
$path = $sm['path_base'] . 'graphics/glitter/' . $_GET['pg'];
//using the opendir function
$dir_handle = @opendir($path) or die("Unable to open $path");
echo "<table width=\"100%\" align=\"center\">
<tr>
<td style=\"padding-right: 10px;\"><div class=\"text\"><div align=\"center\">Just copy and paste the code where you would like the picture to be!<br></div>
<br>";
//running the while loop
while ($file = readdir($dir_handle))
{
if($file!="." && $file!="..")
echo " <table border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td style=\"padding-right: 10px;\" class=\"too\"><a href=\"" . $sm['url_base'] . "graphics/glitter/" . $_GET['pg'] . "/$file\" target=\"_blank\"><img src=\"" . $sm['url_base'] . "graphics/glitter/" . $_GET['pg'] . "/$file\" width=\"150\" height=\"150\" border=\"1\" style=\"border-color: 000000;\"></a><br><div align=\"center\"><a href=\"" . $sm['url_base'] . "/graphics/glitter/" . $_GET['pg'] . "/$file\" target=\"_blank\">Click to Enlarge</a></div></td>
<td class=\"too\" valign=\"top\"><div style=\"padding-bottom: 5px;\"></div>
<textarea name=\"textarea2\" cols=23 rows=8 class=\"bginput\" onClick=\"this.focus();this.select()\"><a href="" . $sm['url_base'] . "" target="_blank"><img src="" . $sm['url_base'] . "graphics/glitter/" . $_GET['pg'] . "/$file" border="0"></a>
<a href="" . $sm['url_base'] . "" target="_blank"><img src="" . $sm['url_base'] . "support.gif" alt="Myspace Layouts" style="position:absolute; left:0px; top: 0px;" border="0"></a> </textarea></td>
</tr>
</table>
<br />
<br>";
}
echo "
</td>
</tr>
</table>";
closedir($dir_handle);
}
include ($sm['path_inc'] . 'footer.php');
?> |
|
|
|
|
|
|
www.waraxe.us Forum Index -> Remote file inclusion
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|
|