Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Loic
hbsd-checksec
Commits
70198dd0
Commit
70198dd0
authored
Aug 04, 2020
by
David Suarez
Browse files
Fix JSON output in --listfile mode to produce a correct json object
parent
ee6f6093
Changes
1
Hide whitespace changes
Inline
Side-by-side
checksec
View file @
70198dd0
...
...
@@ -1653,9 +1653,9 @@ chk_file () {
chk_file_list
()
{
if
${
extended_checks
}
;
then
echo_message
"RELRO STACK CANARY NX PIE SELFRANDO Clang CFI SafeStack RPATH RUNPATH
\t
Symbols
\t\t
FORTIFY
\t
Fortified
\t
Fortifiable
\t
FILE
\n
"
''
''
'{'
echo_message
"RELRO STACK CANARY NX PIE SELFRANDO Clang CFI SafeStack RPATH RUNPATH
\t
Symbols
\t\t
FORTIFY
\t
Fortified
\t
Fortifiable
\t
FILE
\n
"
''
''
'{
\n
'
else
echo_message
"RELRO STACK CANARY NX PIE RPATH RUNPATH
\t
Symbols
\t\t
FORTIFY
\t
Fortified
\t
Fortifiable
\t
FILE
\n
"
''
''
'{'
echo_message
"RELRO STACK CANARY NX PIE RPATH RUNPATH
\t
Symbols
\t\t
FORTIFY
\t
Fortified
\t
Fortifiable
\t
FILE
\n
"
''
''
'{
\n
'
fi
while
IFS
=
""
read
-r
p
||
[
-n
"
$p
"
]
...
...
@@ -1691,11 +1691,12 @@ chk_file_list () {
if
[[
"
$(
find
"
${
CHK_FILE
}
"
\(
-perm
-004000
-o
-perm
-002000
\)
-type
f
-print
)
"
]]
;
then
echo_message
"
\0
33[37;41m
${
CHK_FILE
}
\0
33[m
\n
"
",
${
CHK_FILE
}
\n
"
" filename='
${
CHK_FILE
}
'/>
\n
"
" } }"
else
echo_message
"
${
CHK_FILE
}
\n
"
",
${
CHK_FILE
}
\n
"
" filename='
${
CHK_FILE
}
'/>
\n
"
" }
}
"
echo_message
"
${
CHK_FILE
}
\n
"
",
${
CHK_FILE
}
\n
"
" filename='
${
CHK_FILE
}
'/>
\n
"
" }
,
\n
"
fi
done
<
"
${
CHK_FILE_LIST
}
"
echo_message
''
''
''
' }\n'
}
chk_proc_all
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment