Use umask(077), mainly to secure hashcat.pot from reading from other users, but shoul...
authorJens Steube <jens.steube@gmail.com>
Wed, 18 May 2016 07:56:23 +0000 (09:56 +0200)
committerJens Steube <jens.steube@gmail.com>
Wed, 18 May 2016 07:56:23 +0000 (09:56 +0200)
src/hashcat.c

index c311e1c..ff33c72 100644 (file)
@@ -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
    */