This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 1st, 2012  |  syntax: PHP  |  size: 2.80 KB  |  views: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #
  2. #-----[ FIND ]------------------------------------------
  3. #
  4. Net/SSH2.php
  5. #
  6. #-----[ FIND ]------------------------------------------
  7. #
  8.        if (!$this->fsock) {
  9.             user_error(rtrim("Cannot connect to $host. Error $errno. $errstr"), E_USER_NOTICE);
  10.             return;
  11.         }
  12. #
  13. #-----[ REPLACE WITH ]----------------------------------
  14. #
  15.        if (!$this->fsock) {
  16. exit('THIS FAR x1');
  17.             user_error(rtrim("Cannot connect to $host. Error $errno. $errstr"), E_USER_NOTICE);
  18.             return;
  19.         }
  20. #
  21. #-----[ FIND ]------------------------------------------
  22. #
  23.        if ($timeout - $elapsed <= 0) {
  24.             user_error(rtrim("Cannot connect to $host. Timeout error"), E_USER_NOTICE);
  25.             return;
  26.         }
  27. #
  28. #-----[ REPLACE WITH ]----------------------------------
  29. #
  30.        if ($timeout - $elapsed <= 0) {
  31. exit('THIS FAR x2');
  32.             user_error(rtrim("Cannot connect to $host. Timeout error"), E_USER_NOTICE);
  33.             return;
  34.         }
  35. #
  36. #-----[ FIND ]------------------------------------------
  37. #
  38.        if (!@stream_select($read, $write, $except, $timeout - $elapsed)) {
  39.             user_error(rtrim("Cannot connect to $host. Banner timeout"), E_USER_NOTICE);
  40.             return;
  41.         }
  42. #
  43. #-----[ REPLACE WITH ]----------------------------------
  44. #
  45.        if (!@stream_select($read, $write, $except, $timeout - $elapsed)) {
  46. exit('THIS FAR x3');
  47.             user_error(rtrim("Cannot connect to $host. Banner timeout"), E_USER_NOTICE);
  48.             return;
  49.         }
  50. #
  51. #-----[ FIND ]------------------------------------------
  52. #
  53.        if (feof($this->fsock)) {
  54.             user_error('Connection closed by server', E_USER_NOTICE);
  55.             return false;
  56.         }
  57. #
  58. #-----[ REPLACE WITH ]----------------------------------
  59. #
  60.        if (feof($this->fsock)) {
  61. exit('THIS FAR x4');
  62.             user_error('Connection closed by server', E_USER_NOTICE);
  63.             return false;
  64.         }
  65. #
  66. #-----[ FIND ]------------------------------------------
  67. #
  68.        if (defined('NET_SSH2_LOGGING')) {
  69.             $this->message_number_log[] = '<-';
  70.             $this->message_number_log[] = '->';
  71.  
  72.             if (NET_SSH2_LOGGING == NET_SSH2_LOG_COMPLEX) {
  73.                 $this->message_log[] = $temp;
  74.                 $this->message_log[] = $this->identifier . "\r\n";
  75.             }
  76.         }
  77. #
  78. #-----[ REPLACE WITH ]----------------------------------
  79. #
  80.        if (defined('NET_SSH2_LOGGING')) {
  81. echo "LOGGING x1\r\n";
  82.             $this->message_number_log[] = '<-';
  83.             $this->message_number_log[] = '->';
  84.  
  85.             if (NET_SSH2_LOGGING == NET_SSH2_LOG_COMPLEX) {
  86. echo "LOGGING x2\r\n";
  87.                 $this->message_log[] = $temp;
  88.                 $this->message_log[] = $this->identifier . "\r\n";
  89.             }
  90.         }
clone this paste RAW Paste Data