File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
<p align =" center " >
2
- <img src =" .github/image.png " width =30 % >
2
+ <img src =" .github/image.png " width =20 % >
3
3
</p >
4
4
<h1 align =" center " >
5
5
<b >Bhedak</b >
Original file line number Diff line number Diff line change 7
7
import urllib .parse as ul
8
8
from sys import stdin , stdout , argv , exit
9
9
10
- encoded = ul .quote (str (argv [1 ]), safe = '' )
10
+ #@> TAKE INPUT FROM USER AS "sys.argv[1]"", ELSE IT WILL USE "FUZZ" AS THE VALUE
11
+ try :
12
+ encoded = ul .quote (str (argv [1 ]), safe = '' )
13
+ except IndexError :
14
+ encoded = ul .quote ("FUZZ" , safe = '' )
15
+
16
+ #@> READ URLs AS STDIN AND USE REGEX TO FILTER AND REPLACE
11
17
try :
12
18
for url in stdin .readlines ():
13
19
domain = str (url .strip ())
14
20
stdout .write (re .sub (r"=[^?\|&]*" , '=' + str (encoded ), str (domain )) + '\n ' )
15
21
except KeyboardInterrupt :
16
22
exit (0 )
17
- except IndexError :
18
- exit (127 )
19
23
except :
20
- exit (127 )
24
+ exit (127 )
You can’t perform that action at this time.
0 commit comments