with fields separated by tabs, you can remove the date, time, port (443), and protocol (TCP) information
December 21, 2023 · View on GitHub
#===================================================================== #!/bin/bash #wpscan.sh scan wordpress websites in subdomains/URLs while read url; do echo "Scanning URL: url"; then wpscan_output=url" | grep "WordPress version")
if [ -z "$wpscan_output" ]; then
echo "This $url does not run WordPress"
else
echo "$wpscan_output"
fi
else
echo "$url is not accessible"
fi
done < wordpress_urls.txt
#=====================================================================
with fields separated by tabs, you can remove the date, time, port (443), and protocol (TCP) information
#file contents
9.11.2022 06:10:14 example1.com 443 TCP 9.11.2022 06:10:15 example2.com 443 TCP
- awk -F"\t" '{print $2}' filename > newfile
- awk '{print $3}' https.txt > output_file
#=====================================================================
with fields separated by tabs, you can remove the date, time, port (443), and protocol (TCP) information
#file contents
9.11.2022 06:10:14 example1.com 443 TCP 9.11.2022 06:10:15 example2.com 443 TCP
#python code with open("input_file", "r") as f: lines = f.readlines()
with open("output_file", "w") as f: for line in lines: parts = line.split("\t") output_line = "\t".join(parts[1:-2]) + "\n" f.write(output_line)
#===================================================================== #file contents
example1.com example2.com
add "https://" at the beginning of each line in the file
awk '{print "https://" $0}' filename > newfile
https://example1.com https://example2.com
#=====================================================================