From f5ee678bbeec0b4565ca23f3998977f5d3edf447 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Wed, 18 May 2016 09:56:23 +0200 Subject: [PATCH] Use umask(077), mainly to secure hashcat.pot from reading from other users, but should be a good idea for all files. See https://github.com/hashcat/oclHashcat/issues/331 for details --- src/hashcat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hashcat.c b/src/hashcat.c index c311e1c31..ff33c7277 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -5251,6 +5251,8 @@ int main (int argc, char **argv) if (getenv ("POCL_KERNEL_CACHE") == NULL) putenv ((char *) "POCL_KERNEL_CACHE=0"); + umask (077); + /** * Real init */