Skip to content

Instantly share code, notes, and snippets.

diff --git a/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php b/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php
index cdf0bec..32ecd33 100644
--- a/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php
+++ b/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php
@@ -598,7 +598,7 @@ class SFTP extends SSH2
$response = $this->get_sftp_packet();
if ($this->packet_type != NET_SFTP_VERSION) {
throw new \UnexpectedValueException('Expected NET_SFTP_VERSION. '
- . 'Got packet type: ' . $this->packet_type);
+ . 'Got packet type: ' . $this->get_packet_type_name($response));
@SyuTingSong
SyuTingSong / AESStreamFilter.php
Last active August 29, 2015 14:21
AES-256-CFB Stream
<?php
/**
* Created by IntelliJ IDEA.
* User: xts
* Date: 15/5/20
* Time: 10:05PM
*/
namespace xts;
@SyuTingSong
SyuTingSong / WxAES.php
Created April 23, 2015 09:40
Another WeiXin Message Decryptor
<?php
namespace wechat;
class AESErrorCode {
const OK = 0;
const ValidateSignatureError = -40001;
const ParseXmlError = -40002;
const ComputeSignatureError = -40003;
const IllegalAesKey = -40004;