用C写个穷举论坛密码
请问,我想用C写个穷举论坛密码的程序,原理就是通过一个一个的试密码的正确与否,(与错误信息相对比,最好直接能知道此错误信息),知道正确为止,请问应该怎么写?
[bo]以下是引用 [un]sunkaidong[/un] 在 2008-4-27 23:07 的发言:[/bo]
把所有字符弄个数组..然后排列...个人观点..没做过..
把所有字符弄个数组..然后排列...个人观点..没做过..
那些密码可以用生成程序(也可以自己写个字典程序),关键在于如何检验密码的正确与否的过程,尤其是那些网站所使用的错误信息(也就是当值与错误信息相同,就跳转到登陆页面,不等,就是其他页面
=============================================
这是用溯雪破解所看到的代码,我没看懂
[Byte -00001]Date: Fri, 25 Apr 2008 04:15:44 GMT
[Byte 000034]Server: Apache
[Byte 000048]Accept-Ranges: bytes
[Byte 000068]Cache-Control: max-age=3600
[Byte 000095]Expires: Fri, 25 Apr 2008 05:15:44 GMT
[Byte 000133]Vary: Accept-Encoding
[Byte 000154]Content-Length: 20454
[Byte 000175]Content-Type: text/html; charset=GB2312
[Byte 000214]X-Cache: MISS from mcache.
[Byte 000247]Connection: close
[Byte 000264]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
[Byte 000385]<html xmlns="http://www.
[Byte 000428]<head>
[Byte 000434]<meta name="keywords" content="网易163邮箱--中文邮箱第一品牌" />
[Byte 000498]<meta name="description" content="网易163邮箱--中文邮箱第一品牌" />
[Byte 000565]<title>网易163免费邮--中文邮箱第一品牌</title>
[Byte 000611]<link rel="shortcut icon" href="http://mail. />
[Byte 000678]<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
[Byte 000748]<link href="http://mimg. rel="stylesheet" type="text/css" />
[Byte 000848]<SCRIPT LANGUAGE="JavaScript">
[Byte 000878]<!--
[Byte 000882]var tips = [
[Byte 000894] '<a href=http://help. style=color:#fff target="_blank">2.3亿用户正在使用网易免费邮箱。</a>',
[Byte 001035] '<a href=http://help. style=color:#fff target="_blank">网易邮箱平均每分钟就有240位新注册用户。</a>',
[Byte 001184] '<a href=http://help. style=color:#fff target="_blank">网易邮箱拥有3G容量,280兆网盘,20兆附件。</a>',
[Byte 001335] '<a href=http://help. style=color:#fff target="_blank">网易邮箱采用10亿级用户系统,<br>亿兆级存储盘阵,G级国家主干网带宽。</a>',
[Byte 001512] '<a href=http://help. style=color:#fff target="_blank">网易邮箱精准过滤超过98%的垃圾邮件。</a>',
[Byte 001658] '<a href=http://help. style=color:#fff target="_blank">网易邮箱病毒邮件有效拦截率高达99.8%。</a>',
[Byte 001806] '<a href=http://help. style=color:#fff target="_blank">同等网络环境下,因为采用创新Ajax技术,<br>网易邮箱页面响应时间最高减少90%。</a>'
[Byte 001991]];
[Byte 001993]var rnd = Math.round(Math.random()*(tips.length-1));
[Byte 002045]function setCookie(name, value, isForever) {
[Byte 002089] document.cookie = name + "=" + escape(value) + ";domain= + (isForever?";expires="+ (new Date(2099,12,31)).toGMTString():"");
[Byte 002223]}
[Byte 002224]function fSetLogType(){
[Byte 002247] var logType = getCookie("logType");
[Byte 002283] var selType = document.getElementById("selType");
[Byte 002333] switch(logType){
[Byte 002350] case "js":
[Byte 002362] selType.selectedIndex = "1";
[Byte 002393] break;
[Byte 002402] case "jy":
[Byte 002414] selType.selectedIndex = "2";
[Byte 002445] break;
[Byte 002454] default:
[Byte 002464] selType.selectedIndex = "0";
[Byte 002495] }
[Byte 002497]}
[Byte 002498]function getCookie(name) {
[Byte 002524] var search = name + "="
[Byte 002550] if(document.cookie.length > 0) {
[Byte 002585] offset = document.cookie.indexOf(search)
[Byte 002631] if(offset != -1) {
[Byte 002655] offset += search.length
[Byte 002687] end = document.cookie.indexOf(";", offset)
[Byte 002738] if(end == -1) end = document.cookie.length
[Byte 002789] return unescape(document.cookie.substring(offset, end))
[Byte 002853] }
[Byte 002860] else return ""
[Byte 002880] }
[Byte 002884]}
[Byte 002885]function saveLoginType(){
[Byte 002910] var selType = document.getElementById("selType");
[Byte 002961] var txtStyle = document.getElementById("txtStyle");
[Byte 003014] switch(selType.value){
[Byte 003038] case "js":
[Byte 003051] txtStyle.value = "21";
[Byte 003077] break;
[Byte 003087] case "jy":
[Byte 003100] txtStyle.value = "16";
[Byte 003126] break;
[Byte 003136] default:
[Byte 003147] txtStyle.value = selType.value;
[Byte 003182] }
[Byte 003185] document.cookie = "logType="+ selType.value +";expires="+ (new Date(2099,12,31)).toGMTString() +";domain=mail.
[Byte 003307]}
[Byte 003308]function fLoginFormSubmit()
[Byte 003335]{
[Byte 003336] var fm = window.document.login163;
[Byte 003371] var user = fm.username;
[Byte 003395] user.value = fTrim( user.value); //Trim the input value.
[Byte 003452] if( user.value =="") {
[Byte 003475] window.alert("\请输入您的用户名 ?");
[Byte 003513] user.focus();
[Byte 003528] event.returnValue = false;
[Byte 003556] return false;
[Byte 003571] }
[Byte 003574] if( fm.password.value.length =="") {
[Byte 003611] window.alert("\请输入您的密码 ?");
[Byte 003647] fm.password.focus();
[Byte 003669] event.returnValue = false;
[Byte 003697] return false;
[Byte 003712] }
[Byte 003714] var ati = user.value.indexOf( "@");
[Byte 003751] if( ati != -1 ){
[Byte 003768] user.value = user.value.substring(0, ati);
[Byte 003813] }
[Byte 003815] var secure = fm.remUser.checked?true:false;
[Byte 003859] var url = fm.secure.checked