Passwort Angriffe Prinzip: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „=Normale Hack= *wget https://xinux.de/downloads/bad-passwords <syntaxhighlight=bash> #!/bin/bash HASH=$1 while read LINE do PW_HS=$(echo $LINE | sha256sum | c…“) |
|||
| Zeile 1: | Zeile 1: | ||
=Normale Hack= | =Normale Hack= | ||
*wget https://xinux.de/downloads/bad-passwords | *wget https://xinux.de/downloads/bad-passwords | ||
| − | <syntaxhighlight=bash> | + | <syntaxhighlight lang="bash"> |
#!/bin/bash | #!/bin/bash | ||
HASH=$1 | HASH=$1 | ||
| Zeile 11: | Zeile 11: | ||
echo "Treffer: $LINE" | echo "Treffer: $LINE" | ||
exit | exit | ||
| − | + | fi | |
| − | fi | ||
done < $2 | done < $2 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Version vom 24. Juni 2026, 15:23 Uhr
Normale Hack
#!/bin/bash
HASH=$1
while read LINE
do
PW_HS=$(echo $LINE | sha256sum | cut -f 1 -d " ")
if [[ $PW_HS == $HASH ]]
then
echo "Treffer: $LINE"
exit
fi
done < $2