Skip to content

Instantly share code, notes, and snippets.

@7c00
Created April 17, 2015 09:05
Show Gist options
  • Save 7c00/1eb4c6e3bcf17e269fbc to your computer and use it in GitHub Desktop.
Save 7c00/1eb4c6e3bcf17e269fbc to your computer and use it in GitHub Desktop.
ChromePass password to csv
#!/usr/bin/awk -f
BEGIN {
FS=":"
OFS=","
arr["a"]=""
print "url,username,password,name"
}
function trim(s) { gsub(/ /, "", s); return s }
/Origin URL/ { arr["url"]=trim($2":"$3$4) ; cnt+=1; }
/User Name / { arr["user"]=trim($2) }
/Password / { arr["pass"]=trim($2) }
/Password Strength/ { print arr["url"],arr["user"],arr["pass"],arr["url"]"_"cnt }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment