Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
// https://en.wikipedia.org/wiki/Category:Coffee_brands
$covfefes = [
'alterracoffeeroasters',
'angiangcoffee',
'angelinus',
'autocrat',
'barcaffe',
'batdorfbronson',
'bewleys',
'bialetti',
'blackivorycoffee',
'bokarcoffee',
'bosscoffee',
'cafeamazon',
'cafebomdia',
'cafebritt',
'cafebustelo',
'cafecoffeeday',
'cafedumonde',
'cafehag',
'cafeneo',
'cafepuro',
'caferico',
'cafedirect',
'caffebene',
'caffeconcerto',
'caffenero',
'cafferitazza',
'caffiato',
'cariboucoffee',
'chameleoncoldbrew',
'chasesanborncoffeecompany',
'chockfullonuts',
'coffeeisland',
'coffeeworld',
'coffeeheaven',
'coffinegurunaru',
'colectivocoffeeroasters',
'communitycoffee',
'compasscoffee',
'coopkaffe',
'costacoffee',
'dallmayr',
'deathwishcoffee',
'deltacafes',
'diedrichcoffee',
'doutorcoffee',
'douweegberts',
'dulcecafe',
'dunkindonuts',
'dunnbrotherscoffee',
'easyservingespressopod',
'ediyacoffee',
'eightoclockcoffee',
'elliscoffeecompany',
'equalexchange',
'espressovivace',
'farmerbrothers',
'farmersunionicedcoffee',
'figarocoffee',
'flocafe',
'folgers',
'francisfrancis',
'franck',
'thefreakybeancoffeecompany',
'friele',
'gaggia',
'gavinagourmetcoffee',
'generalfoodsinternational',
'georgia',
'gevalia',
'gregoryscoffee',
'guglielmocoffee',
'highpoint',
'highlandscoffee',
'hillsbroscoffee',
'hogoodcoffee',
'hornhardart',
'illy',
'intelligentsiacoffeetea',
'jacobs',
'jitteryjoes',
'juanvaldezcafe',
'justus',
'kenco',
'keurig',
'keurigdrpepper',
'koacoffeeplantation',
'krispykreme',
'krispykremeuk',
'kumbakonamdegreecoffee',
'lacolombecoffeeroasters',
'lavazza',
'lofbergs',
'manhattanspecial',
'marabacoffee',
'massimozanettibeveragegroup',
'matthewalgie',
'maxwellhouse',
'melitta',
'mellowercoffee',
'mikocoffee',
'millstonecoffee',
'mjb',
'moccona',
'mrbrowncoffee',
'nabob',
'nescafe',
'newenglandcoffee',
'paulig',
'peetscoffee',
'pjscoffee',
'puravidacoffee',
'reanimatorcoffee',
'redcirclecoffee',
'revelatorcoffee',
'revolvercooperative',
'ricore',
'sacarellos',
'sandellasflatbreadcafe',
'sanka',
'sasiniteacoffee',
'seattlesbestcoffee',
'senseo',
'sprcoffee',
'starbucks',
'statehousecoffee',
'straussgroup',
'stumptowncoffeeroasters',
'tassimo',
'tatastarbucks',
'tchibo',
'yitfohtenomcoffee',
'thecoffeehouse',
'timhortons',
'tomntoms',
'topshelfcoffee',
'trungnguyen',
'tullyscoffee',
'atwosomeplace',
'uccueshimacoffeeco',
'juanvaldez',
'vanhoutte',
'vinacafe',
'vittoriacoffee',
'ziferblat',
];
$counts = [];
foreach ($covfefes as $covfefe) {
$hash = sha1($covfefe);
$url = 'https://api.pwnedpasswords.com/range/' . substr($hash, 0, 5);
$hashes = file_get_contents($url);
if (preg_match('/^' . substr($hash, 5) . ':(\d+)/mi', $hashes, $matches)) {
$counts[$covfefe] = (int)$matches[1];
} else {
$counts[$covfefe] = 0;
}
echo '.';
usleep(1600000);
}
arsort($counts);
print_r($counts);
georgia: 57531
jacobs: 33594
starbucks: 17286
franck: 14508
nescafe: 7708
justus: 7484
timhortons: 1436
lavazza: 1388
highpoint: 1304
folgers: 1288
sanka: 895
senseo: 893
melitta: 618
maxwellhouse: 439
krispykreme: 432
dunkindonuts: 409
tchibo: 361
mjb: 317
gevalia: 287
gaggia: 272
illy: 263
juanvaldez: 193
trungnguyen: 189
tassimo: 176
kenco: 137
autocrat: 137
ricore: 132
costacoffee: 116
caffenero: 103
bialetti: 103
vanhoutte: 97
cafecoffeeday: 82
nabob: 80
francisfrancis: 79
douweegberts: 78
moccona: 76
paulig: 60
keurig: 44
bewleys: 41
cafepuro: 30
dallmayr: 30
cafedumonde: 28
angelinus: 27
caferico: 26
coffeeheaven: 25
barcaffe: 22
communitycoffee: 19
friele: 18
cafebritt: 18
bosscoffee: 18
deltacafes: 16
seattlesbestcoffee: 15
cariboucoffee: 13
coffeeworld: 13
cafehag: 12
dulcecafe: 12
peetscoffee: 11
vinacafe: 9
equalexchange: 7
lofbergs: 6
flocafe: 6
cafedirect: 4
tomntoms: 4
chockfullonuts: 3
pjscoffee: 3
caffiato: 3
cafebomdia: 2
cafeamazon: 2
cafebustelo: 2
juanvaldezcafe: 2
jitteryjoes: 1
tullyscoffee: 1
sacarellos: 1
cafeneo: 1
mikocoffee: 0
mrbrowncoffee: 0
newenglandcoffee: 0
millstonecoffee: 0
alterracoffeeroasters: 0
puravidacoffee: 0
tatastarbucks: 0
vittoriacoffee: 0
uccueshimacoffeeco: 0
atwosomeplace: 0
topshelfcoffee: 0
thecoffeehouse: 0
yitfohtenomcoffee: 0
straussgroup: 0
reanimatorcoffee: 0
statehousecoffee: 0
sprcoffee: 0
sasiniteacoffee: 0
sandellasflatbreadcafe: 0
revolvercooperative: 0
revelatorcoffee: 0
redcirclecoffee: 0
stumptowncoffeeroasters: 0
highlandscoffee: 0
mellowercoffee: 0
colectivocoffeeroasters: 0
ediyacoffee: 0
easyservingespressopod: 0
dunnbrotherscoffee: 0
doutorcoffee: 0
diedrichcoffee: 0
deathwishcoffee: 0
coopkaffe: 0
compasscoffee: 0
coffinegurunaru: 0
elliscoffeecompany: 0
coffeeisland: 0
chasesanborncoffeecompany: 0
chameleoncoldbrew: 0
cafferitazza: 0
caffeconcerto: 0
caffebene: 0
bokarcoffee: 0
blackivorycoffee: 0
batdorfbronson: 0
eightoclockcoffee: 0
espressovivace: 0
matthewalgie: 0
hornhardart: 0
massimozanettibeveragegroup: 0
marabacoffee: 0
manhattanspecial: 0
lacolombecoffeeroasters: 0
kumbakonamdegreecoffee: 0
krispykremeuk: 0
koacoffeeplantation: 0
keurigdrpepper: 0
intelligentsiacoffeetea: 0
hogoodcoffee: 0
farmerbrothers: 0
hillsbroscoffee: 0
angiangcoffee: 0
guglielmocoffee: 0
gregoryscoffee: 0
generalfoodsinternational: 0
gavinagourmetcoffee: 0
thefreakybeancoffeecompany: 0
figarocoffee: 0
farmersunionicedcoffee: 0
ziferblat: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.