Collecting snippets here for benchmarking. Eventually, I want to benchmark Thinkpad L480 vs. Nintento switch vs. Raspi 4, all running Linux. Goal is not to compare bare computing power, I already did that, but computing power together with power consumption: so who computes most for per consumed power?
threads: by default, one thread per cpu is spawned. Fits the 3 benchmark platforms, all have 4 cpus
memory: John seems to take >100MB or RAM, fits all 3 benchmark platforms
I need some simple password which can be found after some time.. to measure the time.
cd Downloads
wget https://www.openwall.com/john/k/john-1.9.0-jumbo-1.tar.xz
tar xJfv john-1.9.0-jumbo-1.tar.xz
cd john-1.9.0-jumbo-1/src/
./configure
make -s clean && make -sj4
cd ../run
# for testing, hash password 'calvin' and see if it gets
# found by john
openssl passwd -6 -salt xyz calvin >mypasswd_test_sha512
./john mypasswd_test_sha512
# if you want to bruteforce hashes from the running system
sudo ./unshadow /etc/passwd /etc/shadow > mypasswd
./john mypasswd
# other hash creation methods
openssl passwd -1 -salt xyz secretpassword >mypasswd_md5
openssl passwd -2 -salt xyz secretpassword >mypasswd_sha256
openssl passwd -6 -salt xyz secretpassword >mypasswd_sha512