centos7 安装hashcat

下载hashcat: --》6.2.6

https://hashcat.net/files/hashcat-6.2.6.7z

安装intel_sdk_for_opencl_applications:

wget http://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/16284/intel_sdk_for_opencl_applications_2020.0.270.tar.gz
tar -zxvf intel_sdk_for_opencl_applications_2020.0.270.tar.gz 
cd intel_sdk_for_opencl_applications_2020.0.270/
./install.sh   -s silent.cfg --accept_eula

不再报opencl的问题
centos7 安装hashcat_第1张图片
测试:
cap文件转换
https://hashcat.net/cap2hashcat/
4C主机测试:

./hashcat.bin -m 22000 Xiaxxx.hc22000 -a 3 61?d?d?d?d?d?d

centos7 安装hashcat_第2张图片

./hashcat.bin --help|grep -i cpu
     --cpu-affinity             | Str  | Locks to CPU devices, separated with commas          | --cpu-affinity=1,2,3
     --spin-damp                | Num  | Use CPU for device synchronization, in percent       | --spin-damp=10


使用参数:--cpu-affinity=1,2,....可以控制cpu使用率
- [ Attack Modes ] -

  # | Mode
 ===+======
  0 | Straight
  1 | Combination
  3 | Brute-force
  6 | Hybrid Wordlist + Mask
  7 | Hybrid Mask + Wordlist
  9 | Association

- [ Built-in Charsets ] -

  ? | Charset
 ===+=========
  l | abcdefghijklmnopqrstuvwxyz [a-z]
  u | ABCDEFGHIJKLMNOPQRSTUVWXYZ [A-Z]
  d | 0123456789                 [0-9]
  h | 0123456789abcdef           [0-9a-f]
  H | 0123456789ABCDEF           [0-9A-F]
  s |  !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
  a | ?l?u?d?s
  b | 0x00 - 0xff

进度保存、恢复

 --session                  | Str  | Define specific session name                         | --session=mysession
 --restore                  |      | Restore session from --session                       |

示例:

./hashcat.bin -O -m 0 -t 32 -a 7 example0.hash ?a?a?a?a example.dict --session test.session
./hashcat.bin --session test.session --restore

你可能感兴趣的:(linux,运维,服务器)