Skip to content

Commit 5f5954a

Browse files
authored
Merge pull request #1054 from NullArray/dev-beta
Checksums
2 parents 986910f + 527e418 commit 5f5954a

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

lib/banner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import random
33

4-
VERSION = "3.1.1"
4+
VERSION = "3.1.2"
55

66

77
def banner_1(line_sep="#--", space=" " * 30):

lib/creation/issue_creator.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,14 @@ def request_issue_creation(path, arguments, error_message):
184184
request the creation and create the issue
185185
"""
186186

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

195196
question = raw_input(
196197
"do you want to create an anonymized issue?[y/N]: "

lib/term/terminal.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -491,11 +491,11 @@ def terminal_main_display(self, tokens, extra_commands=None, save_history=True):
491491
print(self.do_exploit_targets.__doc__)
492492
except TypeError:
493493
pass
494-
if len(choice_data_list) < 4:
494+
if choice_data_list is None or len(choice_data_list) < 4:
495495
lib.output.error(
496496
"must provide at least LHOST, LPORT, workspace name with `{}` keyword "
497497
"(IE {} 127.0.0.1 9076 default [whitelist-path] [honeycheck])".format(
498-
choice, choice
498+
choice.strip(), choice.strip()
499499
)
500500
)
501501
else:
@@ -547,11 +547,11 @@ def terminal_main_display(self, tokens, extra_commands=None, save_history=True):
547547
print(self.do_load_custom_hosts.__doc__)
548548
except TypeError:
549549
pass
550-
if len(choice_data_list) < 3:
550+
if choice_data_list is None or len(choice_data_list) < 3:
551551
lib.output.error(
552552
"must provide a list of API names after `{}` keyword and query "
553553
"(IE {} shodan,censys apache2)".format(
554-
choice, choice
554+
choice.strip(), choice.strip()
555555
)
556556
)
557557
else:
@@ -578,11 +578,11 @@ def terminal_main_display(self, tokens, extra_commands=None, save_history=True):
578578
except TypeError:
579579
pass
580580

581-
if len(choice_data_list) < 3:
581+
if choice_data_list is None or len(choice_data_list) < 3:
582582
lib.output.error(
583583
"must supply API name with `{}` keyword along with "
584584
"new token (IE {} shodan mytoken123 [userID (censys)])".format(
585-
choice, choice
585+
choice.strip(), choice.strip()
586586
)
587587
)
588588
else:

0 commit comments

Comments
 (0)