Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logical Error in Help Section #156

Closed
b0rne-ug opened this issue May 4, 2021 · 3 comments
Closed

Logical Error in Help Section #156

b0rne-ug opened this issue May 4, 2021 · 3 comments

Comments

@b0rne-ug
Copy link

b0rne-ug commented May 4, 2021

Script always jumps to the help output as long as there are more than 2 arguments.

This is because of the logical error below:

if len(sys.argv) > 2:

I recommend it be changed to

if len(sys.argv) > 2 and sys.argv[1] in help_options:

@ghost
Copy link

ghost commented May 11, 2021

What is the command you are running? Can you share so I can check it? Because it shouldn't do that

@b0rne-ug
Copy link
Author

when you run a command like python unicorn.py muahahaha.ps1 macro 500 it goes straight to the help menu

@HackingDave
Copy link
Contributor

Looks good, will be in the next release, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants