-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.php
95 lines (80 loc) · 3.74 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
require_once "includes/config.php";
?>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="refresh" content="120">
<title>IPEmail - Get IP address using a mail</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css2?family=Signika&display=swap" rel="stylesheet">
</head>
<nav>
<center>
<h1 style="font-family: 'Signika', sans-serif;">IPEmail</h1>
<p style="font-family: 'Signika', sans-serif;">Send a spoofed email, receive the IP of the person who opened it
</p>
</center>
<hr>
</nav>
<body>
<div class="container">
<div class="col-12">
<div class="jumbotron" style="background-color: white; padding: 25px;">
<form action="sendMail.php" method="POST">
<div class="form-group">
<label>To Email</label>
<input type="text" name="emailto" class="form-control" placeholder="[email protected]">
</div>
<div class="form-group">
<label>From Email</label>
<input type="text" name="emailfrom" class="form-control" placeholder="[email protected]">
</div>
<div class="form-group">
<label>From Name</label>
<input type="text" name="namefrom" class="form-control" placeholder="SecretSomeone69">
</div>
<div class="form-group">
<label>Subject</label>
<input type="text" name="subject" class="form-control" placeholder="Important Update">
</div>
<div class="form-group">
<label>Message (HTML formatting allowed)</label>
<textarea name="message" class="form-control" rows="6"></textarea>
</div>
<p>For the IP tracking to work add this to the bottom of the email: <code><img src="https://eenzamekluizenaar.nl/ipemail/track.php" /></code></p>
<button type="submit" class="btn btn-primary">Send</button>
</form>
</div>
</div>
<div class="col-12">
<div class="jumbotron" style="background-color: white; padding: 25px;">
<a class="btn btn-primary" style="color: white;" href="clear.php">Clear</a><br><br>
<table class="table table-bordered">
<thead>
<tr>
<th scope="col">Click ID</th>
<th scope="col">Date</th>
<th scope="col">IP (1)</th>
<th scope="col">IP (2)</th>
<th scope="col">User Agent</th>
</tr>
</thead>
<tbody>
<?php
$sql = "SELECT * FROM `clicks`";
$result = mysqli_query($conn, $sql);
while ($row = mysqli_fetch_assoc($result)) {
echo "<tr><th>" . $row['id'] . "</th><th>" . $row['date'] . "</th><th>" . $row['ip'] . "</th><th>" . $row['ip2'] . "</th><th>" . $row['ug'] . "</th></tr>";
}
?>
</tbody>
</table>
<p>Page refreshes automatically every 2 minutes</p>
</div>
</div>
</div>
</body>
</html>