Advertisement
shor7cut

Simple CHMOD

Dec 9th, 2015
304
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. echo '<form action="" method="post">
  4. <input type="txt" name="patch" value="'.getcwd().'\namafile.php">
  5. <select name="chmod">
  6.    <option value="0600">0600</option>
  7.    <option value="0644">0644</option>
  8.    <option value="0755">0755</option>
  9.    <option value="0750">0750</option>
  10. </select>
  11. <input type="submit" name="submit" value="CHMOD">
  12. </form>';
  13.  
  14. if($_POST['submit']){
  15. if(chmod($_POST['patch'], $_POST['chmod'])){
  16.     echo "Success di chmod";
  17. }else{
  18.     echo "Gagal";
  19. }
  20. }
  21. ?>
Advertisement
RAW Paste Data Copied
Advertisement