This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
when RULE_INIT { | |
# Max queries per second, per client ip | |
set static::maxconn 100 | |
# Max identical responses per second, per client ip | |
set static::maxresp 20 | |
# Number of seconds to drop traffic from infringing client ip. | |
set static::holdtime 15 | |
# Maximum entries in dns_drop session table. | |
set static::max_drop_entries 1000000 | |
# Maximum per client, per query, table size. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re,sys | |
from itertools import permutations | |
def getDict(length): | |
filename = "/usr/share/dict/words" | |
words = set(x.strip().upper() for x in open(filename) if len(x.strip()) == length) | |
return words | |
if __name__ == "__main__": | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.objy.db._ | |
import com.objy.db.app._ | |
import scala.collection.mutable.ListBuffer | |
/* | |
1768 export PATH=/opt/object/linux86_64/bin:$PATH | |
1769 oocheckls | |
1774 sudo mkdir -p /var/object/data | |
1775 sudo chown ml623 /var/object/data | |
1776 oonewfd -pagesize 65536 -fdfilepath /var/object/data/skynet.fdb -lockserver $(hostname) /var/object/data/skynet.boot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import datetime | |
import time | |
import thread | |
import os | |
from thrift import Thrift | |
from thrift.transport import TTransport | |
from thrift.transport import TSocket | |
from thrift.protocol.TBinaryProtocol import TBinaryProtocolAccelerated | |
from pyes import * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
when CLIENT_ACCEPTED { | |
set MAX_ELEMENTS 5 | |
set hsl [HSL::open -proto UDP -pool splunk_pool] | |
set vip [IP::local_addr] | |
set client_ip [IP::remote_addr] | |
} | |
when DNS_REQUEST { | |
set q_size [DNS::len] | |
set q_start [clock clicks] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
when RULE_INIT { | |
# Max queries per second, per client ip | |
set static::maxconn 100 | |
# Max identical responses per second, per client ip | |
set static::maxresp 15 | |
# Number of seconds to drop traffic from infringing client ip. | |
set static::holdtime 15 | |
# Maximum entries in dns_drop session table. | |
set static::max_drop_entries 1000000 | |
# Maximum per client, per query, table size. |
NewerOlder