Remove Port from domgrep output
This commit is contained in:
@@ -11,7 +11,10 @@ for line in sys.stdin:
|
|||||||
try:
|
try:
|
||||||
p=urlparse(line)
|
p=urlparse(line)
|
||||||
if not pattern.search(p.netloc):
|
if not pattern.search(p.netloc):
|
||||||
print(p.netloc)
|
if ":" in p.netloc:
|
||||||
|
print(p.netloc.split(":")[0])
|
||||||
|
else:
|
||||||
|
print(p.netloc)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user