diff options
author | Peter Palfrader <peter@palfrader.org> | 2013-07-16 10:17:59 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2013-07-16 10:17:59 +0000 |
commit | 13e948668a511b1af30eb81a3c9c8bc8a036fb40 (patch) | |
tree | af2ba4d4bfcc622c9ab2c9affaa3ec50d2805824 | |
parent | 425c214217452abc153a303c6445e2e0af4e8d7c (diff) |
Fix filter
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@639 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-x | tor-exit-ssl-check | 4 |
1 files 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." |