@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb008 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
cgi-bin
/
uploader
/
Path :
Upload File :
New :
File
Dir
/homepage/cgi-bin/uploader/randomimage.php
<?php // Change the folder name to your one in the line below $folder = "files"; srand( time() ); if ($directory = @opendir($folder)) { while (($image = readdir($directory)) !== false) { if ( eregi( '.(jpg|gif)$', $image ) ) { $images[] = $image; } } closedir($directory); } $image = $images[rand() % sizeof( $images )]; if ( eregi( '.jpg$', $image ) ) { header( "Content-Type: image/jpeg" ); } else { header( "Content-Type: image/gif" ); } header( "Content-Length: " . filesize( $folder."/".$image ) ); readfile( $folder."/".$image ); ?>