poniedziałek, 29 grudnia 2008

John the Ripper Multi Core - preludium

http://www.osix.net/modules/article/index.php?id=455

http://www.oiepoie.nl/2007/02/11/high-speed-password-cracking-with-john-the-ripper/

Ewentualne wsparcie:

http://ubuntuforums.org/archive/index.php/t-543354.html

Na czystym Debianie, na razie bez wielu rdzeni:

apt-get install gcc
apt-get install build-essential
make linux-x86-sse2 clean
make linux-x86-sse2
./john --test

Benchmarking: Traditional DES [128/128 BS SSE2]... DONE
Many salts: 598272 c/s real, 598272 c/s virtual
Only one salt: 530432 c/s real, 530432 c/s virtual

Benchmarking: BSDI DES (x725) [128/128 BS SSE2]... DONE
Many salts: 20720 c/s real, 20720 c/s virtual
Only one salt: 20311 c/s real, 20352 c/s virtual

Benchmarking: FreeBSD MD5 [32/32]... DONE
Raw: 3679 c/s real, 3679 c/s virtual

Benchmarking: OpenBSD Blowfish (x32) [32/32]... DONE
Raw: 288 c/s real, 288 c/s virtual

Benchmarking: Kerberos AFS DES [48/64 4K MMX]... DONE
Short: 138137 c/s real, 138137 c/s virtual
Long: 388761 c/s real, 388761 c/s virtual

Benchmarking: NT LM DES [128/128 BS SSE2]... DONE
Raw: 3057K c/s real, 4448K c/s virtual


Pierwsze kroki w kierunku wielu rdzeni:

apt-get install openmpi-dev
apt-get install openmpi-bin
apt-get install openmpi-dbg

apt-get install openssl
apt-get install libssl-dev

Po skompilowaniu Johna z patchem MPI:
mpirun -np 2 ./john --test

Benchmarking: Traditional DES [64/64 BS MMX]... DONE
Many salts: nan c/s real, 977779.00 c/s virtual

Only one salt: 441712.00 c/s real, 897735.00 c/s virtual

Benchmarking: BSDI DES (x725) [64/64 BS MMX]... DONE
Many salts: nan c/s real, 34218.00 c/s virtual

Only one salt: 16716.00 c/s real, 33566.00 c/s virtual

Benchmarking: FreeBSD MD5 [32/32]... DONE
Raw: 3650.00 c/s real, 7367.00 c/s virtual


Benchmarking: OpenBSD Blowfish (x32) [32/32]... DONE
Raw: 286.00 c/s real, 576.00 c/s virtual


Benchmarking: Kerberos AFS DES [48/64 4K MMX]... DONE
Short: nan c/s real, 276786.00 c/s virtual

Long: 377243.00 c/s real, 754487.00 c/s virtual

Benchmarking: NT LM DES [64/64 BS MMX]... DONE
Raw: nan c/s real, 8940533.00 c/s virtual


Benchmarking: Apache MD5 [32/32]... DONE
Raw: 3628.00 c/s real, 7257.00 c/s virtual


Benchmarking: mysql [mysql]... DONE
Raw: 1294144.00 c/s real, 2588289.00 c/s virtual


Benchmarking: Netscape LDAP SHA(MMX 2x) [SHA1]... DONE
Raw: 1725332.00 c/s real, 3450666.00 c/s virtual


Benchmarking: NT MD4 MMX(MMX 2x) [bartavelle]... DONE
Raw: 2480095.00 c/s real, 4960191.00 c/s virtual


Benchmarking: Lotus5 [Lotus v5 Proprietary]... DONE
Raw: 260759.00 c/s real, 525657.00 c/s virtual


Benchmarking: M$ Cache Hash [mscash]... DONE
Raw: 842394.00 c/s real, 1684789.00 c/s virtual


Benchmarking: Raw MD5(MMX 2x) [raw-md5 MMX]... DONE
Raw: 2057006.00 c/s real, 4114013.00 c/s virtual


Benchmarking: Eggdrop [blowfish]... DONE
Raw: 5741.00 c/s real, 11482.00 c/s virtual


Benchmarking: Raw SHA1(MMX 2x) [raw-sha1 MMX]... DONE
Raw: 1878836.00 c/s real, 3757674.00 c/s virtual


Benchmarking: MS-SQL(MMX 2x) [ms-sql]... DONE
Raw: 951713.00 c/s real, 1907220.00 c/s virtual


