Skip to content

Instantly share code, notes, and snippets.

@p0pr0ck5
Created April 4, 2018 17:30
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 p0pr0ck5/c99bca54734af7546d910db8d7c97ab3 to your computer and use it in GitHub Desktop.
Save p0pr0ck5/c99bca54734af7546d910db8d7c97ab3 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
my $x = 12345;
my $i = 1;
for ($i; $i < 6; $i++) {
my $j = 0;
for ($j; $j < int(rand(50)) + 20; $j ++) {
$x++;
print "SecRule ARGS|ARGS_NAMES|REQUEST_COOKIES|REQUEST_COOKIES_NAMES " .
"\"\@streq foo\" \"id:$x,phase:$i,deny,auditlog,t:none\"\n"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment