Created
November 20, 2019 15:02
-
-
Save tete2soja/08808690c3d52a8937e0026064f9fc40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$fp = fopen('/tmp/esd.txt', 'aw'); | |
fwrite($fp, $_GET["u"]."\n"); | |
fclose($fp); | |
?> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css" integrity="sha256-2YQRJMXD7pIAPHiXr0s+vlRWA7GYJEK0ARns7k2sbHY=" crossorigin="anonymous" /> | |
</head> | |
<body> | |
<form action="" method="GET"> | |
<label for="exampleEmailInput">Your email</label> | |
<input type="text" name="u" /> | |
<label for="exampleEmailInput">Your password</label> | |
<input type="password" name="p" /> | |
<br/><br/> | |
<input type="submit" value="connect" /> | |
</form> | |
<pre style="background-color:lightgray;padding: 10px;"> | |
<?php | |
echo file_get_contents('/tmp/esd.txt'); | |
?> | |
</pre> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment