Advertisement
Guest User

Untitled

a guest
Jul 16th, 2014
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #
  2. #-----[ OPEN ]------------------------------------------
  3. #
  4. Net/SSH2.php
  5. #
  6. #-----[ FIND ]------------------------------------------
  7. #
  8. $this->fsock = @fsockopen($this->host, $this->port, $errno, $errstr, $timeout);
  9. #
  10. #-----[ REPLACE WITH]-----------------------------------
  11. #
  12. $connection = ssh2_connect('shell.example.com', 22);
  13. ssh2_auth_password($connection, 'username', 'password');
  14.  
  15. $this->fsock = ssh2_tunnel($connection, 'otherwebsite.com', 22);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement