lint fix
parent
6a74084bd2
commit
5b8b0ba4f3
|
@ -29,14 +29,14 @@ code:
|
||||||
source: |
|
source: |
|
||||||
# find path to liblzma used by sshd
|
# find path to liblzma used by sshd
|
||||||
path="$(ldd $(which sshd) | grep liblzma | grep -o '/[^ ]*')"
|
path="$(ldd $(which sshd) | grep liblzma | grep -o '/[^ ]*')"
|
||||||
|
|
||||||
# does it even exist?
|
# does it even exist?
|
||||||
if [ "$path" == "" ]
|
if [ "$path" == "" ]
|
||||||
then
|
then
|
||||||
echo probably not vulnerable
|
echo probably not vulnerable
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check for function signature
|
# check for function signature
|
||||||
if hexdump -ve '1/1 "%.2x"' "$path" | grep -q f30f1efa554889f54c89ce5389fb81e7000000804883ec28488954241848894c2410
|
if hexdump -ve '1/1 "%.2x"' "$path" | grep -q f30f1efa554889f54c89ce5389fb81e7000000804883ec28488954241848894c2410
|
||||||
then
|
then
|
||||||
|
@ -45,12 +45,8 @@ code:
|
||||||
echo probably not vulnerable
|
echo probably not vulnerable
|
||||||
fi
|
fi
|
||||||
|
|
||||||
matchers:
|
|
||||||
- type: word
|
|
||||||
words:
|
|
||||||
- "probably vulnerable"
|
|
||||||
|
|
||||||
extractors:
|
extractors:
|
||||||
- type: dsl
|
- type: dsl
|
||||||
dsl:
|
dsl:
|
||||||
- response
|
- response
|
||||||
|
# digest: 4a0a00473045022100a77874a0147b7bec600048162bb36b1e05ebeef8632466a877c537337be8ad5702201e1b8f9b3755abec0150d9d93a8a5d46c7a381deafbb97d594262c768d10f3f8:c40a3a04977cdbf9dca31c1002ea8279
|
Loading…
Reference in New Issue