4 Commits

Author SHA1 Message Date
antonioCoco 2971822579 Merge pull request #21 from NgoHuy/Patch-TLSv1_2
Change TLSv1 to TLS_CLIENT
2023-11-26 18:14:06 +01:00
Severus ea48f35900 Change TLSv1_2 to TLS_CLIENT
TLS_CLIENT allows user to chose available TLS version rather than specific version.
future.
2023-09-27 15:43:54 +07:00
Severus b58f918c83 Change TLSv1 to TLSv1_2
TLSv1.2 is major now. SharPyShell support TLSv1 by default. Since many
web server disabled TLSv1 then the connection should be terminated as
offline status.
2023-09-27 15:37:42 +07:00
antonioCoco 84e1ff5f5a Update README.md 2022-05-18 07:10:45 +02:00
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ SharPyShell supports only C# web applications that runs on .NET Framework >= 2.0
## Usage ## Usage
``` ```
python SharPyShell.py generate -p somepassword python3 SharPyShell.py generate -p somepassword
python SharPyShell.py interact -u http://target.url/sharpyshell.aspx -p somepassword python3 SharPyShell.py interact -u http://target.url/sharpyshell.aspx -p somepassword
``` ```
## Requirements ## Requirements
+4 -4
View File
@@ -30,13 +30,13 @@ class Request(Singleton):
if proxy: if proxy:
proxy_type = proxy.split('://')[0] proxy_type = proxy.split('://')[0]
if proxy_type == 'http' or proxy_type == 'https': if proxy_type == 'http' or proxy_type == 'https':
self.__request_obj = urllib3.ProxyManager(proxy, ssl_version=ssl.PROTOCOL_TLSv1, self.__request_obj = urllib3.ProxyManager(proxy, ssl_version=ssl.PROTOCOL_TLS_CLIENT,
timeout=self.__request_timeout, cert_reqs=self.__verify) timeout=self.__request_timeout, cert_reqs=self.__verify)
else: else:
self.__request_obj = SOCKSProxyManager(proxy, ssl_version=ssl.PROTOCOL_TLSv1, self.__request_obj = SOCKSProxyManager(proxy, ssl_version=ssl.PROTOCOL_TLS_CLIENT,
timeout=self.__request_timeout, cert_reqs=self.__verify) timeout=self.__request_timeout, cert_reqs=self.__verify)
else: else:
self.__request_obj = urllib3.PoolManager(ssl_version=ssl.PROTOCOL_TLSv1, timeout=self.__request_timeout, self.__request_obj = urllib3.PoolManager(ssl_version=ssl.PROTOCOL_TLS_CLIENT, timeout=self.__request_timeout,
cert_reqs=self.__verify) cert_reqs=self.__verify)
# print (vars(self)) # print (vars(self))
@@ -51,4 +51,4 @@ class Request(Singleton):
) )
except KeyboardInterrupt: except KeyboardInterrupt:
raise Exception('Keyboard interrupt issued') raise Exception('Keyboard interrupt issued')
return response_object.status, response_object.headers, response_object.data return response_object.status, response_object.headers, response_object.data