校园投票事件

        

         最近举行全国高校百佳网站网络评选活动 ,网站做了IP和检验码限制。

         而学生会要求多多投票。

         关于检验码,因产生检验码的语句在网站的服务器上,破解需要很大的工作...故只做如下代码以供

投票所用

DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"
>
< html >
< head >
< meta  http-equiv ="Content-Type"  content ="text/html; charset=gb2312" >
< title > voteforNEU。。。 title >
< style  type ="text/css" >

style >
< link  href ="styles.css"  rel ="stylesheet"  type ="text/css" >
< script  language ="JavaScript"  type ="text/JavaScript" >

script >
< SCRIPT  language =javascript  src ="js/sys.js" > SCRIPT >
head >

< body  >

< html >
< head >
< meta  http-equiv ="Content-Type"  content ="text/html; charset=gb2312" >
< title > 全国高校百佳网站网络评选活动 title >
< script  language ="JavaScript"  type ="text/JavaScript" >

script >
< SCRIPT  language =javascript  src ="check.js" > SCRIPT >
< SCRIPT  language =javascript  src ="function.js" > SCRIPT >
< link  href ="img1/styles.css"  rel ="stylesheet"  type ="text/css" >
head >

< body >
< table  width ="750"  border ="0"  align ="center"  cellpadding ="0"  cellspacing ="0"   >
< tr >< td >   td >
tr >
table >
< table  width ="980"  border ="0"  align ="center"  cellpadding ="0"  cellspacing ="0" >
  
< tr >
    
< td >< href ='index.php' > a > td >
  
tr >
table >

< table  width ="760 "  border ="0"    align =center  cellpadding ="2"  cellspacing ="3"  bgcolor ="A30000" >

 
< form  name ="theform"  method ="post"  action ="http://100best.univs.cn/castballot.php"   onsubmit ="" >
 
< input  type ="hidden"  name ="step"  value ="" >

 
< input  type ="hidden"  name ="websiteid"  value ="30058" >
  
< input  type ="hidden"  name ="randomvalue"  value ="" >

< tr >< td >< table  width ="100%"  border ="0"    align =center  cellpadding ="0"  cellspacing ="0"   >

< tr  bgcolor =ffffff >< td   >     < font   color =000000 > 请输入email: font >    < input  class ='INPUT3'  type ="text"  name ="email"  value ="[email protected]"  size ='20'  class ='searchinput' > td >< td   align =center  height =40  width =200 >
            
< font   color =000000 > 请输入检验码: font >   < input  type ="text"  name ="validation"  value = ''  size ='10'  class ='INPUT3' > td >< td >   < img   src ='http://100best.univs.cn/genranofboard.php?act=init' > td >
            
            
            
< td  >< INPUT  TYPE ="button"  VALUE ="我要投票"  class ='INPUT3'    onClick ="if(checkemailnew()){document.theform.step.value='1';document.theform.submit()}else{return false};"
            
> td > tr > table >
            
td > tr >
            

form >

table >

< table  width ="100%"  border ="0"  cellspacing ="0"  cellpadding ="0"  bgcolor =ffffff  align =center >
  
< tr >
    
< td  align =center >   td >
  
tr >
table >

BODY >
HTML >

 

关于IP的修改可用以下两种方法:

一是脚本文件:

 
strComputer  =   " . "
Set  objWMIService  =   GetObject ( " winmgmts: "  _
    
&   " {impersonationLevel=impersonate}!/ "   &  strComputer  &   " ootcimv2 " )
Set  colNetAdapters  =  objWMIService.ExecQuery _
    (
" Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE " )
strIPAddress 
=   Array ( " 219.216.117.186 " )
strSubnetMask 
=   Array ( " 255.255.255.0 " )
strGateway 
=   Array ( " 219.216.117.254 " )
strGatewayMetric 
=   Array ( 1 )
arrDNSServers 
=   Array ( " 202.118.1.29 " " 202.118.1.53 " )
 
For   Each  objNetAdapter in colNetAdapters
    errEnable 
=  objNetAdapter.EnableStatic(strIPAddress, strSubnetMask)
    errGateways 
=  objNetAdapter.SetGateways(strGateway, strGatewaymetric)
    objNetAdapter.SetDNSServerSearchOrder(arrDNSServers)
    
If  errEnable  =   0   Then
        WScript.Echo 
" The IP address has been changed. "
    
Else
        WScript.Echo 
" The IP address could not be changed. "
    
End   If
Next

 

二是批处理文件:

 

@echo   off  
echo  我正在给你设置校园网IP,请稍等 ......  
cmd   / c netsh interface ip  set  address name = " 本地连接 "  source = static 
addr
= 202.118 . 17.176   mask = 255.255 . 255.192  gateway = 202.118 . 17.190  gwmetric = 1

rem  修改DNS
cmd   / c netsh interface ip  set  dns name = " 本地连接 "  source = static addr = 202.118 . 1.29

echo  IP已经设置好了!
echo .  &  pause  
call  校园网IP2 . bat

 

@echo   off  
echo  我正在给你设置校园网IP,请稍等 ......  
cmd   / c netsh interface ip  set  address name = " 本地连接 "
 source
= static addr = 202.118 . 17.169   mask = 255.255 . 255.192  gateway = 202.118 . 17.190  gwmetric = 1

rem  修改DNS
cmd   / c netsh interface ip  set  dns name = " 本地连接 "  source = static addr = 202.118 . 1.29

echo  IP已经设置好了!
echo .  &  pause  
call  校园网IP3 . bat

 

......

 

@echo off 
echo 我正在给你设置校园网IP,请稍等...... 
cmd 
/ c netsh  interface  ip  set  address name = " 本地连接 "  source = static
 addr
= 202.118 . 17.180   mask = 255.255 . 255.192  gateway = 202.118 . 17.190  gwmetric = 1

rem 修改DNS
cmd 
/ c netsh  interface  ip  set  dns name = " 本地连接 "  source = static  addr = 202.118 . 1.29

echo IP已经设置好了
!
echo. 
&  pause 
call 校园网IP1.bat

 

循环使用

 

你可能感兴趣的:(校园投票事件)