Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

was wondering the same thing... finding items with more than 1 application is the important part. so this is a start: security dump-keychain -a > keychain.txt && egrep -n "applications \(([2-9])\)" keychain.txt

Then just look at the item that contains those line numbers and see whats up. You will have some show up on an unaffected system. This is what my output looks like: http://puu.sh/ishaP/675695b11e.png

* disclaimer, that egrep regex is shit.



Can you skip the whole writing to file bit, and pipe straight to egrep?


sure. but then you wouldn't have a file to go investigate the matched line numbers in.


    security dump-keychain -a | egrep -A 9 -n "applications \(([2-9])\)" 
This gives you the relevant lines right away: 9 lines following the match (you might want to use fewer).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: