L-codes / Neo-reGeorg

Neo-reGeorg is a project that seeks to aggressively refactor reGeorg
GNU General Public License v3.0
2.89k stars 446 forks source link

Base64 decode error - binascii.Error: Incorrect padding #86

Closed ktecv2000 closed 9 months ago

ktecv2000 commented 1 year ago

Detailed error description

binascii.Error: Incorrect padding

Operating environment

Client:

neoreg.py running output (please bring -vvv parameter, output detailed information to improve repair efficiency)

Paste text or pictures, sensitive information such as url can be deleted (text can be replaced by ***) or coded


[INFO    ]  [Ask NeoGeorg] Checking if NeoGeorg is ready
[DEBUG   ]  [HTTP] Ask NeoGeorg Request
[DEBUG   ]  [HTTP] Ask NeoGeorg Response => HttpCode: 200
[WARNING ]  [Ask NeoGeorg] Server Session expired
[WARNING ]  [Ask NeoGeorg] Automatically append Cookies: PHPSESSID=***;
[INFO    ]  [Ask NeoGeorg] NeoGeorg says, 'All seems fine'
[DEBUG   ]  [SOCKS5] Version5 detected
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] CONNECT Request (PqPkn1LaRfqVplzj)
[INFO    ]  [CONNECT] [b'8.8.8.8':443] Session mark (PqPkn1LaRfqVplzj)
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] READ Request (PqPkn1LaRfqVplzj)
[DEBUG   ]  [DISCONNECT] [b'8.8.8.8':443] Closing localsocket
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] DISCONNECT Request (PqPkn1LaRfqVplzj)
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] DISCONNECT Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 4.62s
[WARNING ]  [DISCONNECT] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.1
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] READ Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 4.63s
[WARNING ]  [READ] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.1
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] DISCONNECT Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.50s
[WARNING ]  [DISCONNECT] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.2
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] READ Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.50s
[WARNING ]  [READ] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.2
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] DISCONNECT Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.56s
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] READ Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.56s
[WARNING ]  [READ] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.3
[WARNING ]  [DISCONNECT] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.3
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] READ Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.55s
[WARNING ]  [READ] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.4
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] DISCONNECT Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.55s
[WARNING ]  [DISCONNECT] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.4
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] READ Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.50s
[WARNING ]  [READ] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.5
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] DISCONNECT Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.50s
[WARNING ]  [DISCONNECT] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.5
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] READ Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.51s
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] DISCONNECT Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.51s
[WARNING ]  [DISCONNECT] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.6
[WARNING ]  [READ] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.6
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] READ Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.50s
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] DISCONNECT Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.51s
[WARNING ]  [READ] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.7
[WARNING ]  [DISCONNECT] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.7
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] DISCONNECT Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.50s
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] READ Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.51s
[WARNING ]  [READ] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.8
[WARNING ]  [DISCONNECT] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.8
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] READ Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.50s
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] DISCONNECT Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.50s
[WARNING ]  [DISCONNECT] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.9
[WARNING ]  [READ] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.9
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] READ Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.52s
[WARNING ]  [READ] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.10
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] DISCONNECT Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.53s
[WARNING ]  [DISCONNECT] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.10
[DEBUG   ]  [HTTP] [b'8.8.8.8':443] READ Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.53s
[WARNING ]  [READ] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.11
[ERROR   ]  Base64 decode error
Traceback (most recent call last):
File "***/Neo-reGeorg/neoreg.py", line 187, in decode_body
data = base64.b64decode(data.translate(DecodeMap))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/base64.py", line 88, in b64decode
return binascii.a2b_base64(s, strict_mode=validate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
binascii.Error: Incorrect padding

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Neo-reGeorg/neoreg.py", line 507, in reader rinfo = self.neoreg_request(info) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Neo-reGeorg/neoreg.py", line 452, in neoreg_request raise e File "/Neo-reGeorg/neoreg.py", line 434, in neoreg_request rinfo = decode_body(rdata) ^^^^^^^^^^^^^^^^^^ File "/Neo-reGeorg/neoreg.py", line 189, in decode_body raise NeoregReponseFormatError("Base64 decode error") NeoregReponseFormatError: Base64 decode error [DEBUG ] [HTTP] [b'8.8.8.8':443] DISCONNECT Response (PqPkn1LaRfqVplzj) => HttpCode: 403, Time: 0.53s [WARNING ] [DISCONNECT] [b'8.8.8.8':443] NeoregReponseFormatError, Retry: No.11 Exception in thread Thread-3 (writer): Traceback (most recent call last): File "***/Neo-reGeorg/neoreg.py", line 187, in decode_body data = base64.b64decode(data.translate(DecodeMap)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/base64.py", line 88, in b64decode return binascii.a2b_base64(s, strict_mode=validate) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ binascii.Error: Incorrect padding

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner self.run() File "/usr/lib/python3.11/threading.py", line 975, in run self._target(self._args, self._kwargs) File "/Neo-reGeorg/neoreg.py", line 561, in writer self.closeRemoteSession() File "/Neo-reGeorg/neoreg.py", line 491, in closeRemoteSession rinfo = self.neoreg_request(info) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Neo-reGeorg/neoreg.py", line 452, in neoreg_request raise e File "/Neo-reGeorg/neoreg.py", line 434, in neoreg_request rinfo = decode_body(rdata) ^^^^^^^^^^^^^^^^^^ File "/Neo-reGeorg/neoreg.py", line 189, in decode_body raise NeoregReponseFormatError("Base64 decode error") NeoregReponseFormatError: Base64 decode error

L-codes commented 1 year ago

Page response code 403, please check whether the POST method is not supported.