s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (pcre and content) \"; content:\"php\"; pcre:\"/require(_once)?/i\"; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(de_ctx,s))
{
printf("got a IPOnly signature (content): ");
result=0;
}
SigFree(s);
/* content */
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (content) \"; content:\"match something\"; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(de_ctx,s))
{
printf("got a IPOnly signature (content): ");
result=0;
}
SigFree(s);
/* uricontent */
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (uricontent) \"; uricontent:\"match something\"; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(de_ctx,s))
{
printf("got a IPOnly signature (uricontent): ");
result=0;
}
SigFree(s);
/* pcre */
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (pcre) \"; pcre:\"/e?idps rule[sz]/i\"; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(de_ctx,s))
{
printf("got a IPOnly signature (pcre): ");
result=0;
}
SigFree(s);
/* flow */
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (flow) \"; flow:to_server; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(de_ctx,s))
{
printf("got a IPOnly signature (flow): ");
result=0;
}
SigFree(s);
/* dsize */
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (dsize) \"; dsize:100; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(de_ctx,s))
{
printf("got a IPOnly signature (dsize): ");
result=0;
}
SigFree(s);
/* flowbits */
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (flowbits) \"; flowbits:unset; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(de_ctx,s))
{
printf("got a IPOnly signature (flowbits): ");
result=0;
}
SigFree(s);
/* flowvar */
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (flowvar) \"; pcre:\"/(?<flow_var>.*)/i\"; flowvar:var,\"str\"; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(de_ctx,s))
{
printf("got a IPOnly signature (flowvar): ");
result=0;
}
SigFree(s);
/* pktvar */
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (pktvar) \"; pcre:\"/(?<pkt_var>.*)/i\"; pktvar:var,\"str\"; classtype:misc-activity; sid:400001; rev:1;)");
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (pcre and content) \"; content:\"php\"; pcre:\"/require(_once)?/i\"; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(de_ctx,s))
{
printf("got a IPOnly signature (content): ");
result=0;
}
SigFree(s);
/* content */
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (content) \"; content:\"match something\"; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(de_ctx,s))
{
printf("got a IPOnly signature (content): ");
result=0;
}
SigFree(s);
/* uricontent */
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (uricontent) \"; uricontent:\"match something\"; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(de_ctx,s))
{
printf("got a IPOnly signature (uricontent): ");
result=0;
}
SigFree(s);
/* pcre */
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (pcre) \"; pcre:\"/e?idps rule[sz]/i\"; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(de_ctx,s))
{
printf("got a IPOnly signature (pcre): ");
result=0;
}
SigFree(s);
/* flow */
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (flow) \"; flow:to_server; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(de_ctx,s))
{
printf("got a IPOnly signature (flow): ");
result=0;
}
SigFree(s);
/* dsize */
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (dsize) \"; dsize:100; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(de_ctx,s))
{
printf("got a IPOnly signature (dsize): ");
result=0;
}
SigFree(s);
/* flowbits */
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (flowbits) \"; flowbits:unset; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(de_ctx,s))
{
printf("got a IPOnly signature (flowbits): ");
result=0;
}
SigFree(s);
/* flowvar */
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (flowvar) \"; pcre:\"/(?<flow_var>.*)/i\"; flowvar:var,\"str\"; classtype:misc-activity; sid:400001; rev:1;)");
if(s==NULL){
gotoend;
}
if(SignatureIsIPOnly(de_ctx,s))
{
printf("got a IPOnly signature (flowvar): ");
result=0;
}
SigFree(s);
/* pktvar */
s=SigInit(de_ctx,"alert tcp any any -> any any (msg:\"SigTest40-03 sig is not IPOnly (pktvar) \"; pcre:\"/(?<pkt_var>.*)/i\"; pktvar:var,\"str\"; classtype:misc-activity; sid:400001; rev:1;)");