Skip to content

Commit

Permalink
#1 Fixed unwanted spaces while printing the URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
DevanshRaghav75 authored Jul 25, 2021
1 parent dc91d78 commit 610e056
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions grepX/core/greper.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ def grep_xss():
for each_pattern in xss_patterns:
if re.findall(each_pattern, each_read):
if SILENT:
print(each_read, file=OUTPUT)
print(each_read,sep='', end='', file=OUTPUT)
pass
else:
print(each_read)
print(each_read, sep='', end='')
found.append(each_read)
for i in found:
print(i, file=OUTPUT)
Expand All @@ -341,10 +341,10 @@ def grep_sqli():
for pattern in sqli_patterns:
if re.findall(pattern, TAR):
if SILENT:
print(TAR, file=OUTPUT)
print(TAR,sep='', end='' , file=OUTPUT)
pass
else:
print(TAR)
print(TAR, sep='', end='')
found.append(TAR)
for i in found:
print(i, file=OUTPUT)
Expand All @@ -357,10 +357,10 @@ def grep_lfi():
for pattern in lfi_patterns:
if re.findall(pattern, TAR):
if SILENT:
print(TAR, file=OUTPUT)
print(TAR,sep='', end='', file=OUTPUT)
pass
else:
print(TAR)
print(TAR, sep='', end='')
found.append(TAR)
for i in found:
print(i, file=OUTPUT)
Expand All @@ -373,10 +373,10 @@ def grep_ssrf():
for pattern in ssrf_patterns:
if re.findall(pattern, TAR):
if SILENT:
print(TAR, file=OUTPUT)
print(TAR,sep='', end='', file=OUTPUT)
pass
else:
print(TAR)
print(TAR, sep='', end='')
found.append(TAR)
for i in found:
print(i, file=OUTPUT)
Expand All @@ -389,10 +389,10 @@ def grep_ssti():
for pattern in ssti_patterns:
if re.findall(pattern, TAR):
if SILENT:
print(TAR, file=OUTPUT)
print(TAR,sep='', end='', file=OUTPUT)
pass
else:
print(TAR)
print(TAR, sep='', end='')
found.append(TAR)
for i in found:
print(i, file=OUTPUT)
Expand All @@ -405,10 +405,10 @@ def grep_rce():
for pattern in rce_patterns:
if re.findall(pattern, TAR):
if SILENT:
print(TAR, file=OUTPUT)
print(TAR,sep='', end='', file=OUTPUT)
pass
else:
print(TAR)
print(TAR, sep='', end='')
found.append(TAR)
for i in found:
print(i, file=OUTPUT)
Expand All @@ -421,10 +421,10 @@ def grep_idor():
for pattern in idor_patterns:
if re.findall(pattern, TAR):
if SILENT:
print(TAR, file=OUTPUT)
print(TAR,sep='', end='', file=OUTPUT)
pass
else:
print(TAR)
print(TAR, sep='', end='')
found.append(TAR)
for i in found:
print(i, file=OUTPUT)
Expand All @@ -437,10 +437,10 @@ def grep_redirect():
for pattern in redirect_patterns:
if re.findall(pattern, TAR):
if SILENT:
print(TAR, file=OUTPUT)
print(TAR,sep='', end='', file=OUTPUT)
pass
else:
print(TAR)
print(TAR, sep='', end='')
found.append(TAR)
for i in found:
print(i, file=OUTPUT)
print(i, file=OUTPUT)

0 comments on commit 610e056

Please sign in to comment.