Skip to content

Instantly share code, notes, and snippets.

@sdepablos
Created December 23, 2014 08:01
Show Gist options
  • Select an option

  • Save sdepablos/f2704672eb8feef7f339 to your computer and use it in GitHub Desktop.

Select an option

Save sdepablos/f2704672eb8feef7f339 to your computer and use it in GitHub Desktop.
Testing has table collision keys
<?php
# More info at http://lukasmartinelli.ch/web/2014/11/17/php-dos-attack-revisited.html
$file = 'https://github.com/lukasmartinelli/php-dos-attack/blob/master/collision_keys.txt';
$handle = fopen($file, 'r');
$a = [];
while (($buffer = fgets($handle)) !== false) {
$a[$buffer] = $buffer;
}
fclose($handle);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment