forked from p15670423/monkey
Added TLS version to powershell command.
This commit is contained in:
parent
52eced33e2
commit
9ab80362de
|
@ -49,7 +49,9 @@ class CommunicateAsNewUser(PBA):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_commandline_for_http_request(url, is_windows=is_windows_os()):
|
def get_commandline_for_http_request(url, is_windows=is_windows_os()):
|
||||||
if is_windows:
|
if is_windows:
|
||||||
format_string = 'powershell.exe -command "Invoke-WebRequest {url}" -UseBasicParsing'
|
format_string = \
|
||||||
|
'powershell.exe -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ' \
|
||||||
|
'Invoke-WebRequest {url} -UseBasicParsing"'
|
||||||
else:
|
else:
|
||||||
# true || false -> 0. false || true -> 0. false || false -> 1. So:
|
# true || false -> 0. false || true -> 0. false || false -> 1. So:
|
||||||
# if curl works, we're good.
|
# if curl works, we're good.
|
||||||
|
|
Loading…
Reference in New Issue