Saturday, 9 January 2016

Automatic HTML Login using POST Method

What if  you want to login to a website by filling Username/Email and Passwordautomatically? Well, there is a simple solution to that. This solution works for large number of web sites which have a login and password field contained within a form.




<HTML>
<HEAD>
<TITLE>Crunchify Login</TITLE>
<script>
    function loginForm() {
        document.myform.action = "http://cdn.crunchify.com/wp-content/uploads/code/Crunchify-LoginPage.html";
        document.myform.submit();
    }
</script>
</HEAD>
<BODY onLoad="loginForm()">
    <FORM NAME="myform" METHOD="POST">
        <INPUT TYPE="hidden" NAME="email" VALUE="myemail@crunchify.com">
        <INPUT TYPE="hidden" NAME="password" VALUE="mypassw@rd">
    </FORM>
</BODY>
</HTML>


In order for you to fill above fields automatically just create one sample file Crunchify.html  file on your Desktop or convenient location and put below content.

No comments:

Post a Comment