|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
使用cdonts,可以发送、查看邮件,实现webmail的功能。结合wsh,可以实现对nt主机的管理,如nt用户管理、iis虚拟主机设置、exchange邮箱设置等等,就像管理本地机一样方便。xbm|考证码XBM图片是一个纯文本的文件,能够用ASP来主动天生。能够用它来利用网站上岸的考证码;
我们用记事本翻开该文件举行剖析:
其文件布局为:
#definecounter_width48
#definecounter_height9
staticunsignedcharcounter_bits[]={7c,3c,7c,3c,70,3c,fe,7c,fe,7c,78,7c,ee,ee,ee,ee,7c,ee,e0,ee,60,ee,74,ee,70,fe,30,fe,70,fe,38,ec,e0,ec,70,ec,1c,e0,ee,e0,70,e0,fe,7e,fe,7e,70,7e,fe,3c,7c,3c,70,3c}
文件扩大名为:.xbm
#definecounter_width48这儿界说的是图片的宽度,通常是8的倍数
#definecounter_height9这儿界说的是图片的高度,是恣意的。
staticunsignedcharcounter_bits[]={7c,3c,7c,3c,70,3c,fe,7c,fe,7c,78,7c,ee,ee,ee,ee,7c,ee,e0,ee,60,ee,74,ee,70,fe,30,fe,70,fe,38,ec,e0,ec,70,ec,1c,e0,ee,e0,70,e0,fe,7e,fe,7e,70,7e,fe,3c,7c,3c,70,3c}这儿是图片用来显现内容的十六进制的代码
正如staticunsignedchar英辞意思为静态的,无标记的,烧焦的。它只能用来显现口角两种色彩。二进制中的1未来用显现为玄色,0为红色。
上面为0~9数字的二进制数组(个中的图片款式仅试用于本例。假如必要其余0~9数字款式,请另自行天生)
此处声明0~9画图用数组
dimnum(9,8)
数字0
num(0,0)="0x38"
num(0,1)="0x7c"
num(0,2)="0xee"
num(0,3)="0xee"
num(0,4)="0xee"
num(0,5)="0xee"
num(0,6)="0xee"
num(0,7)="0x7c"
num(0,8)="0x38"
数字1
num(1,0)="0x70"
num(1,1)="0x78"
num(1,2)="0x7c"
num(1,3)="0x74"
num(1,4)="0x70"
num(1,5)="0x70"
num(1,6)="0x70"
num(1,7)="0x70"
num(1,8)="0x70"
数字2
num(2,0)="0x7c"
num(2,1)="0xfe"
num(2,2)="0xee"
num(2,3)="0xe0"
num(2,4)="0x70"
num(2,5)="0x38"
num(2,6)="0x1c"
num(2,7)="0xfe"
num(2,8)="0xfe"
数字3
num(3,0)="0x7c"
num(3,1)="0xfe"
num(3,2)="0xee"
num(3,3)="0x60"
num(3,4)="0x30"
num(3,5)="0xe0"
num(3,6)="0xee"
num(3,7)="0xfe"
num(3,8)="0x7c"
数字4
num(4,0)="0x70"
num(4,1)="0x78"
num(4,2)="0x7c"
num(4,3)="0x76"
num(4,4)="0x77"
num(4,5)="0xff"
num(4,6)="0xff"
num(4,7)="0x70"
num(4,8)="0x70"
数字5
num(5,0)="0xfc"
num(5,1)="0xfc"
num(5,2)="0x0c"
num(5,3)="0x7e"
num(5,4)="0xfe"
num(5,5)="0xe0"
num(5,6)="0xee"
num(5,7)="0xfe"
num(5,8)="0x7c"
数字6
num(6,0)="0x78"
num(6,1)="0xfc"
num(6,2)="0x0e"
num(6,3)="0x6e"
num(6,4)="0xfe"
num(6,5)="0xee"
num(6,6)="0xee"
num(6,7)="0xfc"
num(6,8)="0x78"
数字7
num(7,0)="0xfe"
num(7,1)="0xfe"
num(7,2)="0x60"
num(7,3)="0x70"
num(7,4)="0x38"
num(7,5)="0x38"
num(7,6)="0x18"
num(7,7)="0x1c"
num(7,8)="0x1c"
数字8
num(8,0)="0x7c"
num(8,1)="0xfe"
num(8,2)="0xee"
num(8,3)="0x7c"
num(8,4)="0x7c"
num(8,5)="0xee"
num(8,6)="0xee"
num(8,7)="0xfe"
num(8,8)="0x7c"
数字9
num(9,0)="0x3c"
num(9,1)="0x7c"
num(9,2)="0xee"
num(9,3)="0xee"
num(9,4)="0xfe"
num(9,5)="0xec"
num(9,6)="0xe0"
num(9,7)="0x7e"
num(9,8)="0x3c"
上面完成这个的代码,把下面的数字数组(白色的)保留为funNum.asp
上面的文件部分,独自保留为一个ASP页
<%
response.Buffer=true
response.ExpiresAbsolute=now()-1
response.expires=0
response.CacheControl="no-cache"
%>
<!--#includefile="funNum.asp"-->
<!--funNum.asp就是教程里那几个数组//-->
<%
constcountHeight=9图片的高度
constcountlength=6图片里数字的位数
constnumBinBit=8这是数字数组里的二进制位数,好象只能利用八位以下的即11111111
constcountWidth=48countlength*numBinBit失掉
constimgtype="image/x-xbitmap"
dimcountBody图片信息
dimtmpcountbody用于寄存前面天生的图片数据
tmpcountbody=""
countBody="#definejs_counter_width"&countWidth&vbCrLf
countBody=countBody&"#definejs_counter_height"&countHeight&vbCrLf
countBody=countBody&"staticunsignedcharjs_counter_bits[]={"&vbCrLf
dimnumid必要天生图片的数字
dimnumarray()将获得的numid支解成一个个的数字构成一维数组
numid="369245"编写一个函数用来天生数字便可
iflen(numid)<countLengththen
fori=1tocountLength-len(numid)
numid="0"&numid
next
endif
redimnumarray(len(numid)-1)间接界说数组时要指字一整型数值,重界说数组巨细时可以使用表达式
fori=0toubound(numarray,1)
numarray(i)=mid(numid,i+1,1)
next
fori=0tocountHeight-1
forj=0tocountlength-1
tmpcountbody=tmpcountbody&num(numarray(j),i)&","
next
next
tmpcountbody=left(tmpcountbody,len(tmpcountbody)-1)
countBody=countBody&tmpcountbody&"}"
response.contenttype=imgtype
response.writecountBody
%>
使用filesystemobject,可以对服务器上的文件进行操作,浏览、复制、移动、删除等。有ado的支持,asp对数据库的操作非常得心应手。你甚至可以像使用本地数据库那样,管理远程主机上的数据库,对表格、记录进行各种操作。 |
|