Skip to content

Commit

Permalink
Fixed is and is not within code
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTruncer committed May 1, 2020
1 parent fb18729 commit 27067a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Python/modules/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def title_screen():
print("#" * 80 + "\n")

python_info = sys.version_info
if python_info[0] is not 3:
if python_info[0] != 3:
print("[*] Error: Your version of python is not supported!")
print("[*] Error: Please install Python 3.X.X")
sys.exit()
Expand Down Expand Up @@ -626,7 +626,7 @@ def do_jitter(cli_parsed):
Returns:
TYPE: Description
"""
if cli_parsed.jitter is not 0:
if cli_parsed.jitter != 0:
sleep_value = random.randint(0, 30)
sleep_value = sleep_value * .01
sleep_value = 1 - sleep_value
Expand All @@ -646,7 +646,7 @@ def do_delay(cli_parsed):
Returns:
TYPE: Description
"""
if cli_parsed.delay is not 0:
if cli_parsed.delay != 0:
sleep_value = cli_parsed.delay
print("[*] Sleeping for " + str(sleep_value) + " seconds before taking the screenshot")
try:
Expand Down Expand Up @@ -816,7 +816,7 @@ def open_file_input(cli_parsed):
while True:
try:
response = input().lower()
if response is "":
if response == "":
return True
else:
return strtobool(response)
Expand Down
2 changes: 1 addition & 1 deletion Python/modules/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def create_table_html(self):
<a href=\"{address}\" target=\"_blank\">{address}</a><br>
""").format(address=self.remote_system)

if self.resolved is not None and self.resolved is not 'Unknown':
if self.resolved != None and self.resolved != 'Unknown':
html += ("""<b>Resolved to:</b> {0}<br>""").format(self.resolved)

if len(self._uadata) > 0:
Expand Down

0 comments on commit 27067a4

Please sign in to comment.