Skip to content

Instantly share code, notes, and snippets.

@fuglede
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fuglede/b36e8f28a34c11018d28 to your computer and use it in GitHub Desktop.
Save fuglede/b36e8f28a34c11018d28 to your computer and use it in GitHub Desktop.
Danske kommunale hjemmesider vs. SSLv3
aabenraa.dk
aalborg.dk
aarhus.dk
aeroekommune.dk
albertslund.dk
alleroedkommune.dk
assens.dk
ballerup.dk
billund.dk
brk.dk
broenderslev.dk
brondby.dk
dragoer.dk
egedalkommune.dk
esbjergkommune.dk
faaborgmidtfyn.dk
fanoe.dk
favrskov.dk
faxekommune.dk
fredensborg.dk
fredericia.dk
frederiksberg.dk
frederikshavn.dk
frederikssund.dk
furesoe.dk
gentofte.dk
gladsaxe.dk
glostrup.dk
greve.dk
gribskov.dk
guldborgsund.dk
haderslev.dk
halsnaes.dk
hedensted.dk
helsingor.dk
herlev.dk
herning.dk
hillerod.dk
hjoerring.dk
holbaek.dk
holstebro.dk
horsenskommune.dk
horsholm.dk
htk.dk
hvidovre.dk
brande.dk
ishoj.dk
jammerbugt.dk
kalundborg.dk
kerteminde.dk
kk.dk
koege.dk
kolding.dk
laesoe.dk
langelandkommune.dk
lejre.dk
lemvig.dk
lolland.dk
ltk.dk
mariagerfjord.dk
middelfart.dk
morsoe.dk
naestved.dk
norddjurs.dk
nordfynskommune.dk
nyborg.dk
odder.dk
odense.dk
odsherred.dk
randers.dk
rebild.dk
ringsted.dk
rk.dk
rksk.dk
roskilde.dk
rudersdal.dk
samsoe.dk
silkeborg.dk
skanderborg.dk
skive.dk
slagelse.dk
solrod.dk
sonderborgkommune.dk
soroe.dk
stevns.dk
struer.dk
svendborg.dk
syddjurs.dk
taarnby.dk
thisted.dk
toender.dk
vallensbaek.dk
vardekommune.dk
vejenkom.dk
vejle.dk
vesthimmerland.dk
viborg.dk
vordingborg.dk
$ bash tjekSSL.sh kommuner
aabenraa.dk...................Protocol : TLSv1.2
aalborg.dk....................connect: Connection timeout
aarhus.dk.....................Protocol : TLSv1.2
aeroekommune.dk...............Protocol : TLSv1.2
albertslund.dk................connect: Connection timeout
alleroedkommune.dk............Protocol : TLSv1
assens.dk.....................connect: Connection refused
ballerup.dk...................Protocol : TLSv1.2
billund.dk....................Protocol : TLSv1.2
brk.dk........................connect: Connection refused
broenderslev.dk...............connect: Connection timeout
brondby.dk....................connect: Connection timeout
dragoer.dk....................connect: Connection timeout
egedalkommune.dk..............Protocol : TLSv1
esbjergkommune.dk.............connect: Connection timeout
faaborgmidtfyn.dk.............Protocol : TLSv1
fanoe.dk......................Protocol : TLSv1.2
favrskov.dk...................Protocol : TLSv1.2
faxekommune.dk................connect: Connection refused
fredensborg.dk................connect: Connection refused
fredericia.dk.................Protocol : TLSv1
frederiksberg.dk..............connect: Connection timeout
frederikshavn.dk..............Protocol : TLSv1
frederikssund.dk..............connect: Connection refused
furesoe.dk....................connect: Connection timeout
gentofte.dk...................connect: Connection refused
gladsaxe.dk...................connect: Connection timeout
glostrup.dk...................connect: Connection refused
greve.dk......................connect: Connection timeout
gribskov.dk...................connect: Connection timeout
guldborgsund.dk...............Protocol : TLSv1
haderslev.dk..................Protocol : TLSv1
halsnaes.dk...................Protocol : TLSv1
hedensted.dk..................connect: Connection refused
helsingor.dk..................Protocol : TLSv1.2
herlev.dk.....................Protocol : TLSv1.2
herning.dk....................Protocol : TLSv1
hillerod.dk...................connect: Connection refused
hjoerring.dk..................connect: Connection refused
holbaek.dk....................Protocol : TLSv1.2
holstebro.dk..................connect: Connection refused
horsenskommune.dk.............connect: Connection refused
horsholm.dk...................connect: Connection timeout
htk.dk........................Protocol : TLSv1
hvidovre.dk...................connect: Connection refused
brande.dk.....................Protocol : TLSv1.2
ishoj.dk......................connect: Connection refused
jammerbugt.dk.................Protocol : TLSv1.2
kalundborg.dk.................Protocol : TLSv1.2
kerteminde.dk.................connect: Connection refused
kk.dk.........................Protocol : TLSv1.2
koege.dk......................Protocol : TLSv1
kolding.dk....................Protocol : TLSv1.2
laesoe.dk.....................Protocol : TLSv1.2
langelandkommune.dk...........Protocol : TLSv1
lejre.dk......................Protocol : TLSv1.2
lemvig.dk.....................connect: Connection refused
lolland.dk....................connect: Connection refused
ltk.dk........................connect: Connection timeout
mariagerfjord.dk..............connect: Connection timeout
middelfart.dk.................Protocol : TLSv1.2
morsoe.dk.....................connect: Connection refused
naestved.dk...................connect: Connection timeout
norddjurs.dk..................connect: Connection timeout
nordfynskommune.dk............Protocol : TLSv1
nyborg.dk.....................connect: Connection refused
odder.dk......................connect: Connection refused
odense.dk.....................Protocol : TLSv1
odsherred.dk..................connect: Connection timeout
randers.dk....................connect: Connection refused
rebild.dk.....................Protocol : TLSv1.2
ringsted.dk...................Protocol : TLSv1.2
rk.dk.........................Protocol : TLSv1.2
rksk.dk.......................connect: Connection refused
roskilde.dk...................connect: Connection refused
rudersdal.dk..................Protocol : TLSv1
samsoe.dk.....................connect: Connection refused
silkeborg.dk..................connect: Connection refused
skanderborg.dk................Protocol : TLSv1
skive.dk......................connect: Connection timeout
slagelse.dk...................Protocol : TLSv1
solrod.dk.....................Protocol : TLSv1.2
sonderborgkommune.dk..........connect: Connection timeout
soroe.dk......................connect: Connection timeout
stevns.dk.....................Protocol : TLSv1.2
struer.dk.....................connect: Connection timeout
svendborg.dk..................connect: Connection refused
syddjurs.dk...................Protocol : TLSv1
taarnby.dk....................Protocol : TLSv1
thisted.dk....................connect: Connection timeout
toender.dk....................connect: Connection refused
vallensbaek.dk................Protocol : TLSv1.2
vardekommune.dk...............connect: Connection refused
vejenkom.dk...................connect: Connection timeout
vejle.dk......................Protocol : TLSv1
vesthimmerland.dk.............Protocol : TLSv1.2
viborg.dk.....................Protocol : TLSv1
vordingborg.dk................connect: Connection timeout
for k in $(cat $1); do
n=$(expr 30 - ${#k});
l=`printf "%0.s." $(seq 1 $n)`;
p=`timeout 5 openssl s_client -connect $k:443 2>&1 < /dev/null | grep "refused\|Protocol"| sed "s/^ *//"`;
if [ -n "$p" ]; then
echo -e $k$l$p;
else
echo -e $k$l'connect: Connection timeout'
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment