Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <d471e7c9-315f-4cec-a70a-33f8a1c51d67@dismail.de>
Date: Sat, 17 May 2025 10:04:32 +0300 (GMT+03:00)
From: para <para@...mail.de>
To: john-users@...ts.openwall.com
Subject: Issue: openbsd_softraid2john does not work

Last week I lost my FDE password to my OpenBSD install. I tried guessing it, but that didn't work, however, thanks to a quick web search I discovered JtR has (or more likely, had) support for OpenBSD softraid encrypted disks.

Trying to run the "openbsd_softraid2john" tool led me to the following traceback:

```
Traceback (most recent call last):
  File "/usr/bin/openbsd_softraid2john", line 89, in <module>
    process_file(sys.argv[i])
    ~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/usr/bin/openbsd_softraid2john", line 42, in process_file
    headers = open(filename).read()[:0xaa0 + 81920]
              ~~~~~~~~~~~~~~~~~~~^^
  File "<frozen codecs>", line 325, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xea in position 0: invalid continuation byte
```

Now, I don't know Python, but from my attempt at reading and fixing "openbsd_softraid2john.py" it seems like the code has rotted and been forgotten (last commit is from 4 years ago: https://github.com/openwall/john/commits/bleeding-jumbo/run/openbsd_softraid2john.py
).

I looked at some of the other files in the run/ directory and changed a bit of code and I thought I managed to patch the file, but I was wrong: running john on the converted file outputted this:
"Using default input encoding: UTF-8
No password hashes loaded (see FAQ)"

After skim-reading the FAQ, I'm assuming that john was unable to recognize any hashes, which means the conversion did not work, which probably means that my shabby attempt at patching the file wasn't good enough.

As this is beyond my skill level, I would like to ask for your help by updating the upstream code for proper OpenBSD softraid encrypted disk support (or at least sending a quick patch) so that I'm able to recover my files. This disk means quite a lot to me - it's my main machine and has all of my memories and documents on it.

I could find the following resources, but don't know how up-to-date the information is:
* https://words.filippo.io/so-i-lost-my-openbsd-fde-password/
* https://web.archive.org/web/20220527164720/https://thiébaud.fr/openbsd_softraid.html

Thank you,
para

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.