Skip to content

Instantly share code, notes, and snippets.

@localhost
Created November 19, 2020 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save localhost/2e2ce363d4612e39c3582f03112287bc to your computer and use it in GitHub Desktop.
Save localhost/2e2ce363d4612e39c3582f03112287bc to your computer and use it in GitHub Desktop.
Cit0day breach check for password-store
#!/usr/bin/env ruby
ARGF.each do |l|
d = l.split(' ')&.first&.downcase&.gsub(/\Awww\./, '')
next unless d
`pass find #{d}`
end
# download domains
wget -O Cit0day-ALL.txt \
'https://gist.github.com/troyhunt/0282a5bad48bd6698672735519ca883a/raw/53ba9bd51256dc658b39094660ac3c2ade7f3aea/Cit0day%20%5B_special_for_xss.is%5D.txt' \
'https://gist.github.com/troyhunt/54d421427ae0c32cadc7e18aac28b539/raw/4a12218baf062730eedbbeb8c21b5ef97b5ab86c/Cit0day%20Prem%20%5B_special_for_xss.is%5D.txt'
# check for domains using pass find
./cit0day.rb Cit0day-ALL.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment