From 4254ea3dd6dc40efefca525e5aee8025d122b050 Mon Sep 17 00:00:00 2001 From: Elijah Date: Sat, 2 Oct 2021 21:11:44 +0300 Subject: [PATCH] Fix script so it works on Windows (#100) --- remote_command_execution_vulnerability.py | 2 +- requirements.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/remote_command_execution_vulnerability.py b/remote_command_execution_vulnerability.py index f41b89c..27a1ac5 100644 --- a/remote_command_execution_vulnerability.py +++ b/remote_command_execution_vulnerability.py @@ -42,7 +42,7 @@ template = f.read() data = template.format(router_ip_address=router_ip_address, command=command) # print(data) -with open("build/speedtest_urls.xml", "wt", encoding = "UTF-8") as f: +with open("build/speedtest_urls.xml", "wt", encoding = "UTF-8", newline = "\n") as f: f.write(data) print("****************") diff --git a/requirements.txt b/requirements.txt index e9194e0..f229360 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1 @@ -pycryptodome requests