From 35f4f5d5172e424ebcff7cbd45fa7dcc4568a6f7 Mon Sep 17 00:00:00 2001 From: Gavin Schneider Date: Fri, 16 Jun 2017 15:51:33 -0700 Subject: [PATCH 1/2] Convert ruby \h regex syntax to be language-agnostic --- xml/ftp_banners.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xml/ftp_banners.xml b/xml/ftp_banners.xml index c94478fc..278876ae 100644 --- a/xml/ftp_banners.xml +++ b/xml/ftp_banners.xml @@ -216,7 +216,7 @@ example.com FTP server (Version: Mac OS X Server) ready. - + ProFTPD with version info - truncated ProFTPD 1.3.2c Server (ProFTPD Default Installation) [ ProFTPD 1.3.0 Server (svrname.hosting.com) [10.10.10. @@ -1123,7 +1123,7 @@ more text - + Bftpd FTPD Server bftpd 2.2.1 at 192.168.0.1 ready. bftpd 2.2 at ::ffff:192.168.1.1 ready. @@ -1133,7 +1133,7 @@ more text - + ProFTPD on QNAP Turbo Station NAS NASFTPD Turbo station 1.3.5a Server (ProFTPD) [192.168.1.100] NASFTPD Turbo station 2.x 1.3.1rc2 Server (ProFTPD) [192.168.1.100] @@ -1191,7 +1191,7 @@ more text - + ZyXEL Unified Security Gateway FTP Server (ZyWALL USG 20) [::ffff:192.168.0.2] FTP Server (ZyWALL USG100-PLUS) [::ffff:192.168.5.101] From b02e99342b3452d6efbd371ebde42e9ced0aa6ac Mon Sep 17 00:00:00 2001 From: Gavin Schneider Date: Fri, 16 Jun 2017 15:52:17 -0700 Subject: [PATCH 2/2] Fix horrible backtracking regex for Windows catch-all This regex was really bad and took 20-30 seconds to match in java. After this change it comes down to milliseconds. --- xml/operating_system.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xml/operating_system.xml b/xml/operating_system.xml index cb80509c..72ca15d3 100644 --- a/xml/operating_system.xml +++ b/xml/operating_system.xml @@ -89,15 +89,14 @@ - + Windows catch-all - Windows for Workgroups 3.11 + Windows for Workgroups 3.11 Microsoft Windows -