Skip to content

Instantly share code, notes, and snippets.

@ymek
Created February 9, 2011 20:05
Show Gist options
  • Save ymek/819165 to your computer and use it in GitHub Desktop.
Save ymek/819165 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
iters = (iters = 1 + rand(25)) + rand(iters)
(1..iters).each do
%x{echo '[09-Feb-2011 14:52:33] !!!ATTACKER BANNED!!!!' >> lite_error_log}
%x{echo '[09-Feb-2011 14:52:33] !!!ATTACKER BANNED!!!!' >> lite_error_log}
%x{echo '[09-Feb-2011 14:52:33] !!!ATTACKER BANNED!!!!' >> lite_error_log}
%x{echo '[09-Feb-2011 14:52:33] !!!ATTACKER BANNED!!!!' >> lite_error_log}
%x{echo '[09-Feb-2011 14:52:33] !!!ATTACKER BANNED!!!!' >> api_error_log}
sleep rand(3)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment