[C + +] programming Road (2), kill QQ, Popup system dialog box, eat memory, etc.

Source: Internet
Author: User

First, delete the file

Second, the principle of stealing passwords
1#include <stdlib.h>2 3 //kill QQ, and then prompted the network failure, please re-login, pop up high imitation interface, get account password, and then open QQ to login4 voidMain () {5System"taskkill/f/im QQ.exe");6System"Pause");7System"D:\\qq\\bin\\qqsclauncher.exe");8}
Three, popup system dialog box
1#include <windows.h>2#include <stdlib.h>3 4 voidmain1 () {5     //0 Represents the system pop-up Content Title dialog box type6MessageBoxA (0,"please log in again due to network failure","QQ Fault",0);7     //Practice8     /*messageboxa (0, "Now chatting with you is an enemy spy, in order to protect your security, the computer will be restarted in 1 minutes," "warning", 0);9 System ("shutdown-s-T");Ten System ("pause"); One System ("Shutdown-a");*/ A } -  - //print file, open file, e-mail, open web page the voidMain () { -     //0 on behalf of the system startup open opens Notepad directive 0,0 default last parameter: 0 hidden 1 Normal 3 maximized 6 minimized -     //Shellexecutea (0, "open", "http://www.qq.com", 0,0,1); -     //Shellexecutea (0, "open", "notepad", 0,0,1); +Shellexecutea (0,"Open","c:\\users\\administrator\\desktop\\ The parallel algorithm of convolutional neural network in \ \ \ multi-GPU Environment _ Wang Yumin. CAJ",0,0,1); -Sleep ( +);//Wait a second +}
Five, eat memory
1 void Main () {2      while (1) {3         int *p= (int *)malloc(10000); // allocating memory 10000 bytes, approximately equal to 10K 4     }5 }
1 #include <windows.h>23void  main () {4while      (1) {5         malloc(10000000);   malloc allocates about 10M of memory 6         Sleep(+);   Wait one second 7    }8 }

[C + +] programming Road (2), kill QQ, Popup system dialog box, eat memory, etc.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.