From 48b37a15471e707643bab6b20fdcfa7bc2274d92 Mon Sep 17 00:00:00 2001 From: Jesse Portnoy Date: Thu, 3 Aug 2023 20:44:40 +0100 Subject: [PATCH] Improved JS Test input for nmap --- syntax_files/javascript.yaml | 1 + test_inputs/1.nmap | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 test_inputs/1.nmap diff --git a/syntax_files/javascript.yaml b/syntax_files/javascript.yaml index 0072ce2..33628ea 100644 --- a/syntax_files/javascript.yaml +++ b/syntax_files/javascript.yaml @@ -11,6 +11,7 @@ rules: - constant.number: "\\b[-+]?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" - constant.number: "\\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" - identifier: "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" + - cyan: "[\\(|\\)|/|+|\\-|\\*|\\[|.|,|;]" - statement: "\\b(break|case|catch|continue|default|delete|do|else|finally)\\b" - statement: "\\b(for|function|get|if|in|instanceof|new|return|set|switch)\\b" - statement: "\\b(switch|this|throw|try|typeof|var|void|while|with|const|let)\\b" diff --git a/test_inputs/1.nmap b/test_inputs/1.nmap new file mode 100644 index 0000000..37b687f --- /dev/null +++ b/test_inputs/1.nmap @@ -0,0 +1,11 @@ +Starting Nmap 7.80 ( https://nmap.org ) at 2023-08-03 18:47 BST +Nmap scan report for debian.org (128.31.0.62) +Host is up (0.078s latency). +Other addresses for debian.org (not scanned): 2001:67c:2564:a119::77 2001:4f8:1:c::15 2603:400a:ffff:bb8::801f:3e 130.89.148.77 149.20.4.15 +rDNS record for 128.31.0.62: mirror-csail.debian.org +Not shown: 996 filtered ports +PORT STATE SERVICE +80/tcp open http +443/tcp open https +8080/tcp open http-proxy +8443/tcp open https-alt