code stringlengths 3 6.57k |
|---|
subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
p.communicate() |
return (p.returncode, stdout, stderr) |
pytest.fixture() |
setup_scopez_server_action() |
os.path.dirname(os.path.abspath(__file__) |
os.path.realpath(os.path.join(l_file_path, '../../data/waf/db/GeoLite2-City.mmdb') |
os.path.realpath(os.path.join(l_file_path, '../../data/waf/db/GeoLite2-ASN.mmdb') |
os.path.realpath(os.path.join(l_file_path, '../../data/waf/conf') |
os.path.realpath(os.path.join(l_file_path, '../../data/waf/ruleset') |
os.path.realpath(os.path.join(l_file_path, '../../data/waf/conf/scopes') |
os.path.realpath(os.path.join(l_file_path, '../../data/an/an-scopes.json') |
os.path.abspath(os.path.join(l_file_path, '../../../build/util/scopez_server/scopez_server') |
os.path.realpath(os.path.join(l_file_path, '../../data/bot/bot-challenges.json') |
time.sleep(1) |
run_command('kill -9 %d'%(l_subproc.pid) |
time.sleep(0.5) |
test_acl_config_update(setup_scopez_server_action) |
requests.get(l_uri, headers=l_headers) |
os.path.dirname(os.path.abspath(__file__) |
os.path.realpath(os.path.join(l_file_path, '../../data/waf/conf/acl/0050-ZrLf2KkQ.acl.json') |
open(l_acl_conf_path) |
json.load(l_f) |
type(l_e) |
datetime.datetime.utcnow() |
strftime('%Y-%m-%dT%H:%M:%S.%fZ') |
json.dumps(l_conf) |
requests.get(l_uri, headers=l_headers) |
test_rules_config_update(setup_scopez_server_action) |
requests.get(l_uri, headers=l_headers) |
os.path.dirname(os.path.abspath(__file__) |
os.path.realpath(os.path.join(l_file_path, '../../data/waf/conf/rules/0050-ZrLf3KkQ.rules.json') |
open(l_rules_conf_path) |
json.load(l_f) |
type(l_e) |
datetime.datetime.utcnow() |
strftime('%Y-%m-%dT%H:%M:%S.%fZ') |
json.dumps(l_conf) |
requests.get(l_uri, headers=l_headers) |
requests.get(l_uri, headers=l_headers) |
test_profile_config_update(setup_scopez_server_action) |
requests.get(l_uri, headers=l_headers) |
requests.get(l_uri, headers=l_headers) |
os.path.dirname(os.path.abspath(__file__) |
os.path.realpath(os.path.join(l_file_path, '../../data/waf/conf/profile/0050-YrLf3KkQ.wafprof.json') |
open(l_profile_conf_path) |
json.load(l_f) |
type(l_e) |
datetime.datetime.utcnow() |
strftime('%Y-%m-%dT%H:%M:%S.%fZ') |
json.dumps(l_conf) |
requests.get(l_uri, headers=l_headers) |
requests.get(l_uri, headers=l_headers) |
test_limit_config_update(setup_scopez_server_action) |
range(2) |
requests.get(l_uri, headers=l_headers) |
requests.get(l_uri, headers=l_headers) |
range(2) |
requests.get(l_uri, headers=l_headers) |
requests.get(l_uri, headers=l_headers) |
time.sleep(2) |
os.path.dirname(os.path.abspath(__file__) |
os.path.realpath(os.path.join(l_file_path, '../../data/waf/conf/limit/0050-MjMhNXMR.limit.json') |
open(l_limit_conf_path) |
json.load(l_f) |
type(l_e) |
datetime.datetime.utcnow() |
strftime('%Y-%m-%dT%H:%M:%S.%fZ') |
json.dumps(l_conf) |
range(3) |
requests.get(l_uri, headers=l_headers) |
requests.get(l_uri, headers=l_headers) |
range(3) |
requests.get(l_uri, headers=l_headers) |
requests.get(l_uri, headers=l_headers) |
test_scopes_update(setup_scopez_server_action) |
requests.get(l_uri, headers=l_headers) |
os.path.dirname(os.path.abspath(__file__) |
os.path.realpath(os.path.join(l_file_path, '../../data/waf/conf/scopes/0051.scopes.json') |
open(l_scopes_conf_path) |
json.load(l_f) |
type(l_e) |
datetime.datetime.utcnow() |
strftime('%Y-%m-%dT%H:%M:%S.%fZ') |
json.dumps(l_conf) |
requests.get(l_uri, headers=l_headers) |
requests.get(l_uri, headers=l_headers) |
test_scopes_linkage_update(setup_scopez_server_action) |
scope
(0050-scopes.json) |
requests.get(l_uri, headers=l_headers) |
os.path.dirname(os.path.abspath(__file__) |
os.path.realpath(os.path.join(l_file_path, '../../data/waf/conf/scopes/0050.scopes.json') |
open(l_scopes_conf_path) |
json.load(l_f) |
type(l_e) |
datetime.datetime.utcnow() |
strftime('%Y-%m-%dT%H:%M:%S.%fZ') |
json.dumps(l_conf) |
requests.get(l_uri, headers=l_headers) |
requests.get(l_uri, headers=l_headers) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.