Skip to content

Checksums #1054

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

Merged
merged 1 commit into from
Apr 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/banner.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import random

VERSION = "3.1.1"
VERSION = "3.1.2"


def banner_1(line_sep="#--", space=" " * 30):
Expand Down
15 changes: 8 additions & 7 deletions lib/creation/issue_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,14 @@ def request_issue_creation(path, arguments, error_message):
request the creation and create the issue
"""

if not checksum(path):
lib.output.error(
"It seems you have changed some of the code in the program. We do not accept issues from edited "
"code as we have no way of reliably testing your issue. We recommend that you only use the version "
"that is available on github, no issue will be created for this problem."
)
exit(1)
# TODO:/ we're gonna go ahead and give you guys another chance
#if not checksum(path):
# lib.output.error(
# "It seems you have changed some of the code in the program. We do not accept issues from edited "
# "code as we have no way of reliably testing your issue. We recommend that you only use the version "
# "that is available on github, no issue will be created for this problem."
# )
# exit(1)

question = raw_input(
"do you want to create an anonymized issue?[y/N]: "
Expand Down
12 changes: 6 additions & 6 deletions lib/term/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,11 +491,11 @@ def terminal_main_display(self, tokens, extra_commands=None, save_history=True):
print(self.do_exploit_targets.__doc__)
except TypeError:
pass
if len(choice_data_list) < 4:
if choice_data_list is None or len(choice_data_list) < 4:
lib.output.error(
"must provide at least LHOST, LPORT, workspace name with `{}` keyword "
"(IE {} 127.0.0.1 9076 default [whitelist-path] [honeycheck])".format(
choice, choice
choice.strip(), choice.strip()
)
)
else:
Expand Down Expand Up @@ -547,11 +547,11 @@ def terminal_main_display(self, tokens, extra_commands=None, save_history=True):
print(self.do_load_custom_hosts.__doc__)
except TypeError:
pass
if len(choice_data_list) < 3:
if choice_data_list is None or len(choice_data_list) < 3:
lib.output.error(
"must provide a list of API names after `{}` keyword and query "
"(IE {} shodan,censys apache2)".format(
choice, choice
choice.strip(), choice.strip()
)
)
else:
Expand All @@ -578,11 +578,11 @@ def terminal_main_display(self, tokens, extra_commands=None, save_history=True):
except TypeError:
pass

if len(choice_data_list) < 3:
if choice_data_list is None or len(choice_data_list) < 3:
lib.output.error(
"must supply API name with `{}` keyword along with "
"new token (IE {} shodan mytoken123 [userID (censys)])".format(
choice, choice
choice.strip(), choice.strip()
)
)
else:
Expand Down