OWASP / O-Saft

O-Saft - OWASP SSL advanced forensic tool
GNU General Public License v2.0
373 stars 86 forks source link

Can't exec "lib/OTrace.pm": Permission denied #143

Closed EnDe closed 3 months ago

EnDe commented 3 months ago

as reported by @kylak :

./o-saft.pl --version reports

...
    OText                  24.06.24 lib/OText.pm
Can't exec "lib/OTrace.pm": Permission denied at ./o-saft.pl line 6194.
Use of uninitialized value $v in scalar chomp at ./o-saft.pl line 6196.
Use of uninitialized value $v in pattern match (m//) at ./o-saft.pl line 6197.
    OTrace                          <<not loaded>>
...
EnDe commented 3 months ago

Reason is missing execute permission of lib/OTrace.pm. May happen with other lib/*.pm files too, in particular when copied from elswhere (for example with git checkout ...).

Workaround: chmod 555 ./lin/OTrace.pm

EnDe commented 3 months ago

fixed be printing a Hint in o-saft.pl.

A general bullet-proof fix is difficult because there are various reason such a runtime exception may occur (file missing, missing +x bit, file corrupted, ...). However this should not happen when installing from official release files like o-saft.tgz. People working with development files are savvy enough to handle the problem with the workaround ;-)