Reworked core.
This commit is contained in:
parent
b950613976
commit
8c4cff3af3
8 changed files with 121 additions and 51 deletions
|
@ -1,3 +0,0 @@
|
|||
[default]
|
||||
aws_access_key_id = "{{ ec2.access_key_id }}"
|
||||
aws_secret_access_key = "{{ ec2.secret_access_key }}"
|
8
aws/files/hashcat-cloud.service
Normal file
8
aws/files/hashcat-cloud.service
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/bin/hashcat_start
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
|
@ -1,25 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
HASHCAT=/usr/local/hashcat/hashcat.bin
|
||||
WORDLIST=/mnt/wordlists/rockyou.txt
|
||||
RULES=/usr/local/hashcat/rules/best64.rule
|
||||
HANDSHAKES=/mnt/hs/
|
||||
TMP=/tmp/
|
||||
HOST=`/bin/hostname`
|
||||
|
||||
# Download hashcat
|
||||
cd $TMP
|
||||
curl -s https://api.github.com/repos/hashcat/hashcat/releases/latest | jq '.assets[] | select(.name|match(".7z$")) | .browser_download_url' | sed 's/"/ /' | sed 's/"/ /' | wget -i -
|
||||
7zr x hashcat*.7z
|
||||
rm -f hashcat*.7z
|
||||
mv -f /tmp/hashcat* /usr/local/hashcat
|
||||
|
||||
$HASHCAT -I >> $HANDSHAKES/hashcat-info-$HOST.log
|
||||
|
||||
for hash in `ls -1 $HANDSHAKES/*.22000`
|
||||
do
|
||||
$HASHCAT -o $hash.cracked -a 0 -m 22000 $hash $WORDLIST -r $RULES
|
||||
done
|
||||
|
||||
# shutdown instance so it can self-terminate
|
||||
shutdown -h now
|
Loading…
Add table
Add a link
Reference in a new issue