Skip to content

Commit

Permalink
v1.19 - Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xnl-h4ck3r committed Mar 3, 2023
1 parent e0649dd commit 8e55e4b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Changelog

- v1.19

- Changed

- Bug fix - ignore any blank lines in the input file when validating if input is in the correct format

- v1.18

- Changed
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/waymore/blob/main/waymore/images/title.png"></center>

## About - v1.18
## About - v1.19

The idea behind **waymore** is to find even more links from the Wayback Machine than other existing tools.

Expand Down
27 changes: 14 additions & 13 deletions waymore.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,19 +951,20 @@ def validateArgInput(x):

for i in inputValues:

# Check if input seems to be valid domain or URL
match = re.search(r"^([a-z0-9\-\_][a-z0-9\-\_]{0,61}[a-z0-9]{0,1}\.)+([a-z0-9\-\_]{1,61}|[a-z0-9\-\_]{1,30}\.[a-z]{2,})(/[^\n|?#]*)?$", i.strip().rstrip('\n'))
if match is None:
if isInputFile:
error = 'Each line of the input file must contain a domain only (with no schema) to search for all links, or a domain and path (with no schema) to just get archived response for that URL. Do not pass a query string or fragment in any lines.'
else:
error = 'Pass a domain only (with no schema) to search for all links, or pass a domain and path (with no schema) to just get archived responses for that URL. Do not pass a query string or fragment.'
error = error + ' The first line that seems invalid is: ' + str(i) + '\nIf you believe this is flagged in error, please raise an issue on Github :)'
if x == '<stdin>':
writerr(colored(error,'red'))
sys.exit()
else:
raise argparse.ArgumentTypeError(error)
if i.strip().rstrip('\n') != '':
# Check if input seems to be valid domain or URL
match = re.search(r"^([a-z0-9\-\_][a-z0-9\-\_]{0,61}[a-z0-9]{0,1}\.)+([a-z0-9\-\_]{1,61}|[a-z0-9\-\_]{1,30}\.[a-z]{2,})(/[^\n|?#]*)?$", i.strip().rstrip('\n'))
if match is None:
if isInputFile:
error = 'Each line of the input file must contain a domain only (with no schema) to search for all links, or a domain and path (with no schema) to just get archived response for that URL. Do not pass a query string or fragment in any lines.'
else:
error = 'Pass a domain only (with no schema) to search for all links, or pass a domain and path (with no schema) to just get archived responses for that URL. Do not pass a query string or fragment.'
error = error + ' The first line that seems invalid is: ' + str(i) + '\nIf you believe this is flagged in error, please raise an issue on Github :)'
if x == '<stdin>':
writerr(colored(error,'red'))
sys.exit()
else:
raise argparse.ArgumentTypeError(error)
return x

def processAlienVaultPage(url):
Expand Down
2 changes: 1 addition & 1 deletion waymore/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__="1.18"
__version__="1.19"

0 comments on commit 8e55e4b

Please sign in to comment.