Curl response
Bash scripts from elearn security course - ejpt
Get http response codes using curl
#curl script to get http response
curl -L --write-out "%{http_code}\n" --output /dev/null --silent --insecure http://hello.expiredssl.comread a list of domains and append http/https
# cat domain.txt
# 127.0.0.1:1337
# www.google.com.sg
# myscript.sh
#!/bin/bash
while read line;
do
echo $line
done < domains.txt
# ./myscript.sh
# 127.0.0.1:1337
# www.google.com.sgLast updated
Was this helpful?