Hello,
I have a question.
When I run Nuclei I get an output with this format:
[2022-08-24 12:31:38] [basic-auth-detection] [http] [info] https://aaa.com/xxxx
[2022-08-24 12:31:39] [basic-auth-detection] [http] [info] https://bbb.com:8888/xxxx
[2022-08-24 12:31:39] [basic-auth-detection] [http] [info] https://ccc.com/xxxx
[2022-08-24 12:31:40] [basic-auth-detection] [http] [info] https://ddd.com/xxxx
I would like to filter the column 3, 5 and 6 of the output, and apply sed
on the column 6, to replace the urls to the following format:
[basic-auth-detection] [http] [info] aaa.com
[basic-auth-detection] [http] [info] bbb.com:8888
[basic-auth-detection] [http] [info] ccc.com
[basic-auth-detection] [http] [info] ddd.com
With this I filter the columns I need:
cat vulns.txt | awk '{print $3 " " $5 " " $6}'
Now, how can I apply the sed
command on the column 6 to replace the urls to the format I want?
Happy hacking!