ssltest: refresh and remove from profile

This commit is contained in:
blshkv 2016-12-27 22:57:46 +08:00
parent 3dd7d46a13
commit 084f66c5d6
No known key found for this signature in database
GPG key ID: 9CCF6FCB8D8A14BF
7 changed files with 57 additions and 98 deletions

View file

@ -1 +1 @@
DIST ssltest-0.4.pl 20630 SHA256 81fb3b417143752a49bf4b3db15c078a4719376d30a2a145b354fe059f22e1d5
DIST ssltest-0.5.pl 32024 SHA256 2b3a4e13f3c45a35ae1dc5e17ccf7e1a4b6cdccdb503f1715525acbf3e696d36 SHA512 543a39e4ea4018340162700ef205531f58e3b31a3ea36895c443de8c604a47b70d8de460ce9456bf5f9b1a452b08c638cec225748e8c0876d98a028ec4c98c33 WHIRLPOOL 1e0da5f255b818ff1a11a9f9a85a70abb65485daa81223f07fa26a1135254310565bcb5e7038a2d86582413b72d9bd4de264363b30682a3a525e2188dbd37ccb

View file

@ -0,0 +1,21 @@
--- ssltest.orig 2016-12-27 22:42:02.000000000 +0800
+++ ssltest 2016-12-27 22:48:09.626470121 +0800
@@ -59,7 +59,8 @@
# search strings to find to detect friendly "update your browser" responses
-$friendlystring = '^HTTP/1.1 401 Unauthorized';
+$friendlystring1 = '^HTTP/1.1 401 Unauthorized';
+$friendlystring2 = '^HTTP/1.1 500 Internal Server Error';
$friendlydetected = 0;
GetOptions('h|help' => \$help, 'v|verbose+' => \$verbose, 'r|ssl2' => \$ssl2, 's|ssl3' => \$ssl3, 't|tls1' => \$tls1, 'b|tls11' => \$tls11, 'c|tls12' => \$tls12, 'x|timeout=i' => \$timeout, 'i|ism' => \$ism, 'p|pci' => \$pci, 'g|grep' => \$grep, 'l|list' => \$list, 'f|friend' => \$friend, 'n|nohelp' => \$nohelp, 'z|vercert' => \$vcert);
@@ -336,7 +337,7 @@
$n = "=" x 40;
print "\n$n\nHTTP Request:\n$n\n$httprequest$n\nHTTP Response:\n$n\n$response\n$n\n\n";
}
- if ($response =~ m/($friendlystring)/) {
+ if ( ($response =~ m/($friendlystring1)/) || ($response =~ m/($friendlystring1)/) ) {
unsupported($_[0], $_[1], $_[2]);
$friendlydetected = 1;
return;

View file

@ -1,26 +0,0 @@
--- ssltest.orig 2011-11-15 16:42:42.910055002 +0800
+++ ssltest 2011-11-15 16:41:48.193055001 +0800
@@ -45,7 +45,8 @@
$pcistring = '^NULL|^ADH-|DES-CBC-|^EXP-'; # No NULL cipher, No Null Auth, No single DES, No Export encryption
# search strings to find to detect friendly "update your browser" responses
-$friendlystring = '^HTTP/1.1 401 Unauthorized';
+$friendlystring1 = '^HTTP/1.1 401 Unauthorized';
+$friendlystring2 = '^HTTP/1.1 500 Internal Server Error';
$friendlydetected = 0;
GetOptions('h|help' => \$help, 'v|verbose+' => \$verbose, 'r|ssl2' => \$ssl2, 's|ssl3' => \$ssl3, 't|tls1' => \$tls1, 'x|timeout=i' => \$timeout, 'i|ism' => \$ism, 'p|pci' => \$pci, 'g|grep' => \$grep, 'l|list' => \$list, 'f|friend' => \$friend, 'n|nohelp' => \$nohelp);
@@ -192,7 +193,12 @@
$n = "=" x 40;
print "\n$n\nHTTP Request:\n$n\n$httprequest$n\nHTTP Response:\n$n\n$response\n$n\n\n";
}
- if ($response =~ m/($friendlystring)/) {
+ if ($response =~ m/($friendlystring1)/) {
+ unsupported($_[0], $_[1], $_[2]);
+ $friendlydetected = 1;
+ return;
+ }
+ if ($response =~ m/($friendlystring2)/) {
unsupported($_[0], $_[1], $_[2]);
$friendlydetected = 1;
return;

View file

@ -1,38 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit eutils
DESCRIPTION="SSL testing tool written in perl"
HOMEPAGE="http://sites.google.com/site/lupingreycorner/"
SRC_URI="http://sites.google.com/site/lupingreycorner/${P}.pl"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="dev-perl/IO-Socket-SSL"
S="${WORKDIR}"/${PN}
src_unpack() {
einfo "Nothing to unpack"
mkdir "${S}"
cp "${DISTDIR}"/"${P}".pl "${S}"/ssltest
}
src_prepare() {
epatch "${FILESDIR}"/"${PN}"-friendly500.patch
}
src_compile() {
einfo "Nothing to compile"
}
src_install() {
dobin ssltest || die "install failed"
}

View file

@ -1,32 +0,0 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
DESCRIPTION="SSL testing tool written in perl"
HOMEPAGE="http://sites.google.com/site/lupingreycorner/"
SRC_URI="http://sites.google.com/site/lupingreycorner/${P}.pl"
LICENSE="AS IS"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="dev-perl/IO-Socket-SSL"
S="${WORKDIR}"/${PN}
src_unpack() {
einfo "Nothing to unpack"
mkdir "${S}"
cp "${DISTDIR}"/"${P}".pl "${S}"/ssltest
}
src_compile() {
einfo "Nothing to compile"
}
src_install() {
dobin ssltest || die "install failed"
}

View file

@ -0,0 +1,35 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit eutils
DESCRIPTION="SSL testing tool written in perl"
#HOMEPAGE="http://sites.google.com/site/lupingreycorner/"
HOMEPAGE="https://github.com/stephenbradshaw/ssltest"
SRC_URI="https://raw.githubusercontent.com/stephenbradshaw/ssltest/390212c507baa868866f4b4aa572ad8ed5116dd3/ssltest.pl -> ${P}.pl"
LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE=""
RDEPEND="dev-perl/IO-Socket-SSL"
S="${WORKDIR}"/${PN}
src_unpack() {
mkdir "${S}"
cp "${DISTDIR}"/"${P}".pl "${S}"/ssltest
}
src_prepare() {
default
epatch "${FILESDIR}"/"${PV}"-friendly500.patch
}
src_install() {
dobin ssltest
}

View file

@ -86,7 +86,6 @@ net-analyzer/nessus-plugins
net-analyzer/snort
~net-analyzer/sslsniff-0.8
~net-analyzer/sslstrip-0.9
~net-analyzer/ssltest-0.4
=net-analyzer/sslyze-0.14*
~net-analyzer/subdomainer-1.3
~net-analyzer/tcpdump-4.3.0