Exploit databaseDownload repository ZIP
GH-c302344c2d8b2837353936c5ce0bd2ec
trinadh465/openssl-1_0_1g_cve-2015-3195
Sources for CVE-2015-3195
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files44
trinadh465/openssl-1_0_1g_cve-2015-3195Revision 838075e65113
- ↑..Parent directory
- pl/
- .cvsignore
- FreeBSD.sh
- add_cr.pl
- bat.sh
- ck_errf.pl
- clean-depend.pl
- copy.pl
- cygwin.sh
- deleof.pl
- deltree.com
- dirname.pl
- do_ms.sh
- domd
- err-ins.pl
- extract-names.pl
- extract-section.pl
- files.pl
- fixNT.sh
- install.sh
- libeay.num
- mk1mf.pl
- mkcerts.sh
- mkdef.pl
- mkdir-p.pl
- mkerr.pl
- mkfiles.pl
- mklink.pl
- mkrc.pl
- mkstack.pl
- opensslwrap.sh
- perlpath.pl
- pod2man.pl
- pod2mantest
- pod2mantest.pod
- point.sh
- selftest.pl
- shlib_wrap.sh
- sp-diff.pl
- speed.sh
- src-dep.pl
- ssleay.num
- tab_num.pl
- x86asm.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
util/ck_errf.pl
Perl · 1,215 bytes#!/usr/local/bin/perl
#
# This is just a quick script to scan for cases where the 'error'
# function name in a XXXerr() macro is wrong.
#
# Run in the top level by going
# perl util/ck_errf.pl */*.c */*/*.c
#
my $err_strict = 0;
my $bad = 0;
foreach $file (@ARGV)
{
if ($file eq "-strict")
{
$err_strict = 1;
next;
}
open(IN,"<$file") || die "unable to open $file\n";
$func="";
while (<IN>)
{
if (!/;$/ && /^([a-zA-Z].*[\s*])?([A-Za-z_0-9]+)\(.*[),]/)
{
/^([^()]*(\([^()]*\)[^()]*)*)\(/;
$1 =~ /([A-Za-z_0-9]*)$/;
$func = $1;
$func =~ tr/A-Z/a-z/;
}
if (/([A-Z0-9]+)err\(([^,]+)/ && ! /ckerr_ignore/)
{
$errlib=$1;
$n=$2;
if ($func eq "")
{ print "$file:$.:???:$n\n"; $bad = 1; next; }
if ($n !~ /([^_]+)_F_(.+)$/)
{
# print "check -$file:$.:$func:$n\n";
next;
}
$lib=$1;
$n=$2;
if ($lib ne $errlib)
{ print "$file:$.:$func:$n [${errlib}err]\n"; $bad = 1; next; }
$n =~ tr/A-Z/a-z/;
if (($n ne $func) && ($errlib ne "SYS"))
{ print "$file:$.:$func:$n\n"; $bad = 1; next; }
# print "$func:$1\n";
}
}
close(IN);
}
if ($bad && $err_strict)
{
print STDERR "FATAL: error discrepancy\n";
exit 1;
}