티스토리 뷰
칼리에 깔려있는 hashcat으로 벤치마크 돌려볼려고 했는데 그래픽카드가 안잡힘. 깔려고 몇번 시도하다가 그냥 윈도우쪽에서 벤치마크 돌림.
내가 볼수있는 수치는 MD5, WPA/WPA2.
MD5는 일반적인 암호화된 해시(hash)키 가지고 대입해보는거고
WPA/WPA2는 와이파이 패킷잡은다음에 대입해보는거.
속도는 각각 약 5 GH/s, 100kH/s
아무래도 암호화 방식에 따라 걸리는 시간이 다른데, MD5 방식이 쉬워서 더 빨리하는걸로 추정. 5GH/s면 5,000,000,000개(50억개) 의 키를 1초에 대입해는건데 숫자로 된 비밀번호는 10자리 까지는 2초만에 풀린다는소리. 물론 무작위 대입 (brute force) 하기전에 사전 공격 (dictionary attack)을 돌리는데 만들어진 리스트의 경우 (rockyou.txt) 천만개의 흔한 패스워드정도는 바로 열림.
무작위 대입으로 하면. 8자리 기준으로 영 대,소문, 숫자, 특문까지해서 95^8 = 6,634,204,312,890,625 (많음) 5G로 나누면 1,326,840개 (130만초, 24시간기준 15일) 물론 여기서 잘 안쓰는 조합 제외하고, 잘 쓸거같은 조합 넣으면 시간은 엄청나게 줄일수 있음. 다만 저렇게 하면 크래킹 확율이 100%로 올라가는거지.
성능에 대해서 얘기하면 칼리(kali)에서 aircrack-ng로 하면 CPU로 대입하는데 초당 2000개 - 2500개정도 왔다갔다 했었음. 사용한 CPU는 카비레이크 펜티엄 G4560 (kabylake, Pentium, 2C4T, 3.5GHz)
벤치마크 결과만 보면 그래픽 카드(gtx1050)으로 돌린 결과는 약 50배의 성능 향상. 다시말하면 걸리는 시간이 1/50으로 줄어듬.
지금은 칼리에서 캡쳐한다음 윈도우에서 크래킹하는방법밖에 없음. 우분투에서 그래픽 드라이버 안깔려서 일단은 포기. 일단 작동하면. 안건드리는게 정신건강에 좋음.
아래는 벤치마크 결과. 여러가지 암호화 방식을 다 테스트해봄. 좀 김.
C:\hashcat>hashcat64.exe -I hashcat (v3.6.0) starting... OpenCL Info: Platform ID #1 Vendor : NVIDIA Corporation Name : NVIDIA CUDA Version : OpenCL 1.2 CUDA 8.0.0 Device ID #1 Type : GPU Vendor ID : 32 Vendor : NVIDIA Corporation Name : GeForce GTX 1050 Version : OpenCL 1.2 CUDA Processor(s) : 5 Clock : 1493 Memory : 1024/4096 MB allocatable OpenCL Version : OpenCL C 1.2 Driver Version : 382.64 Platform ID #2 Vendor : Intel(R) Corporation Name : Intel(R) OpenCL Version : OpenCL 2.1 Device ID #2 Type : GPU Vendor ID : 8 Vendor : Intel(R) Corporation Name : Intel(R) HD Graphics 610 Version : OpenCL 2.1 Processor(s) : 12 Clock : 1050 Memory : 2047/3210 MB allocatable OpenCL Version : OpenCL C 2.0 Driver Version : 22.20.16.4749 Device ID #3 Type : CPU Vendor ID : 8 Vendor : Intel(R) Corporation Name : Intel(R) Pentium(R) CPU G4560 @ 3.50GHz Version : OpenCL 2.1 (Build 10) Processor(s) : 4 Clock : 3500 Memory : 2011/8046 MB allocatable OpenCL Version : OpenCL C 2.0 Driver Version : 7.2.0.10 C:\hashcat>hashcat64.exe -b hashcat (v3.6.0) starting in benchmark mode... * Device #1: WARNING! Kernel exec timeout is not disabled. This may cause "CL_OUT_OF_RESOURCES" or related errors. To disable the timeout, see: https://hashcat.net/q/timeoutpatch * Device #2: Intel's OpenCL runtime (GPU only) is currently broken. We are waiting for updated OpenCL drivers from Intel. You can use --force to override, but do not report related errors. nvmlDeviceGetFanSpeed(): Not Supported nvmlDeviceGetPowerManagementLimit(): Not Supported OpenCL Platform #1: NVIDIA Corporation ====================================== * Device #1: GeForce GTX 1050, 1024/4096 MB allocatable, 5MCU OpenCL Platform #2: Intel(R) Corporation ======================================== * Device #2: Intel(R) HD Graphics 610, skipped. * Device #3: Intel(R) Pentium(R) CPU G4560 @ 3.50GHz, skipped. Hashtype: MD4 Speed.Dev.#1.....: 8890.5 MH/s (75.11ms) Hashtype: MD5 Speed.Dev.#1.....: 5138.3 MH/s (65.18ms) Hashtype: Half MD5 Speed.Dev.#1.....: 3401.2 MH/s (49.20ms) Hashtype: SHA1 Speed.Dev.#1.....: 1921.9 MH/s (87.10ms) Hashtype: SHA-256 Speed.Dev.#1.....: 742.0 MH/s (56.18ms) Hashtype: SHA-384 Speed.Dev.#1.....: 233.3 MH/s (89.68ms) Hashtype: SHA-512 Speed.Dev.#1.....: 252.7 MH/s (82.86ms) Hashtype: SHA-3 (Keccak) Speed.Dev.#1.....: 208.8 MH/s (50.02ms) Hashtype: SipHash Speed.Dev.#1.....: 6821.8 MH/s (49.04ms) Hashtype: Skip32 (PT = $salt, key = $pass) Speed.Dev.#1.....: 1387.8 MH/s (24.09ms) Hashtype: RIPEMD-160 Speed.Dev.#1.....: 1128.6 MH/s (74.17ms) Hashtype: Whirlpool Speed.Dev.#1.....: 59839.5 kH/s (174.89ms) Hashtype: GOST R 34.11-94 Speed.Dev.#1.....: 56156.5 kH/s (93.20ms) Hashtype: GOST R 34.11-2012 (Streebog) 256-bit Speed.Dev.#1.....: 11814.5 kH/s (219.09ms) Hashtype: GOST R 34.11-2012 (Streebog) 512-bit Speed.Dev.#1.....: 11736.6 kH/s (220.56ms) Hashtype: DES (PT = $salt, key = $pass) Speed.Dev.#1.....: 4680.2 MH/s (71.40ms) Hashtype: 3DES (PT = $salt, key = $pass) Speed.Dev.#1.....: 112.6 MH/s (92.91ms) Hashtype: phpass, WordPress (MD5), phpBB3 (MD5), Joomla (MD5) Speed.Dev.#1.....: 1630.5 kH/s (49.40ms) Hashtype: scrypt Speed.Dev.#1.....: 205.2 kH/s (54.14ms) Hashtype: PBKDF2-HMAC-MD5 Speed.Dev.#1.....: 1774.2 kH/s (59.75ms) Hashtype: PBKDF2-HMAC-SHA1 Speed.Dev.#1.....: 787.5 kH/s (42.63ms) Hashtype: PBKDF2-HMAC-SHA256 Speed.Dev.#1.....: 288.9 kH/s (61.16ms) Hashtype: PBKDF2-HMAC-SHA512 Speed.Dev.#1.....: 106.8 kH/s (87.30ms) Hashtype: Skype Speed.Dev.#1.....: 2987.9 MH/s (55.99ms) Hashtype: WPA/WPA2 Speed.Dev.#1.....: 96824 H/s (52.50ms) Hashtype: IKE-PSK MD5 Speed.Dev.#1.....: 448.6 MH/s (93.30ms) Hashtype: IKE-PSK SHA1 Speed.Dev.#1.....: 188.7 MH/s (55.30ms) Hashtype: NetNTLMv1 / NetNTLMv1+ESS Speed.Dev.#1.....: 5095.1 MH/s (65.69ms) Hashtype: NetNTLMv2 Speed.Dev.#1.....: 409.3 MH/s (51.08ms) Hashtype: IPMI2 RAKP HMAC-SHA1 Speed.Dev.#1.....: 397.9 MH/s (52.54ms) Hashtype: Kerberos 5 AS-REQ Pre-Auth etype 23 Speed.Dev.#1.....: 64916.4 kH/s (80.61ms) Hashtype: Kerberos 5 TGS-REP etype 23 Speed.Dev.#1.....: 67819.3 kH/s (77.15ms) Hashtype: DNSSEC (NSEC3) Speed.Dev.#1.....: 789.4 MH/s (52.82ms) Hashtype: PostgreSQL CRAM (MD5) Speed.Dev.#1.....: 1571.8 MH/s (53.25ms) Hashtype: MySQL CRAM (SHA1) Speed.Dev.#1.....: 550.2 MH/s (75.75ms) Hashtype: SIP digest authentication (MD5) Speed.Dev.#1.....: 814.5 MH/s (51.13ms) Hashtype: SMF (Simple Machines Forum) > v1.1 Speed.Dev.#1.....: 1574.6 MH/s (53.16ms) Hashtype: vBulletin < v3.8.5 Speed.Dev.#1.....: 1595.0 MH/s (52.46ms) Hashtype: vBulletin >= v3.8.5 Speed.Dev.#1.....: 1112.6 MH/s (75.24ms) Hashtype: IPB2+ (Invision Power Board), MyBB 1.2+ Speed.Dev.#1.....: 1153.3 MH/s (72.58ms) Hashtype: WBB3 (Woltlab Burning Board) Speed.Dev.#1.....: 312.0 MH/s (67.10ms) Hashtype: OpenCart Speed.Dev.#1.....: 494.4 MH/s (84.35ms) Hashtype: Joomla < 2.5.18 Speed.Dev.#1.....: 5033.7 MH/s (66.46ms) Hashtype: PHPS Speed.Dev.#1.....: 1591.6 MH/s (52.55ms) Hashtype: Drupal7 Speed.Dev.#1.....: 13189 H/s (48.19ms) Hashtype: osCommerce, xt:Commerce Speed.Dev.#1.....: 2994.7 MH/s (55.92ms) Hashtype: PrestaShop Speed.Dev.#1.....: 1950.4 MH/s (85.80ms) Hashtype: Django (SHA-1) Speed.Dev.#1.....: 1579.5 MH/s (52.97ms) Hashtype: Django (PBKDF2-SHA256) Speed.Dev.#1.....: 14411 H/s (72.37ms) Hashtype: MediaWiki B type Speed.Dev.#1.....: 1481.9 MH/s (56.47ms) Hashtype: Redmine Speed.Dev.#1.....: 648.6 MH/s (64.25ms) Hashtype: PunBB Speed.Dev.#1.....: 648.5 MH/s (64.24ms) Hashtype: PostgreSQL Speed.Dev.#1.....: 5036.4 MH/s (66.43ms) Hashtype: MSSQL (2000) Speed.Dev.#1.....: 1968.3 MH/s (85.08ms) Hashtype: MSSQL (2005) Speed.Dev.#1.....: 1967.7 MH/s (85.08ms) Hashtype: MSSQL (2012, 2014) Speed.Dev.#1.....: 241.0 MH/s (86.83ms) Hashtype: MySQL323 Speed.Dev.#1.....: 11229.3 MH/s (59.64ms) Hashtype: MySQL4.1/MySQL5 Speed.Dev.#1.....: 877.8 MH/s (95.32ms) Hashtype: Oracle H: Type (Oracle 7+) Speed.Dev.#1.....: 227.9 MH/s (91.82ms) Hashtype: Oracle S: Type (Oracle 11+) Speed.Dev.#1.....: 1890.5 MH/s (88.55ms) Hashtype: Oracle T: Type (Oracle 12+) Speed.Dev.#1.....: 25921 H/s (49.07ms) Hashtype: Sybase ASE Speed.Dev.#1.....: 65921.9 kH/s (79.35ms) Hashtype: Episerver 6.x < .NET 4 Speed.Dev.#1.....: 1573.9 MH/s (53.17ms) Hashtype: Episerver 6.x >= .NET 4 Speed.Dev.#1.....: 644.5 MH/s (64.68ms) Hashtype: Apache $apr1$ MD5, md5apr1, MD5 (APR) Speed.Dev.#1.....: 2415.7 kH/s (66.43ms) Hashtype: ColdFusion 10+ Speed.Dev.#1.....: 420.0 MH/s (49.82ms) Hashtype: hMailServer Speed.Dev.#1.....: 644.6 MH/s (64.66ms) Hashtype: nsldap, SHA-1(Base64), Netscape LDAP SHA Speed.Dev.#1.....: 1891.8 MH/s (88.53ms) Hashtype: nsldaps, SSHA-1(Base64), Netscape LDAP SSHA Speed.Dev.#1.....: 1891.4 MH/s (88.53ms) Hashtype: SSHA-256(Base64), LDAP {SSHA256} Speed.Dev.#1.....: 730.7 MH/s (57.04ms) Hashtype: SSHA-512(Base64), LDAP {SSHA512} Speed.Dev.#1.....: 251.3 MH/s (83.26ms) Hashtype: LM Speed.Dev.#1.....: 4667.3 MH/s (71.65ms) Hashtype: NTLM Speed.Dev.#1.....: 8679.7 MH/s (77.17ms) Hashtype: Domain Cached Credentials (DCC), MS Cache Speed.Dev.#1.....: 2518.3 MH/s (66.50ms) Hashtype: Domain Cached Credentials 2 (DCC2), MS Cache 2 Speed.Dev.#1.....: 78544 H/s (50.91ms) Hashtype: DPAPI masterkey file v1 and v2 Speed.Dev.#1.....: 16667 H/s (52.10ms) Hashtype: MS-AzureSync PBKDF2-HMAC-SHA256 Speed.Dev.#1.....: 2453.2 kH/s (53.47ms) Hashtype: descrypt, DES (Unix), Traditional DES Speed.Dev.#1.....: 229.0 MH/s (91.28ms) Hashtype: BSDi Crypt, Extended DES Speed.Dev.#1.....: 356.9 kH/s (75.78ms) Hashtype: md5crypt, MD5 (Unix), Cisco-IOS $1$ (MD5) Speed.Dev.#1.....: 2414.1 kH/s (66.43ms) Hashtype: bcrypt $2*$, Blowfish (Unix) Speed.Dev.#1.....: 2739 H/s (45.25ms) Hashtype: sha256crypt $5$, SHA256 (Unix) Speed.Dev.#1.....: 90349 H/s (89.65ms) Hashtype: sha512crypt $6$, SHA512 (Unix) Speed.Dev.#1.....: 38649 H/s (53.23ms) Hashtype: OSX v10.4, OSX v10.5, OSX v10.6 Speed.Dev.#1.....: 1558.8 MH/s (53.67ms) Hashtype: OSX v10.7 Speed.Dev.#1.....: 217.9 MH/s (96.00ms) Hashtype: OSX v10.8+ (PBKDF2-SHA512) Speed.Dev.#1.....: 3012 H/s (49.42ms) Hashtype: AIX {smd5} Speed.Dev.#1.....: 2381.0 kH/s (67.26ms) Hashtype: AIX {ssha1} Speed.Dev.#1.....: 10720.5 kH/s (52.53ms) Hashtype: AIX {ssha256} Speed.Dev.#1.....: 4014.0 kH/s (75.73ms) Hashtype: AIX {ssha512} Speed.Dev.#1.....: 1560.1 kH/s (48.88ms) Hashtype: Cisco-PIX MD5 Speed.Dev.#1.....: 3718.8 MH/s (90.07ms) Hashtype: Cisco-ASA MD5 Speed.Dev.#1.....: 3777.9 MH/s (88.60ms) Hashtype: Cisco-IOS type 4 (SHA256) Speed.Dev.#1.....: 730.7 MH/s (57.09ms) Hashtype: Cisco-IOS $8$ (PBKDF2-SHA256) Speed.Dev.#1.....: 14397 H/s (72.41ms) Hashtype: Cisco-IOS $9$ (scrypt) clWaitForEvents(): CL_OUT_OF_RESOURCES Speed.Dev.#1.....: 0 H/s (693.32ms) Hashtype: Juniper NetScreen/SSG (ScreenOS) clCreateContext(): CL_OUT_OF_RESOURCES Started: Thu Oct 19 18:18:52 2017 Stopped: Thu Oct 19 18:26:07 2017
'IT' 카테고리의 다른 글
every30min_AppDev (0) | 2017.10.31 |
---|---|
블로그 코드 작성법 (0) | 2017.10.22 |
누가 (0) | 2017.07.22 |
미5 (1) | 2017.07.16 |
블로그 내용 (0) | 2017.07.03 |
댓글