Advertisement
BlackHatBilguunBIck

Untitled

Jul 28th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Poc код
  2. Ажиллах хувилбар
  3. PHP 5 <= 5.2.5
  4. PHP 4 <= 4.4.8
  5. <?php
  6. $a = 'a\\';
  7. $b = 'b -c d\\';
  8. var_dump( $a, escapeshellarg($a) );
  9. var_dump( $b, escapeshellarg($b) );
  10. system( 'php arginfo.php ' . escapeshellarg($a) . ' ' . escapeshellarg($b) )
  11. ?>
  12. ------------------
  13.  
  14. [arginfo.php]
  15. ------------------
  16. <?php
  17. print( "--- ARG INFO ---\n" );
  18. var_dump( $argv );
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement