From bb3fe3178e62633cd093190c7c77b05084acdacd Mon Sep 17 00:00:00 2001 From: dbisu Date: Tue, 15 Jun 2021 16:38:53 -0500 Subject: [PATCH] Fixed issue with Windows line endings causing the script to crash --- duckyinpython.py | 1 + 1 file changed, 1 insertion(+) diff --git a/duckyinpython.py b/duckyinpython.py index 3c2599e..9f4bbe4 100644 --- a/duckyinpython.py +++ b/duckyinpython.py @@ -70,6 +70,7 @@ print("Running payload.dd") previousLine = "" duckyScript = f.readlines() for line in duckyScript: + line = line.replace('\r','') if(line[0:6] == "REPEAT"): for i in range(int(line[7:])): #repeat the last command