Please note, this is a STATIC archive of website hashcat.net from October 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.

hashcat Forum

Full Version: Two sessions writing to the same potfile
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can 2 separate hashcat sessions write to the same potfile?

Or will that cause a tear in the fabric of the space time continuum?

In Linux, this may come down to how 2 separate processes handle appending data to the same file.  With databases, "locks" can occur on objects while they are being written to.  Is there a Linux OS equivalent?  Would there be a "lock" on the file when one process is appending to the potfile so that the other process has to wait before it can also append?

I found a few references.
https://gavv.github.io/blog/file-locks/
https://www.thegeekstuff.com/2012/04/lin...ing-types/
https://en.wikipedia.org/wiki/File_locking
sorry
sorry
(04-06-2018, 08:29 AM)CUwindows00 Wrote: [ -> ]Hello everyone

Ask a question of hashcat rules
Why do not many combination rules have such a rule?

Swap location attack rule
For example:

cat 1.txt 
abc

cat 2.txt
123

cat 3.txt
!@#$

I think this rule is advanced and effective.

Hashcat does not have such a rule

The 3 combination attack rule generation should be the result of the following dictionary

abcabcabc
abcabc123
abcabc!@#$
abc123abc
abc123123
abc123!@#$
abc!@#$abc
abc!@#$123
abc!@#$!@#$
123abcabc
123abc123
123abc!@#$
123123abc
123123123
123123!@#$
123!@#$abc
123!@#$123
123!@#$!@#$
!@#$abcabc
!@#$abc123
!@#$abc!@#$
!@#$123abc
!@#$123123
!@#$123!@#$
!@#$!@#$abc
!@#$!@#$123
!@#$!@#$!@#$

Maybe you should consider starting your own thread instead of randomly posting on this one.

I'm pretty sure this has nothing to do with file locks.
sorry
(04-06-2018, 07:28 AM)devilsadvocate Wrote: [ -> ]Can 2 separate hashcat sessions write to the same potfile?

Of course they can... Unless you specify the option to disable potfile within one of the sessions. I'm sure you could have just easily tested this on your own. Tongue

Also, trying to edit the potfile and save it will fall into what you're referring to, therefore throwing an error of "file is in use by another process."
Use the source, Luke. Smile

If you look at locking.c and potfile.c in the source code, it appears that (as long as you're not on Windows), some basic locking of the potfile is happening.

That being said, I suspect that using -o/--outfile combined --remove would probably be more easily controlled.