-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
70 lines (68 loc) · 2.1 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<meta name="author" content="Tuber Boy">
<title>DOT MAIL GENERATOR - MC</title>
<meta name="msapplication-TileColor" content="#786fff">
<meta name="theme-color" content="#786fff">
<link rel="shortcut icon" href="assets/favicon.ico" type="image/x-icon">
<link rel="icon" href="assets/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="assets/style.css">
</head>
<body>
<div class="header"><a href="">TUBER BOY</a></div>
<?php
set_time_limit(0);
if(isset($_POST['email']))
{
$mail = explode('@', $_POST['email']);
$email = $mail[0];
$domain = '@'.$mail[1];
$email = ltrim($email);
$domain = ltrim($domain);
$email = rtrim($email);
$domain = rtrim($domain);
$email = stripslashes($email);
$domain = stripslashes($domain);
$email = htmlentities($email);
$domain = htmlentities($domain);
$res = addDOT($email);
echo '<div class="box"><div class="title">Total: '.sizeof($res).'</div><textarea type="text">';
foreach($res as $mcMails)
{
echo nl2br($mcMails.$domain).PHP_EOL;
}
echo '</textarea></div>';
}
function addDOT($str){
if(strlen($str) > 1)
{
$ca = preg_split("//",$str);
array_shift($ca);
array_pop($ca);
$head = array_shift($ca);
$res = addDOT(join('',$ca));
$result = array();
foreach($res as $val)
{
$result[] = $head . $val;
$result[] = $head . '.' .$val;
}
return $result;
}
return array($str);
}
?>
<div class="box">
<div class="title">DOT MAILS GENERATOR</div>
<form method="post">
<input type="email" name="email" placeholder="Enter A Gmail/E-mail Address *" autocomplete="off" required>
<button name="send">GENERATE</button>
</form>
</div>
<div class="footer">© Copyright <?php echo date('Y'); ?> - <a href="https://github.com/tuberboy">Tuber Boy</a></div>
</body>
</html>