Exploit databaseDownload repository ZIP
GH-c669f0704f9015b9bb8606d3ca2dc2bc
ns-sp4ce/vm4j
Sources for CVE-2021-44228
465 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files14
ns-sp4ce/vm4jRevision 1b6a7077efb1
- ↑..Parent directory
- ExecPayload/
- Properties/
- bin/
- obj/
- App.config
- Form1.Designer.cs
- Form1.cs
- Form1.resx
- Log.cs
- Program.cs
- Tools.cs
- Vm4J EXP.csproj
- Vm4J EXP.csproj.user
- favicon.ico
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
Csharp/WindowsFormsApp1/Log.cs
Suggested starting fileC# · 1,764 bytesusing System;
using System.Drawing;
namespace Vm4j_exp
{
class Log
{
public delegate void LogAppendDelegate(Color color, string text);
public void LogAppend(Color color, string text)
{
if (Form1.form.logTxtBox.Text.Length > 10000)
{
Form1.form.logTxtBox.Clear();
}
Form1.form.logTxtBox.SelectionColor = color;
Form1.form.logTxtBox.HideSelection = false;
Form1.form.logTxtBox.AppendText(text + Environment.NewLine);
}
public void LogError(string text)
{
LogAppendDelegate la = new LogAppendDelegate(LogAppend);
Form1.form.logTxtBox.Invoke(la, Color.Red, "[" + DateTime.Now + "] " + text);
}
public void LogWarning(string text)
{
LogAppendDelegate la = new LogAppendDelegate(LogAppend);
Form1.form.logTxtBox.Invoke(la, Color.Orange, "[" + DateTime.Now + "] " + text);
}
public void LogMessage(string text)
{
LogAppendDelegate la = new LogAppendDelegate(LogAppend);
Form1.form.logTxtBox.Invoke(la, Color.Black, "[" + DateTime.Now + "] " + text);
}
public void LogInfo(string text)
{
LogAppendDelegate la = new LogAppendDelegate(LogAppend);
Form1.form.logTxtBox.Invoke(la, Color.Blue, "[" + DateTime.Now + "] " + text);
}
public void LogSuccess(string text)
{
LogAppendDelegate la = new LogAppendDelegate(LogAppend);
Form1.form.logTxtBox.Invoke(la, Color.Green, "[" + DateTime.Now + "] " + text);
}
delegate void DelegateAddItem(System.Windows.Forms.ListViewItem lvi);
}
}