Skip to content

Commit 78a2ced

Browse files
committed
Fixed pep8 issues
1 parent 38756ec commit 78a2ced

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

VHostScan.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ def main():
8383
wordlist.append(host)
8484
wordlist.extend(aliases)
8585
if arguments.verbose:
86-
print("[!] Discovered {host}/{ip}. Adding...".format(ip=str(ip), host=host))
86+
print("[!] Discovered {host}/{ip}. Adding...".
87+
format(ip=str(ip), host=host))
8788
except (dns.resolver.NXDOMAIN):
8889
print("[!] Couldn't find any records (NXDOMAIN)")
8990
except (dns.resolver.NoAnswer):

lib/helpers/wordlist_helper.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ def get_stdin_wordlist(self):
1919
return list(line for line in sys.stdin.read().splitlines()) \
2020
if not sys.stdin.isatty() else []
2121

22-
def get_wordlist(self, wordlist_files=None, wordlist_prefix=False, wordlist_suffix=False):
22+
def get_wordlist(self,
23+
wordlist_files=None,
24+
wordlist_prefix=False,
25+
wordlist_suffix=False):
26+
2327
default_wordlist_file = DEFAULT_WORDLIST_FILE
2428

2529
stdin_words = self.get_stdin_wordlist()
@@ -63,8 +67,8 @@ def get_wordlist(self, wordlist_files=None, wordlist_prefix=False, wordlist_suff
6367
suffixed.append(word + wordlist_suffix)
6468

6569
if len(suffixed) > 0:
66-
self.wordlist = self.wordlist + suffixed
67-
70+
self.wordlist = self.wordlist + suffixed
71+
6872
return self.wordlist, self.wordlist_types
6973

7074
def set_words(self, words_type, words):
@@ -75,7 +79,7 @@ def valid_ip(self, address):
7579
try:
7680
host_bytes = address.split('.')
7781
valid = [int(b) for b in host_bytes]
78-
valid = [b for b in valid if b >= 0 and b<=255]
82+
valid = [b for b in valid if b >= 0 and b <= 255]
7983
return len(host_bytes) == 4 and len(valid) == 4
8084
except:
8185
return False

0 commit comments

Comments
 (0)