From 24eb9f287c6066e4d436d4284c1322e685f51834 Mon Sep 17 00:00:00 2001 From: Azareal Date: Fri, 6 Mar 2020 19:12:41 +1000 Subject: [PATCH] try to add AspiegelBot user agent tweaked zgrab phrase --- gen_router.go | 6 ++++-- langs/english.json | 3 ++- router_gen/main.go | 8 +++++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/gen_router.go b/gen_router.go index 888bfe54..5452e2d8 100644 --- a/gen_router.go +++ b/gen_router.go @@ -603,7 +603,8 @@ var agentMapEnum = map[string]int{ "suspicious": 29, "semrush": 30, "dotbot": 31, - "zgrab": 32, + "aspiegel": 32, + "zgrab": 33, } var reverseAgentMapEnum = map[int]string{ 0: "unknown", @@ -638,7 +639,8 @@ var reverseAgentMapEnum = map[int]string{ 29: "suspicious", 30: "semrush", 31: "dotbot", - 32: "zgrab", + 32: "aspiegel", + 33: "zgrab", } var markToAgent = map[string]string{ "OPR": "opera", diff --git a/langs/english.json b/langs/english.json index 946b6737..195f7c40 100644 --- a/langs/english.json +++ b/langs/english.json @@ -215,7 +215,8 @@ "semrush":"SemrushBot", "dotbot":"DotBot", - "zgrab":"Zgrab Application Scanner", + "aspiegel":"AspiegelBot", + "zgrab":"Zgrab App Scanner", "suspicious":"Suspicious", "unknown":"Unknown", "blank":"Blank", diff --git a/router_gen/main.go b/router_gen/main.go index 96d68b27..a2df21fb 100644 --- a/router_gen/main.go +++ b/router_gen/main.go @@ -262,6 +262,7 @@ func main() { "suspicious", "semrush", "dotbot", + "aspiegel", "zgrab", } @@ -333,9 +334,10 @@ func main() { "Applebot": "apple", "Discourse": "discourse", - "SemrushBot": "semrush", - "DotBot": "dotbot", - "zgrab": "zgrab", + "SemrushBot": "semrush", + "DotBot": "dotbot", + "AspiegelBot": "aspiegel", + "zgrab": "zgrab", } fileData := `// Code generated by Gosora's Router Generator. DO NOT EDIT.