PythonProtector icon indicating copy to clipboard operation
PythonProtector copied to clipboard

Bug: When running a program with Fiddler open, a requests.exceptions.ProxyError is raised

Open mossan0101 opened this issue 1 year ago • 4 comments

Prerequisites

Current Behavior

Your program detects and terminates Fiddler when it is running. However, after that, the following error occurs:

requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.google.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000028868B6D210>: Failed to establish a new connection: [WinError 10061] The target computer actively refused it')))

This error occurred and the main thread did not exit.

Expected Behavior

I expected the program to send a report after detecting Fiddler and then terminate all threads.

Steps to Reproduce

Here are the settings for PythonProtector.

-- Define Constants

LOGGING_PATH = ( Path.home() / "AppData/Roaming/PythonProtector/logs/[Security].log" ) # -- This can be any path

-- Construct Class

security = PythonProtector( debug=True, modules=[ "AntiProcess", "AntiVM", "Miscellaneous", "AntiDLL", "AntiAnalysis", "AntiDump"], logs_path=LOGGING_PATH, webhook_url=myurl, on_detect=[ "Report", "Exit", "Screenshot"], )

-- Main Code

if name == "main": SecurityThread = Thread( name="Python Protector", target=security.start , daemon=True ) # -- Start Before Any Other Code Is Run SecurityThread.start() # Other Code

  1. Launch Fiddler.
  2. Execute the program with the above settings

Full Command String

No response

Additional Information

The operating environment is python3.11 on Windows11.

When Fiddler is terminated by pythonprotector, my PC loses the ability to communicate despite being connected to the internet. Upon checking the proxy settings in Windows, it appears that Fiddler's proxy settings remain even after termination. When I manually terminate Fiddler, the proxy settings return to their default state.

As a beginner in Python, I may make mistakes, so please bear with me. Thank you.

mossan0101 avatar Mar 19 '23 06:03 mossan0101

hey, sorry for the late response, this seems very werid, may i see the full traceback please?

xFGhoul avatar Mar 20 '23 23:03 xFGhoul

and what is dispatched or is any webhook sent?

xFGhoul avatar Mar 20 '23 23:03 xFGhoul

I apologize for the delay. Here is the full text. There may be some Japanese mixed in as I am Japanese, so please bear with me

Exception in thread Miscellaneous: ConnectionRefusedError: [WinError 10061] 対象のコンピューターによって拒否されたため、接続できませんでした。

During handling of the above exception, another exception occurred:

urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x000001C3947D4D90>: Failed to establish a new connection: [WinError 10061] 対象のコンピューターによって拒否された ため、接続できませんでした。

During handling of the above exception, another exception occurred:

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.google.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001C3947D4D90>: Failed to establish a new connection: [WinError 10061] 対象のコンピューターによって拒否されたため、接続できませんでした。')))

During handling of the above exception, another exception occurred:

requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.google.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001C3947D4D90>: Failed to establish a new connection: [WinError 10061] 対象のコンピューターによって拒否されたため、接続できませんでした。')))

mossan0101 avatar Mar 27 '23 12:03 mossan0101

I apologize for the delay. Here is the full text. There may be some Japanese mixed in as I am Japanese, so please bear with me

Exception in thread Miscellaneous: ConnectionRefusedError: [WinError 10061] 対象のコンピューターによって拒否されたため、接続できませんでした。

During handling of the above exception, another exception occurred:

urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x000001C3947D4D90>: Failed to establish a new connection: [WinError 10061] 対象のコンピューターによって拒否された ため、接続できませんでした。

During handling of the above exception, another exception occurred:

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.google.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001C3947D4D90>: Failed to establish a new connection: [WinError 10061] 対象のコンピューターによって拒否されたため、接続できませんでした。')))

During handling of the above exception, another exception occurred:

requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.google.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001C3947D4D90>: Failed to establish a new connection: [WinError 10061] 対象のコンピューターによって拒否されたため、接続できませんでした。')))

your internet is the issue here

xFGhoul avatar Apr 08 '23 22:04 xFGhoul