0000004d PRODUCT=11/1/1/ab41 NAME="AT Translated Set 2 keyboard" PHYS="isa0060/serio0/input0" PROP=0 EV=120013 KEY=402000002 3803078f800d001 feffffdfffefffff fffffffffffffffe MSC=10 LED=7 MODALIAS=input:b0011v0001p0001eAB41-e0,1,4,11,14,k71,72,73,74,75,76,77,79,7A,7B,7C,7D,7E,7F,80,8C,8E,8F,9B,9C,9D,9E,9F,A3,A4,A5,A6,AC,AD,B7,B8,B9,C1,D9,E2,ram4,l0,1,2,sfw 6ˆl–ß=¿Jõ4Ÿº‚œPLÜ.JbÑ¿�þBgßnI\h-3üÿà ƒh¹ÂÁÀ2 1ˆl–ßi~”Jj"TÊ�zà[¸'ÔÅ£�þ@³€yѶ)}¡ùÄ 0ÃÂÁ5 ˆl–Ðz¾” ŠeJeAà™¸ËêbÑ¿�þB!4³r‰Ç[Œ�âùÅ ƒiÆšÄÃÂ$ local citrixxml = require "citrixxml" local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" local table = require "table" description = [[ Extracts a list of applications, ACLs, and settings from the Citrix XML service. The script returns more output with higher verbosity. ]] --- -- @usage -- nmap --script=citrix-enum-apps-xml -p 80,443,8080 -- -- @output -- PORT STATE SERVICE -- 8080/tcp open http-proxy -- | citrix-enum-apps-xml: -- | Application: Notepad; Users: Anonymous -- | Application: iexplorer; Users: Anonymous -- |_ Application: registry editor; Users: WIN-B4RL0SUCJ29\Joe; Groups: WIN-B4RL0SUCJ29\HR, *CITRIX_BUILTIN*\*CITRIX_ADMINISTRATORS* -- -- PORT STATE SERVICE -- 8080/tcp open http-proxy -- | citrix-enum-apps-xml: -- | Application: Notepad -- | Disabled: false -- | Desktop: false -- | On Desktop: false -- | Encryption: basic -- | Encryption enforced: true -- | In start menu: false -- | Publisher: labb1farm -- | SSL: false -- | Remote Access: false -- | Users: Anonymous -- | Application: iexplorer -- | Disabled: false -- | Desktop: false -- | On Desktop: false -- | Encryption: basic -- | Encryption enforced: true -- | In start menu: false -- | Publisher: labb1farm -- | SSL: false -- | Remote Access: false -- | Users: Anonymous -- | Application: registry editor -- | Disabled: false -- | Desktop: false -- | On Desktop: false -- | Encryption: basic -- | Encryption enforced: true -- | In start menu: false -- | Publisher: labb1farm -- | SSL: false -- | Remote Access: false -- | Users: WIN-B4RL0SUCJ29\Joe -- |_ Groups: WIN-B4RL0SUCJ29\HR, *CITRIX_BUILTIN*\*CITRIX_ADMINISTRATORS* -- Version 0.2 -- Created 11/26/2009 - v0.1 - created by Patrik Karlsson -- Revised 12/02/2009 - v0.2 - Use stdnse.format_ouput for output -- Revised 12/16/2014 - v0.3 - Detect if encryption settings are minimum requirements author = "Patrik Karlsson" license = "Same as Nmap--See https://nmap.org/book/man-legal.html" categories = {"discovery", "safe"} portrule = shortport.portnumber({8080,80,443}, "tcp") --- Creates a table which is suitable for use with stdnse.format_output -- -- @param appdata table with results from parse_appdata_response -- @param mode string short or long, see usage above -- @return table suitable for stdnse.format_output function format_output(appdata, mode) local result = {} local setting_titles = { {appisdisabled="Disabled"}, {appisdesktop="Desktop"}, {AppOnDesktop="On Desktop"}, {Encryption="Encryption"}, {EncryptionEnforced="Encryption enforced"}, {AppInStartmenu="In start menu"}, {PublisherName="Publisher"}, {SSLEnabled="SSL"}, {RemoteAccessEnabled="Remote Access"} } if mode == "short" then for app_name, AppData in ipairs(appdata) do local line = "Application: " .. AppData.FName if AppData.AccessList then if AppData.AccessList.User then line = line .. "; Users: " .. table.concat(AppData.AccessList.User, ", ") end if AppData.AccessList.Group then line = line .. "; Groups: " .. table.concat(AppData.AccessList.Group, ", ") end table.insert(result, line) end end else for app_name, AppData in ipairs(appdata) do local result_part = {} result_part.name = "Application: " .. AppData.FName local settings = AppD