From 13e948668a511b1af30eb81a3c9c8bc8a036fb40 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 16 Jul 2013 10:17:59 +0000 Subject: Fix filter git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@639 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- tor-exit-ssl-check | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tor-exit-ssl-check b/tor-exit-ssl-check index c03aced..0c69dc3 100755 --- a/tor-exit-ssl-check +++ b/tor-exit-ssl-check @@ -158,7 +158,7 @@ for ((i=0; i < ${#targets[@]}; i++)); do [ -n "$cachedir" ] && cp "$tmpdir/cert-direct-$i" "$cachedir/tesc3-$host" fi - egrep -v '(Session-ID|Master-Key|Start Time|SSL handshake has read):' < "$tmpdir/cert-direct-$i" > "$tmpdir/cert-direct-$i.filtered" + egrep -v '(Session-ID:|Master-Key:|Start Time:|SSL handshake has read)' < "$tmpdir/cert-direct-$i" > "$tmpdir/cert-direct-$i.filtered" [ "$verbose" = 0 ] || echo "====" done @@ -213,7 +213,7 @@ while : ; do [ "$verbose" = 0 ] || echo "Via $server to $host:" TORSOCKS_CONF_FILE="$tmpdir/torsocks.conf" torify openssl s_client -no_ticket -showcerts -connect "$host" < /dev/null 2>&1 | eatdata "$tmpdir/cert-tor-$i" - egrep -v '(Session-ID|Master-Key|Start Time|SSL handshake has read):' < "$tmpdir/cert-tor-$i" > "$tmpdir/cert-tor-$i.filtered" + egrep -v '(Session-ID:|Master-Key:|Start Time:|SSL handshake has read)' < "$tmpdir/cert-tor-$i" > "$tmpdir/cert-tor-$i.filtered" if diff "$tmpdir/cert-tor-$i.filtered" "$tmpdir/cert-direct-$i.filtered" > /dev/null; then echo "RESULT[$host]: $server: No real differences." -- cgit v1.2.3