mirror of https://github.com/OISF/suricata
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			16 lines
		
	
	
		
			331 B
		
	
	
	
		
			Plaintext
		
	
			
		
		
	
	
			16 lines
		
	
	
		
			331 B
		
	
	
	
		
			Plaintext
		
	
@banned@
 | 
						|
identifier i;
 | 
						|
position p1;
 | 
						|
@@
 | 
						|
 | 
						|
\(strtok@i\|sprintf@i\|strcat@i\|strcpy@i\|strncpy@i\|strncat@i\|strchrnul@i\|atoi@i\|rand@i\|rand_r@i\|index@i\|rindex@i\|bzero@i\)(...)@p1
 | 
						|
 | 
						|
@script:python@
 | 
						|
p1 << banned.p1;
 | 
						|
i << banned.i;
 | 
						|
@@
 | 
						|
 | 
						|
print("Banned function '%s' used at %s:%s" % (i, p1[0].file, p1[0].line))
 | 
						|
import sys
 | 
						|
sys.exit(1)
 |