From 81a70033cc9552e7bcc9f6aa6cc092b4e64b6b7c Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 3 Nov 2022 17:41:53 +0100 Subject: validators: T4795: drop unused Python validators --- src/validators/tcp-flag | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100755 src/validators/tcp-flag (limited to 'src/validators/tcp-flag') diff --git a/src/validators/tcp-flag b/src/validators/tcp-flag deleted file mode 100755 index 1496b904a..000000000 --- a/src/validators/tcp-flag +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/python3 - -import sys -import re - -if __name__ == '__main__': - if len(sys.argv)>1: - flag = sys.argv[1] - if flag and flag[0] == '!': - flag = flag[1:] - if flag not in ['syn', 'ack', 'rst', 'fin', 'urg', 'psh', 'ecn', 'cwr']: - print(f'Error: {flag} is not a valid TCP flag') - sys.exit(1) - else: - sys.exit(2) - - sys.exit(0) -- cgit v1.2.3