![]() |
|
Message-ID: <28827918.803352.1756693003667@mail.yahoo.com> Date: Mon, 1 Sep 2025 02:16:43 +0000 (UTC) From: Robert Hinson <oppiet35@...oo.com> To: "john-users@...ts.openwall.com" <john-users@...ts.openwall.com> Subject: Re: suppressing potfile / minimizing writes? Could the pot be an in memory filesystem? On Sunday, August 31, 2025 at 06:59:11 PM EDT, Royce Williams <royce@...ho.org> wrote: On Thu, Aug 28, 2025 at 12:21 PM Solar Designer <solar@...nwall.com> wrote: > On Tue, Aug 26, 2025 at 09:22:07PM -0800, Royce Williams wrote: > > I would like to do the equivalent of disabling potfile writing entirely, > or > > write it to /dev/null. This is for various benchmarking tasks, in which I > > do not want I/O write speed to affect the results. > > > > I tried --pot=/dev/null, but john attempts to chmod the potfile prior to > > running, which fails on Linux so john aborts. I then tried a FIFO to do > the > > equivalent, which john explicitly disallows. > > > > How can I accomplish this? > > We do not have a feature like this, sorry. Maybe you'd contribute it. > This is interesting! Naively, there are a couple of options. One approach would be to detect when filesystem objects that do not support chmod are invoked, and skip such steps, and make other modifications so that such special files could be used for output. Another option might be to simply detect when specific, well-known filesystem objects (/dev/null on Unix-likes, NUL on Windows, etc.) are used for --pot, and simply ... return early on attempts to write to them, thereby skipping the filesystem work entirely. Which of these would be preferable? Or would some other choice be better? Royce
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.