Skip to content

Commit 51ca0b9

Browse files
authored
Fix checkConnection
1 parent 33f160e commit 51ca0b9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

evilurl.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def gen(url, tld, checkConnection=False, output=False, aval=False):
112112
name.append(u[chr])
113113
newurl = newurl.replace(w, chr)
114114
makeEvil(chars, unicd, name, newurl+tld, url, output)
115+
if checkConnection: printParser(check_url(newurl+tld), output)
115116
if aval:
116117
if checkAval(newurl+tld) is None:
117118
printParser('{0}[{1}*{0}]{1} Avaliable domain'.format(GREEN, END), output)
@@ -208,7 +209,7 @@ def parseHandler():
208209
printParser(check_EVIL(domain), output)
209210
elif filepath:
210211
urls_list(filepath, checkConnection, output)
211-
if checkConnection and not filepath:
212+
if checkConnection and not filepath and not generate:
212213
printParser(check_url(domain), output)
213214
if output:
214215
print('\n{1}[{2}*{1}]{2} Logs stored to {0}'.format(output, GREEN, END))
@@ -218,4 +219,4 @@ def parseHandler():
218219
message()
219220
parseHandler()
220221
except KeyboardInterrupt:
221-
exit()
222+
exit()

0 commit comments

Comments
 (0)