From 907a62290b46784e2f383a3499c3631a561a4bd4 Mon Sep 17 00:00:00 2001 From: Ododo Date: Thu, 25 Aug 2016 04:41:11 +0200 Subject: [PATCH] Fix path for 'hijacking.dll' and 'repository' --- src/webattack/dll_hijacking/hijacking.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webattack/dll_hijacking/hijacking.py b/src/webattack/dll_hijacking/hijacking.py index bb3317229..a906e7d1e 100644 --- a/src/webattack/dll_hijacking/hijacking.py +++ b/src/webattack/dll_hijacking/hijacking.py @@ -25,7 +25,7 @@ except ImportError as error: print(dll_hijacker_text) # open the repository, its simple name,extension,dll -fileopen = open(setdir + "/src/webattack/dll_hijacking/repository", "r") +fileopen = open("src/webattack/dll_hijacking/repository", "r") # set base counter for our pick print(" Enter the choice of the file extension you want to attack:\n") @@ -48,7 +48,7 @@ choice = int(choice) # reset the counter and get our payload ready and selected counter = 1 -fileopen = open(setdir + "/src/webattack/dll_hijacking/repository", "r") +fileopen = open("src/webattack/dll_hijacking/repository", "r") for line in fileopen: line = line.split(",") if int(counter) == int(choice): @@ -79,7 +79,7 @@ else: update_options("IPADDR=" + ipaddr) # replace ipaddress with one that we need for reverse connection back -fileopen = open(setdir + "/src/webattack/dll_hijacking/hijacking.dll", "rb") +fileopen = open("src/webattack/dll_hijacking/hijacking.dll", "rb") data = fileopen.read() filewrite = open(setdir + "/dll/%s" % (dll), "wb")