我不知道这是在做什么?

wcbm 2003-12-08 05:09:52
请大家去下面的网址看一下,我是没有看明白的,为什么我能直接下载他的asp源文件?还有我还能直接通过查看源代码查看文件中的asp编码部分,这是怎么回事?
http://kyhz.nsa.gov.cn/bbs/
http://kyhz.nsa.gov.cn/bbs/dispuser.asp
上面的可不是我想找他们的东西,只是我用google搜出来了他们源代码,被我看到了,不信大家去试试,搜‘htmlencode’第二项就是的了
...全文
38 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
sinusoid 2003-12-08
  • 打赏
  • 举报
回复
服务器空间不支持asp。
bzscs 2003-12-08
  • 打赏
  • 举报
回复
站点不支持asp了
wcbm 2003-12-08
  • 打赏
  • 举报
回复
我晕死,还有下面的网址也是一样的
http://www.hetda.com/english/qiye/qiye_info.htm
i三千 2003-12-08
  • 打赏
  • 举报
回复
好象是服务器的问题.

似乎asp根本就没有执行,直接当做文本文件传到客户端了.
cqfeng 2003-12-08
  • 打赏
  • 举报
回复
网站的Apache服务器允许浏览目录,没有配置默认页面。后果就是...............
iis也可以这样啊

属于管理员的失误吧 ^_^
超级大笨狼 2003-12-08
  • 打赏
  • 举报
回复
靠,右键看到了服务器端代码,估计是丢了括号百分号什么的

<!--#include file="conn.asp"-->
<!--#include file="inc/char.asp"-->
<!--#include file="inc/const.asp"-->
<!--#include file="inc/stats.asp"-->
<!--#include file="inc/grade.asp"-->
<%
Response.Expires=0
dim username
cname=membername
username=trim(request("name"))
FoundError=false
if username="" then
ErrMsg=Errmsg+"<br>"+"请输入姓名"
founderror=true
else
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=ForumName%>--<%=htmlencode(cname)%>查询个人资料</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<link rel="stylesheet" type="text/css" href="forum.css">
</head>
<body leftmargin="20" topmargin="20" rightmargin="20" bgcolor="#ffffff" alink="#333333" vlink="#333333" link="#333333">
<%
set rs=server.createobject("adodb.recordset")
sql="select * from [User] where username='"&UserName&"'"
rs.open sql,conn,1,1
if err.number<>0 then
ErrMsg=Errmsg+"<br>"+"<li>数据库操作失败:"&err.description
founderror=true
end if
if rs.eof and rs.bof then
ErrMsg=Errmsg+"<br>"+"<li>您查询的名字不存在"
founderror=true
else
%>
<table cellpadding=0 cellspacing=0 border=0 width=100% bgcolor=#777777 align=center>
<tr>
<td>
<table cellpadding=3 cellspacing=1 border=0 width=100%>
<tr bgcolor=#EEEEEE><td align=center height=22 colspan="2">
<%=htmlencode(cname)%>查询个人资料</td>
</tr>
<tr bgcolor=#FFFFFF><td align=center height=22 colspan="2">
<font color="#0000A0"><strong><%=htmlencode(username)%>的资料</strong><font color=red>(登陆社区<%=rs("logins")%>次)</font></td>
</tr>
<tr bgcolor=#FFFFFF>
<td width="30%" align="right" height="22"><strong>性 别:</strong></td>
<td width="70%" height="22">
<%if rs("sex")=0 then
response.write("靓妹")
else
response.write("酷哥")
end if
%> </td>
</tr>
<tr bgcolor=#FFFFFF>
<td width="30%" align="right" height="22"><strong>发表文章数:</strong></td>
<td width="70%" height="22"><%=rs("article")%></td>
</tr>
<tr bgcolor=#FFFFFF>
<td width="30%" align="right" height="22"><strong>E_Mail:</strong></td>
<td width="70%" height="22"><%if trim(rs("useremail"))<>"" then%><a href="mailto:<%=htmlencode(rs("useremail"))%>"><%=htmlencode(rs("useremail"))%></a><%end if%></td>
</tr>
<tr bgcolor=#FFFFFF>
<td width="30%" align="right" height="22"><strong>OICQ:</strong></td>
<td width="70%" height="22">
<%if rs("oicq")<>"" then%><%=htmlencode(rs("oicq"))%><%end if%></td>
</tr>
<tr bgcolor=#FFFFFF>
<td width="30%" align="right" height="22"><strong>主 页:</strong></td>
<td width="70%" height="22">
<%if trim(rs("homepage"))<>"" then%><a href="<%=htmlencode(rs("homepage"))%>"
target="_blank"><%=htmlencode(rs("homepage"))%></a><%end if%></td>
</tr>
<tr bgcolor=#FFFFFF>
<td width="30%" align="right" height="22"><strong>签 名:</strong></td>
<td width="70%" height="22"><%if rs("sign")<>"" then%><%=ubbcode(rs("sign"))%><%end if%></td>
</tr>
<tr bgcolor=#FFFFFF>
<td width="30%" align="right" height="22"><strong>社区等级:</strong></font></td>
<td width="70%" height="22"><%=rs("userclass")%></td>
</tr>
<tr bgcolor=#EEEEEE><td align=center height=22 colspan="2">
<a href="messanger.asp?action=new&touser=<%=htmlencode(username)%>">给他留言</a></td>
</tr>
</table></td></tr></table>
<%end if%>
</body>
</html>
<%end if

if founderror=true then
call error()
end if
rs.close
set rs=nothing
call endConnection()
%>

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