Benchmarking: HMAC MD5(MMX 2x) [hmac-md5 MMX]...
50575b5f 5a4f165b 59405f53 16585f51 5e423636 36363636 36363636 36363636 36363636 36363636 36363636 36363636 36363636 36363636 36363636 36363636
4cebbb56 58138f06 6156c447 7684607c 5b832ce8
0bbe7d50 b2a22b47 6079af65 5e0f931a 15843905
DONE
Raw: 605782.00 c/s real, 1212765.00 c/s virtual


Benchmarking: WPA PSK(MMX 2x) [wpa-psk MMX]...
50575b5f 5a4f165b 59405f53 16585f51 5e423636 36363636 36363636 36363636 36363636 36363636 36363636 36363636 36363636 36363636 36363636 36363636
4cebbb56 58138f06 6156c447 7684607c 5b832ce8
0bbe7d50 b2a22b47 6079af65 5e0f931a 15843905
FAILED (cmp_all)
Benchmarking: Netscape LDAP SSHA(MMX 2x) [salted SHA1]... DONE
Raw: 2024628.00 c/s real, 3970166.00 c/s virtual


Jeśli kogoś denerwuje komunikat:

libibverbs: Fatal: couldn't read uverbs ABI version.
--------------------------------------------------------------------------
[0,0,0]: OpenIB on host debian was unable to find any HCAs.
Another transport will be used instead, although this may result in
lower performance.
--------------------------------------------------------------------------


... wynikający z braku sprzętowego interfejsu InfiniBand, wystarczy w pliku /etc/openmpi-mca-params.conf dodać wpis "btl=^openib"

Próbujemy przejść do istoty zagadnienia:

./unshadow /etc/passwd /etc/shadow > /tmp/crack.password.db
mpirun -np 2 ./john /tmp/crack.password.db

I nawet udało się coś złamać:

Loaded 2 password hashes with 2 different salts (FreeBSD MD5 [32/32])
abcd (dziennik)

Ponieważ jednak zapuszczenie w trybie MPI działało wolniej niż standardowe, warto sprawdzić czy na pewno mamy więcej niż jeden procesor / rdzeń. Założyłem, że miałem HyperThreading w systemie, ale okazało się inaczej:

apt-get install less
less /proc/cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.00GHz
stepping : 7
cpu MHz : 1994.216
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe up cid xtpr
bogomips : 3989.91


Mniej informacji, a odpowiedź na pytanie też dobra:
grep processor /proc/cpuinfo

Kompletny backup Linuxa

Na razie się przymierzam, ale im szybciej opanuję tym bardziej spokojnie będę spał w 2009 roku :) Wytyczne tutaj:

http://www.matusiak.eu/numerodix/blog/index.php/2008/08/10/easy-peasy-full-system-backup/

http://www.debianhelp.co.uk/afioandpax.htm

http://www.linuxhaxor.net/2008/11/20/complete-backup-and-restore-using-tar-command/

i jeszcze polskie:

http://www.trzepak.pl/viewtopic.php?t=11461

http://forum.pclab.pl/index.php?showtopic=91154

http://www.omgili.com/newsgroups/alt/pl/comp/os/linux/newbie/gb8t2jh621newsinteriapl.html

czwartek, 25 grudnia 2008

czwartek, 18 grudnia 2008

Link niesponsorowany

Może ciekawe dla zainteresowanych założeniem własnego sklepu internetowego: http://www.istore.pl/pl/index

sobota, 13 grudnia 2008

50 Brudnych, Obskurnych efektów w klimacie Grunge

http://psdtuts.com/tutorials-effects/50-dirty-filthy-grunge-photoshop-effects/

Vista - które usługi można wyłączyć

Poradnik tutaj: http://www.neowin.net/forum/index.php?showtopic=513758

Vista Service Pack 1 Cleaner - czyli oczyszczamy dysk ze zbędnych śmieci

Microsoft Windows [Wersja 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. Wszelkie prawa zastrzeżone.

C:\>vsp1cln.exe

Ta operacja spowoduje trwałe zainstalowanie dodatku Windows Vista Service
Pack 1 na tym komputerze. Po jej zakończeniu nie będzie można usunąć dodatku
Windows Vista Service Pack 1 z tego systemu.

Czy chcesz kontynuować? (T/N): T
Trwa wykonywanie oczyszczania dysku przez dodatek Windows Vista
Service Pack 1...
Oczyszczanie dysku przez dodatek Windows Vista Service Pack 1 zostało
wykonane.