diff options
author | mboelen <michael@cisofy.com> | 2015-12-21 13:25:38 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2015-12-21 13:25:38 +0300 |
commit | 526c519300868dab2560aa48e97a7b1a66f69307 (patch) | |
tree | f14ff499856dc3c13ca9c0d700876b96a367d385 /include/binaries | |
parent | d32de797167a104b814a3d054ea04e08dd3e14e6 (diff) |
Retrieve cURL version number
Diffstat (limited to 'include/binaries')
-rw-r--r-- | include/binaries | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/binaries b/include/binaries index d1685756..616ee777 100644 --- a/include/binaries +++ b/include/binaries @@ -92,7 +92,7 @@ chkrootkit) CHKROOTKITFOUND=1; CHKROOTKITBINARY="${BINARY}"; MALWARE_SCANNER_INSTALLED=1; logtext " Found known binary: chkrootkit (malware scanner) - ${BINARY}" ;; comm) COMMBINARY="${BINARY}"; logtext " Found known binary: comm (file compare) - ${BINARY}" ;; csum) CSUMFOUND=1; CSUMBINARY="${BINARY}"; logtext " Found known binary: csum (hashing tool on AIX) - ${BINARY}" ;; - curl) CURLFOUND=1; CURLBINARY="${BINARY}"; logtext " Found known binary: curl (browser) - ${BINARY}" ;; + curl) CURLFOUND=1; CURLBINARY="${BINARY}"; CURLVERSION=`${BINARY} --version | grep "^curl" | awk '{ if ($1=="curl") { print $2 }}'`; logtext " Found known binary: curl (browser) - ${BINARY}" ;; debsecan) DEBSECANBINARY="${BINARY}"; logtext " Found known binary: debsecan (package vulnerability checking) - ${BINARY}" ;; debsums) DEBSUMSBINARY="${BINARY}"; logtext " Found known binary: debsums (package integrity checking) - ${BINARY}" ;; dig) if [ -f ${BINARY} ]; then DIGFOUND=1; DIGBINARY=${BINARY}; logtext " Found known binary: dig (network/dns tool) - ${BINARY}"; fi ;; |