Skip to content

Instantly share code, notes, and snippets.

View airween's full-sized avatar

Ervin Hegedus airween

  • Digitalwave Ltd.
  • Hungary
View GitHub Profile
@airween
airween / hadx_dx
Last active January 2, 2016 04:59
HA-DX logcfg.dat and rule files for Tlf - see https://github.com/Tlf/tlf HA-DX webpage: http://www.ha-dx.com/HADX/ Thanks for the previous contest logs to UR7GO Alex, and DL1CW Arno - they helps to assembly the initial_exchange file.
#########################################
# HA-DX contest for stations outside HA #
# HA2OS, 04.01.2014 #
#########################################
#
CONTEST=ha-dx
LOGFILE=hadx.log
CONTEST_MODE
CABRILLO=UNIVERSAL
@airween
airween / WAEDC_QTC_logcfg.dat
Last active August 29, 2015 14:00
WAEDC QTC support test
RULES=waedc
EDITOR=vi
CALL=HA2OS
TIME_OFFSET=0
TIME_MASTER
ADDNODE=192.168.72.254
THISNODE=A
LAN_DEBUG
NETKEYER
CWSPEED=30
@airween
airween / sac_SCAND
Created September 16, 2014 21:04
SAC Contest rule files for Tlf
######################################
# Rule file for SAC contest, HA2OS #
# SCANDINAVIAN STATIONS #
# 2014.09.16 #
######################################
#
CONTEST=sac
LOGFILE=sac.log
CONTEST_MODE
@airween
airween / QTC_cap_list.txt
Created September 1, 2015 19:53
QTC capability list
3G3O
4K6FO
4L1UN
4X0T
4X6FR
5B4AIF
7N2UQC
7X2JV
7Z1SJ
8P2K
@airween
airween / request-body-parser-multipart-with-hypen.json
Created April 19, 2018 19:43
Regression test for libmodsecurity, which contains multipart data
[
{
"enabled":1,
"version_min":300000,
"title":"multipart parser - contains foreign boundary, no UNMATCH rule",
"client":{
"ip":"200.249.12.31",
"port":123
},
"server":{
#!/usr/bin/python
import Hamlib
Hamlib.rig_set_debug(Hamlib.RIG_DEBUG_NONE)
class Rig(object):
def __init__(self):
self.rig = Hamlib.Rig(Hamlib.RIG_MODEL_NETRIGCTL)
self.rig.open()
#include <stdio.h>
#include <hamlib/rig.h>
int main() {
RIG * my_rig;
int retcode;
vfo_t vfo;
rig_set_debug(RIG_DEBUG_NONE);
@airween
airween / crsregexcheck.py
Last active June 2, 2019 16:28
CRS regex checker
#!/usr/bin/python3
import glob
import sys
import os
import secrules_parsing.secrules_parser as secrules_parser
import sre_parse
import sre_constants
import re
@airween
airween / secrules_parser.py.diff
Created June 2, 2019 16:32
secrules_parser.py diff
diff --git a/secrules_parser.py b/secrules_parser.py
index 0c1143f..106588b 100644
--- a/secrules_parser.py
+++ b/secrules_parser.py
@@ -94,7 +94,7 @@ def get_rule_id(rule):
def get_rule_regex(rule):
""" Gets the regex. Only for a given SecAction or SecRule """
- if rule.__class__.__name__ == "SecRule" or rule.__class__.__name__ == "SecAction":
+ if rule.__class__.__name__ == "SecRule":
@airween
airween / issue-2129.json
Last active July 10, 2019 13:36
ModSecurity 3.0 - issue 2129
[
{
"enabled":1,
"version_min":300000,
"title":"multipart parser (normal)",
"client":{
"ip":"200.249.12.31",
"port":123
},
"server":{