Skip to content

Commit

Permalink
v3.3 - see CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xnl-h4ck3r committed Feb 9, 2023
1 parent 85df4d5 commit b4fcad6
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Changelog

- v3.3

- Changed

- If the output filename value passed to argument `-o`, `-op` or `-owl` has a "/" in it, remove the contents after the last one to just get the path and create the directories if necessary.

- v3.2

- New
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<center><img src="https://github.com/xnl-h4ck3r/xnLinkFinder/blob/main/xnLinkFinder/images/title.png"></center>

## About - v3.2
## About - v3.3

This is a tool used to discover endpoints (and potential parameters) for a given target. It can find them by:

Expand Down
27 changes: 27 additions & 0 deletions xnLinkFinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,15 @@ def processLinkOutput():
# If -o (--output) argument was not "cli" then open the output file
if args.output != "cli":
try:
# If the filename has any "/" in it, remove the contents after the last one to just get the path and create the directories if necessary
try:
f = os.path.basename(args.output)
p = args.output[:-(len(f))-1]
if p != "" and not os.path.exists(p):
os.makedirs(p)
except Exception as e:
if verbose():
writerr(colored("ERROR processLinkOutput 5: " + str(e), "red"))
outFile = open(os.path.expanduser(args.output), "w")
except Exception as e:
if vverbose():
Expand Down Expand Up @@ -1177,6 +1186,15 @@ def processParamOutput():
# If -op (--output_params) argument was not "cli" then open the output file
if args.output_params != "cli":
try:
# If the filename has any "/" in it, remove the contents after the last one to just get the path and create the directories if necessary
try:
f = os.path.basename(args.output_params)
p = args.output_params[:-(len(f))-1]
if p != ""''"" and not os.path.exists(p):
os.makedirs(p)
except Exception as e:
if verbose():
writerr(colored("ERROR processParamOutput 5: " + str(e), "red"))
outFile = open(os.path.expanduser(args.output_params), "w")
except Exception as e:
if vverbose():
Expand Down Expand Up @@ -1295,6 +1313,15 @@ def processWordsOutput():
# If -owl (--output_wordlist) argument was not "cli" then open the output file
if args.output_wordlist != "cli":
try:
# If the filename has any "/" in it, remove the contents after the last one to just get the path and create the directories if necessary
try:
f = os.path.basename(args.output_wordlist)
p = args.output_wordlist[:-(len(f))-1]
if p != "" and not os.path.exists(p):
os.makedirs(p)
except Exception as e:
if verbose():
writerr(colored("ERROR processWordsOutput 5: " + str(e), "red"))
outFile = open(os.path.expanduser(args.output_wordlist), "w")
except Exception as e:
if vverbose():
Expand Down
2 changes: 1 addition & 1 deletion xnLinkFinder/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__="3.2"
__version__="3.3"

0 comments on commit b4fcad6

Please sign in to comment.