From 27067a4e3376792c28e83621b5d3ccda47b4fa43 Mon Sep 17 00:00:00 2001 From: Christopher Truncer Date: Fri, 1 May 2020 09:00:41 -0600 Subject: [PATCH] Fixed is and is not within code --- Python/modules/helpers.py | 8 ++++---- Python/modules/objects.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Python/modules/helpers.py b/Python/modules/helpers.py index 79105feb..1d21a358 100644 --- a/Python/modules/helpers.py +++ b/Python/modules/helpers.py @@ -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() @@ -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 @@ -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: @@ -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) diff --git a/Python/modules/objects.py b/Python/modules/objects.py index 06fbb3ea..cbb969f6 100644 --- a/Python/modules/objects.py +++ b/Python/modules/objects.py @@ -212,7 +212,7 @@ def create_table_html(self): {address}
""").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 += ("""Resolved to: {0}
""").format(self.resolved) if len(self._uadata) > 0: