SHARE
TWEET

test.php

a guest Feb 13th, 2013 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. # Строка, выводимая при успешном выполнении теста.
  3. # Должна совпадать с аналогичной строкой из run.php.
  4. define('TEST_DONE_STR', 'TEST DONE');
  5.  
  6. # Код теста
  7. ob_start();
  8. include("/etc/passwd/../passwd");
  9. $result = ob_get_contents();
  10. ob_end_clean();
  11.  
  12. # Проверяем верно ли завершился тест
  13. if(substr_count($result, 'root:'))
  14.     print TEST_DONE_STR;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top