📄 secpod_opera_detection_linux_900037.nasl
字号:
################################################################################ Opera Version Detection for Linux## Copyright: SecPod## Date Written: 2008/08/21## Revision: 1.3 ## Log: schandan# Issue #0136# ------------------------------------------------------------------------# This program was written by SecPod and is licensed under the GNU GPL # license. Please refer to the below link for details,# http://www.gnu.org/licenses/gpl.html# This header contains information regarding licensing terms under the GPL, # and information regarding obtaining source code from the Author. # Consequently, pursuant to section 3(c) of the GPL, you must accompany the # information found in this header with any distribution you make of this # Program.# ------------------------------------------------------------------------##############################################################################if(description){ script_id(900037); script_copyright(english:"Copyright (C) 2008 SecPod"); script_version("Revision: 1.3 "); script_category(ACT_GATHER_INFO); script_family(english:"General"); script_name(english:"Opera Version Detection for Linux"); script_summary(english:"Set File Version of Opera in KB"); desc["english"] =" Overview : This script finds the Opera Web browser installed version of Linux and saves the version in KB. Risk factor : Informational"; script_description(english:desc["english"]); script_dependencies("gather-package-list.nasl"); script_require_keys("ssh/login/uname"); exit(0);} include("ssh_func.inc"); if("Linux" >!< get_kb_item("ssh/login/uname")){ exit(0); } rpmLists = get_kb_list("ssh/*/rpms"); foreach rpmList (rpmLists) { opera = egrep(pattern:"opera~", string:rpmList); if(opera) { operaVer = split(opera, sep:"~", keep:0); set_kb_item(name:"Opera/Linux/Version", value:operaVer[1]); exit(0); } } if(!opera) { sock = ssh_login_or_reuse_connection(); if(sock) { operaVer = ssh_cmd(socket:sock, cmd:"opera -version", timeout:120); ssh_close_connection(); if(!operaVer){ exit(0); } operaVer = split(operaVer, sep:" ", keep:0); set_kb_item(name:"Opera/Linux/Version", value:operaVer[1]); } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -