ABaDy1996

solve

Nov 14th, 2018
177
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $_GET[0] = 'c';
  3. $_GET[1] = 'system';
  4. $_GET[b] = 'b';
  5. $_GET[c] = 'dir';
  6.  
  7. $$_GET[0]=$_GET[1]; // $c = $_GET[1] // $c = 'system'
  8. $$_GET[b]=$_GET[c]; // $b = $_GET[c] // $b = 'dir'
  9. @$c($b); // system('dir');
  10. ?>
RAW Paste Data