Exploit databaseDownload repository ZIP
GH-440399b0bb20eb6759b6c1bd4086d144
sqrtzeroknowledge/cve-2023-23397_exploit_0day
Sources for CVE-2023-23397
38 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files39
sqrtzeroknowledge/cve-2023-23397_exploit_0dayRevision 75ce155e73fe
- ↑..Parent directory
- Enums/
- Exceptions/
- Helpers/
- Mime/
- Streams/
- Structures/
- _Documentation/
- Address.cs
- Appointment.cs
- Attachments.cs
- Contact.cs
- ContactAssistant.cs
- ContactBusiness.cs
- ContactCommon.cs
- ContactCompanyMain.cs
- ContactHome.cs
- ContactOther.cs
- ContactWork.cs
- ContactYomi.cs
- Converter.cs
- Email.cs
- Message.cs
- MsgKit.csproj
- MsgKit.snk
- MsgKit.xml
- NamedPropertyMapping.cs
- NamedPropertyTags.cs
- Outlook-icon.png
- PropertyTags.cs
- Receiving.cs
- ReceivingRepresenting.cs
- Recipient.cs
- Representing.cs
- Sender.cs
- Task.cs
- ThreadIndex.cs
- TranslateTags.cs
- app.config
- packages.config
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
MsgKit/Appointment.cs
C# · 5,696 bytes//
// Appointment.cs
//
// Author: Kees van Spelde <[email protected]> and Travis Semple
//
// Copyright (c) 2015-2021 Magic-Sessions. (www.magic-sessions.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
using System;
using MsgKit.Enums;
using OpenMcdf;
namespace MsgKit
{
/// <summary>
/// Inherits from Email, because it has quite a few of the same fields
/// </summary>
public class Appointment : Email
{
#region Properties
/// <summary>
/// Holds the location for the Appointment
/// </summary>
public string Location { get; set; }
/// <summary>
/// This property specifies whether or not the event is an all-day event, as
/// specified by the user. A value of <c>true</c> indicates that the event is an all-day
/// event, in which case the start time and end time must be midnight so that the
/// duration is a multiple of 24 hours and is at least 24 hours. A value of <c>false</c>
/// or the absence of this property indicates the event is not an all-day event. The
/// client or server must not infer the value as TRUE when a user happens to create an
/// event that is 24 hours, even if the event starts and ends at midnight.
/// </summary>
public bool AllDay { get; set; }
/// <summary>
/// Holds meeting information for the appointment
/// </summary>
public DateTime MeetingStart { get; set; }
/// <summary>
/// The end of the meeting
/// </summary>
public DateTime MeetingEnd { get; set; }
#endregion
#region Constructors
/// <summary>
/// Sends an appointment with sender, representing, subject, draft.
/// </summary>
/// <param name="sender"> Contains sender name and email. </param>
/// <param name="representing">Contains who this appointment is representing. </param>
/// <param name="subject"> Contains the subject for this appointment. </param>
/// <param name="draft"> Is this a draft?</param>
public Appointment(Sender sender,
Representing representing,
string subject,
bool draft = false) : base(sender, representing, subject, draft)
{
}
/// <summary>
/// Used to send without the representing structure.
/// </summary>
/// <param name="sender"></param>
/// <param name="subject"></param>
/// <param name="draft"></param>
public Appointment(Sender sender,
string subject,
bool draft = false) : base(sender, subject, draft)
{
}
#endregion
#region WriteToStorage
/// <summary>
/// Writes all the properties that are part of the <see cref="Appointment"/> object either as <see cref="CFStorage"/>'s
/// or <see cref="CFStream"/>'s to the <see cref="CompoundFile.RootStorage"/>
/// </summary>
private new void WriteToStorage()
{
Class = MessageClass.IPM_Appointment;
NamedProperties.AddProperty(NamedPropertyTags.PidLidLocation, Location);
NamedProperties.AddProperty(NamedPropertyTags.PidLidAppointmentStartWhole, MeetingStart);
NamedProperties.AddProperty(NamedPropertyTags.PidLidAppointmentEndWhole, MeetingEnd);
NamedProperties.AddProperty(NamedPropertyTags.PidLidMeetingType, MeetingType.mtgRequest);
NamedProperties.AddProperty(NamedPropertyTags.PidLidAppointmentSubType, AllDay);
NamedProperties.AddProperty(NamedPropertyTags.PidLidAppointmentStateFlags, AppointmentState.asfMeeting);
NamedProperties.AddProperty(NamedPropertyTags.PidLidReminderFileParameter, PidLidReminderFileParameter);
NamedProperties.AddProperty(NamedPropertyTags.PidLidReminderOverride, PidLidReminderOverride);
}
#endregion
#region Save
/// <summary>
/// Saves the message to the given <paramref name="stream" />
/// </summary>
/// <param name="stream"></param>
public new void Save(System.IO.Stream stream)
{
WriteToStorage();
base.Save(stream);
}
/// <summary>
/// Saves the message to the given <paramref name="fileName" />
/// </summary>
/// <param name="fileName"></param>
public new void Save(string fileName)
{
WriteToStorage();
base.Save(fileName);
}
#endregion
}
}