Skip to content

Commit

Permalink
Using -f now accepts files containing full filepaths so you can pass …
Browse files Browse the repository at this point in the history
…it output from tools like find without the need for modification
  • Loading branch information
James Conlan authored and James Conlan committed Dec 5, 2020
1 parent 8b581c2 commit 949a9c1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions gtfoblookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,15 @@ def parseFile(args):
with open(args.executable, 'r') as f:
exes = f.readlines()
for exe in exes:
if exe.strip() != "":
args.executable = exe.strip()
exe = exe.strip()
if exe != "":
split = exe.split('/')
if len(split) > 1:
exe = split[-1]
else:
split = exe.split('\\')
exe = split[-1]
args.executable = exe
search(args)

def default(args):
Expand Down

0 comments on commit 949a9c1

Please sign in to comment.