mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2024-11-23 13:03:10 +00:00
Merge pull request #278 from Ododo/master
Fix path for 'hijacking.dll' and 'repository'
This commit is contained in:
commit
70a91ddcf3
1 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ except ImportError as error:
|
||||||
print(dll_hijacker_text)
|
print(dll_hijacker_text)
|
||||||
|
|
||||||
# open the repository, its simple name,extension,dll
|
# 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
|
# set base counter for our pick
|
||||||
print(" Enter the choice of the file extension you want to attack:\n")
|
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
|
# reset the counter and get our payload ready and selected
|
||||||
counter = 1
|
counter = 1
|
||||||
fileopen = open(setdir + "/src/webattack/dll_hijacking/repository", "r")
|
fileopen = open("src/webattack/dll_hijacking/repository", "r")
|
||||||
for line in fileopen:
|
for line in fileopen:
|
||||||
line = line.split(",")
|
line = line.split(",")
|
||||||
if int(counter) == int(choice):
|
if int(counter) == int(choice):
|
||||||
|
@ -79,7 +79,7 @@ else:
|
||||||
update_options("IPADDR=" + ipaddr)
|
update_options("IPADDR=" + ipaddr)
|
||||||
|
|
||||||
# replace ipaddress with one that we need for reverse connection back
|
# 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()
|
data = fileopen.read()
|
||||||
|
|
||||||
filewrite = open(setdir + "/dll/%s" % (dll), "wb")
|
filewrite = open(setdir + "/dll/%s" % (dll), "wb")
|
||||||
|
|
Loading…
Reference in a new issue