2077 Posts in 484 Topics- by 821 Members - Latest Member: liricklagu

Pages: [1]   Go Down
  Print  
Author Topic: JPG shell Inclusion (using php injected JPG)  (Read 1585 times)
webmaster
Administrator
phpBB Guru
*****
Offline Offline

Posts: 924


hairulazami
View Profile WWW
« on: August 16, 2008, 03:03:45 PM »

JPG shell Inclusion (using php injected JPG)

membuat dan bereksperimen dengan file JPG dan PHP Inject Code:

diperlukan:

sebuah halaman web (ujicoba)
sebuah file PHP (inject php code)
file JPG

dalam file php bwat badbug.php

Code:
<?
$badbug = $_GET['badbug'];
include ($badbug);
?>

lalu pada file JPG (misal: badbug.jpg), buka dengan notepad, isikan dengan code:

Code:
<?
echo "OK";
?>

tes pada webserver:

Code:

http://localhost/badbug.php?badbug=badbug.jpg





let's see your code, bakalan di dsplay "OK" dalam halaman !!
« Last Edit: January 01, 1970, 07:00:00 AM by webmaster » Logged


Pages: [1]   Go Up
  Print  
 
Jump to: