将asp代码转换成php代码
将此代码转换成PHP代码<%mtype=Trim(Request("type"))username=replace(Trim(Request("username")),"...
将此代码转换成PHP代码
<%
mtype=Trim(Request("type"))
username=replace(Trim(Request("username")),",","")
password=replace(Trim(Request("password")),",","")
if mtype<>"" then
select case mtype
case "1"
response.Write "<script>location.href=""http://reg.163.com/login.jsp?type=1&url=http://entry.mail.163.com/coremail/fcg/ntesdoor2?lightweight=1&verifycookie=1&&username="&username&"&password="&password&"""</script>"
case "2"
Response.Write "<script>location.href=""http://reg.163.com/login.jsp?type=1&product=mail126&url=http://entry.mail.126.com/cgi/ntesdoor?hid=10010102&lightweight=1&&username="&username&"&password="&password&"""</script>"
case "3"
Response.Write "<script>location.href=""http://reg.163.com/login.jsp?type=1&product=mailyeah&url=http://entry.mail.yeah.net/cgi/ntesdoor?lightweight=1&verifycookie=1&&username="&username&"&password="&password&"""</script>"
end select
end if
%> 展开
<%
mtype=Trim(Request("type"))
username=replace(Trim(Request("username")),",","")
password=replace(Trim(Request("password")),",","")
if mtype<>"" then
select case mtype
case "1"
response.Write "<script>location.href=""http://reg.163.com/login.jsp?type=1&url=http://entry.mail.163.com/coremail/fcg/ntesdoor2?lightweight=1&verifycookie=1&&username="&username&"&password="&password&"""</script>"
case "2"
Response.Write "<script>location.href=""http://reg.163.com/login.jsp?type=1&product=mail126&url=http://entry.mail.126.com/cgi/ntesdoor?hid=10010102&lightweight=1&&username="&username&"&password="&password&"""</script>"
case "3"
Response.Write "<script>location.href=""http://reg.163.com/login.jsp?type=1&product=mailyeah&url=http://entry.mail.yeah.net/cgi/ntesdoor?lightweight=1&verifycookie=1&&username="&username&"&password="&password&"""</script>"
end select
end if
%> 展开
2个回答
展开全部
呵呵,这不就是一个跳接的denglu代码么?在很多网址导航出现过,但是网易已经屏蔽了这种登录方式。代码给你,记事本写的。
<?php
$ltype = trim($_GET['type']);
$username = trim($_GET['username']);
$password = trim($_GET['password']);
if($ltype === 1 || $ltype == 1){
echo "<script>location.href=\"http://reg.163.com/login.jsp?type=1&url=http://entry.mail.163.com/coremail/fcg/ntesdoor2?lightweight=1&verifycookie=1&&username=" ,
$username , "&password=" , $password , "\"</script>";
}else if($ltype === 2 || $ltype == 2){
echo "<script>location.href=\"http://reg.163.com/login.jsp?type=1&product=mail126&url=http://entry.mail.126.com/cgi/ntesdoor?hid=10010102&lightweight=1&&username=" ,
$username , "&password=" , $password , "\"</script>";
}else if($ltype === 3 || $ltype == 3){
echo "<script>location.href=""http://reg.163.com/login.jsp?type=1&product=mailyeah&url=http://entry.mail.yeah.net/cgi/ntesdoor?
lightweight=1&verifycookie=1&&username=" , $username , "&password=" , $password , "\"</script>";
}else{
echo '<script>location.href="http://www.kcvg.cn/"</sctipt>';
}
?>
当然啦,想破解网易的“不安全网站效验”还是可以利用PHP伪造引用头的。
<?php
$ltype = trim($_GET['type']);
$username = trim($_GET['username']);
$password = trim($_GET['password']);
if($ltype === 1 || $ltype == 1){
echo "<script>location.href=\"http://reg.163.com/login.jsp?type=1&url=http://entry.mail.163.com/coremail/fcg/ntesdoor2?lightweight=1&verifycookie=1&&username=" ,
$username , "&password=" , $password , "\"</script>";
}else if($ltype === 2 || $ltype == 2){
echo "<script>location.href=\"http://reg.163.com/login.jsp?type=1&product=mail126&url=http://entry.mail.126.com/cgi/ntesdoor?hid=10010102&lightweight=1&&username=" ,
$username , "&password=" , $password , "\"</script>";
}else if($ltype === 3 || $ltype == 3){
echo "<script>location.href=""http://reg.163.com/login.jsp?type=1&product=mailyeah&url=http://entry.mail.yeah.net/cgi/ntesdoor?
lightweight=1&verifycookie=1&&username=" , $username , "&password=" , $password , "\"</script>";
}else{
echo '<script>location.href="http://www.kcvg.cn/"</sctipt>';
}
?>
当然啦,想破解网易的“不安全网站效验”还是可以利用PHP伪造引用头的。
参考资料: http://www.kcvg.cn/
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询