Created
April 17, 2015 09:05
-
-
Save 7c00/1eb4c6e3bcf17e269fbc to your computer and use it in GitHub Desktop.
ChromePass password to csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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