Skip to content

Commit 9bc6b47

Browse files
author
Greyson87818
committed
Source.cpp
1 parent 93d1105 commit 9bc6b47

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

ElevatorShellCode/Source.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#pragma comment(lib, "NoCRTtest1.lib")
2+
3+
extern "C" bool Elevate();
4+
extern "C" bool isElevated();
5+
6+
#include <Windows.h>
7+
8+
int main()
9+
{
10+
if (isElevated())
11+
WinExec("cmd.exe", SW_SHOW);
12+
Elevate();
13+
return 0;
14+
}

0 commit comments

Comments
 (0)