Advertisement
Guest User

Untitled

a guest
Jun 13th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #Generamos una "base de datos" en formato entendible para John The Ripper
  2. #Se guardará como hash.dat
  3. slapcat | awk 'BEGIN{uidFound=0};$1 ~ /^uid:/{uid=$2;uidFound=1};$1 ~ /^userPassword::/
  4. && uidFound == 1{printf uid":";system("echo " $2 "|base64 -d"); print "";uidFound=0};
  5. $0 == ""{uidFound=0}' > hash.dat
  6.  
  7. #El output será similar a:
  8. #user:{{SSHA}}mi_h_a_s_h
  9. #Lo cual será muy útil para John
  10.  
  11. #Ejecutamos John de forma incremental (a menos, claro, que tengamos un diccionario)
  12. john --incremental hash.dat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement