Questions
- Which of the following is true about the
eval
command?- It’s always safe to use
eval
in your scripts. - It’s always dangerous to use
eval
in your scripts. - It’s only safe to use
eval
in your scripts if it only takes input from and external source. - It’s only safe to use
eval
in your scripts if it only takes input from within your script.
- It’s always safe to use
- Which two of the following statements are true about the
/tmp/
directory? (Choose two.)- It’s completely secure, because only administrative users can enter it.
- Anybody can create files in it.
- Anybody can read files that
mktemp
creates in the/tmp/
directory. - Any files that
mktemp
creates in the/tmp/
directory can only be read by the user who created them.
- How would you prevent an attacker from obtaining information from a binary that you’ve created with
shc
?- It...