Getting Browsers Information from HEADER
I use perl and CGI to get the HEADER informations.
I use perl template to show the HTML files.
I use PurePerl to show the IP Informations.
perl file Action.pl:
use CGI;
use Template;
use Geo::IP::PurePerl;
my $gi = Geo::IP::PurePerl->open("/usr/local/share/GeoIP/GeoIP.dat", GEOIP_STANDARD);
my $clientIp = $ENV{REMOTE_ADDR};
my $q = CGI->new;
my $actionName = $q->param('actionName');
$h = $q->header();
my $str = "";
while (my ($key,$value)=each %ENV){
$str = $str . " $key===>$value\n";
}
my $vars = {
clientIp => $clientIp,
countryCode => $countryCode,
countryName => $countryName,
records => $record_str,
ispName => $ispName,
remoteHost => $ENV{REMOTE_HOST},
remotePort => $ENV{REMOTE_PORT},
remoteUser => $ENV{REMOTE_USER},
callingPage => $ENV{HTTP_REFERER},
requestMethod => $ENV{REQUEST_METHOD},
hostServerAddress => $ENV{HTTP_HOST},
requestURI => $ENV{REQUEST_URI},
userAgent => $ENV{HTTP_USER_AGENT},
httpAccept => $ENV{HTTP_ACCEPT},
httpAcceptCharset => $ENV{HTTP_ACCEPT_CHARSET},
httpAcceptEncoding => $ENV{HTTP_ACCEPT_ENCODING},
httpAcceptLanguage => $ENV{HTTP_ACCEPT_LANGUAGE},
httpCookie => $ENV{HTTP_COOKIE},
contentType => $ENV{CONTENT_TYPE},
contentLength => $ENV{CONTENT_LENGTH},
header => $h,
actionName => $actionName,
str => $str,
};
分享到:
相关推荐
「数据库审计」Forget_the_Sandbox_Escape_Abusing_Browsers_from_Code_Execution - 技术分析 渗透测试 WEB应用防火墙 法律法规 安全知识 WAF
老外写的Webbrowser调用dll,简单方便获取request header,response header等各种网络资源的例子,实现了原来只有WebClient,WebRequest和HttpWebResquest才能实现的功能。 需要dll的完整源代码见我上传的另外一个资源...
【忘记沙箱逃脱:利用浏览器执行代码的安全风险】 在安全运营和风控安全架构中,漏洞挖掘和渗透测试是至关重要的环节。本文将探讨一个独特的安全问题:“Forget the Sandbox Escape”,即不再关注传统的沙箱逃脱...
标题中的“App_Browsers for ie11”指的是一个专门针对Internet Explorer 11(简称IE11)浏览器的解决方案,该方案与ASP.NET框架有关。ASP.NET是Microsoft开发的一个用于构建Web应用程序的框架,它提供了丰富的...
"将App_Browsers直接放到IIS的发布网站下"这一建议意味着,`App_Browsers`可能是一个包含自定义浏览器定义或补丁的文件夹,这些定义或补丁可以与IIS(Internet Information Services)集成,来修改或增强其对特定...
标题提到的"App_Browsers.rar"是一个压缩包,其中包含了用于解决这类问题的资源。这个压缩包的使用方法是将其解压并放入项目的相应文件夹中,表明它可能包含了一些特定的配置文件或组件,用于改善.NET Web应用程序与...
### Web Browsers:互联网探索之门 #### 一、引言 随着互联网技术的迅猛发展,Web浏览器成为了人们日常生活中不可或缺的一部分。它不仅为用户提供了一种便捷的方式访问万维网,同时也是连接全球信息的重要工具。...
本文《Trusted Browsers for Uncertain Times》中,作者David Kohlbrenner和Hovav Shacham探讨了浏览器中的时序信道(timing channels)问题,以及如何防范通过JavaScript代码泄漏用户的敏感信息。文章出自...
Getting Started with Grunt: The JavaScript Task Runner provides you with all the information you need to become an effective Grunt power-user. You will quickly learn how to install, configure, and ...
标题中的".net C# ie10下 回发问题解决文件 app_browsers/IE.browser"涉及了.NET框架、C#编程语言以及IE10浏览器的回发(PostBack)问题。回发是ASP.NET中一个重要的概念,它指的是用户在Web表单中进行操作后,页面...
WebAssembly is the most promising new technology for the web, allowing browsers, and other JavaScript environments, to run blazing-fast raw binary modules, compiled directly from C, C++ and many other...
WebAssembly is the most promising new technology for the web, allowing browsers, and other JavaScript environments, to run blazing-fast raw binary modules, compiled directly from C, C++ and many other...
WebAssembly is the most promising new technology for the web, allowing browsers, and other JavaScript environments, to run blazing-fast raw binary modules, compiled directly from C, C++ and many other...
// the browsers available from Sauce Labs are retrieved using an HTTPS request. // therefore, this is a promise var psBrowsers = require ( 'policystat-sauce-browsers' ) psBrowsers . then ( function ...
### 浏览器的工作原理 #### 一、引言 现代浏览器是互联网世界的重要组成部分,它们不仅是用户访问网络资源的主要工具,还承担着解析、渲染网页等复杂任务。本文将深入探讨浏览器背后的运作机制,包括浏览器的核心...
Getting Started with Grunt: The JavaScript Task Runner provides you with all the information you need to become an effective Grunt power-user. You will quickly learn how to install, configure, and run...
" "MySQL," and "Python language." In essence, the system aims to automate the process of extracting valuable structured information from unstructured text data, particularly customer feedback, and ...
### 浏览器的工作原理 #### 一、引言与浏览器概述 在互联网时代,浏览器作为最常用的软件之一,几乎成为每个人日常生活中不可或缺的一部分。它不仅让我们能够访问各种网站和服务,还承载着丰富的多媒体内容。...