Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ktecv2000 opened this issue Oct 12, 2023 · 1 comment
Closed

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

ktecv2000 opened this issue Oct 12, 2023 · 1 comment

Comments

@ktecv2000
Copy link

Detailed error description

binascii.Error: Incorrect padding

Operating environment

Client:

  • System: Debian 10
  • python version: Tested from 3.8 ~ 3.11

Server:

  • System: Linux
  • Web file: php
  • web middleware: Apache
  • Language platform version: php7.4

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
Copy link
Owner

L-codes commented Oct 12, 2023

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

@L-codes L-codes closed this as completed Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants