Skip to content

Commit

Permalink
v3.2 - See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xnl-h4ck3r committed Mar 5, 2024
1 parent 41dfa98 commit e59fa40
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Changelog

- v3.2

- Fix bug that was stopping `--version` argument working

- v3.1

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

## About - v3.1
## About - v3.2

This is a python wrapper around the amazing [KNOXSS API](https://knoxss.me/?page_id=2729) by Brute Logic.
To use this tool (and the underlying API), you must have a valid KNOXSS API key. Don't have one? Go visit https://knoxss.me and subscribe!
Expand Down
2 changes: 1 addition & 1 deletion knoxnl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__="3.1"
__version__="3.2"
11 changes: 6 additions & 5 deletions knoxnl/knoxnl.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class knoxss:

def showVersion():
try:

try:
resp = requests.get('https://raw.githubusercontent.com/xnl-h4ck3r/knoxnl/main/knoxnl/__init__.py',timeout=3)
except:
Expand Down Expand Up @@ -772,6 +773,11 @@ def main():
parser.add_argument('--version', action='store_true', help="Show version number")
args = parser.parse_args()

# If --version was passed, display version and exit
if args.version:
print(colored('knoxnl - v' + __version__,'cyan'))
sys.exit()

# If no input was given, raise an error
if sys.stdin.isatty():
if args.input is None:
Expand All @@ -780,11 +786,6 @@ def main():

showBanner()

# If --version was passed, display version and exit
if args.version:
print(colored('knoxnl - v' + __version__,'cyan'))
sys.exit()

# Get the config settings from the config.yml file
getConfig()

Expand Down

0 comments on commit e59fa40

Please sign in to comment.