CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - printf.c
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
xml-soap-webservice
Remote Control
P2P
TCP/IP stack
SNMP
Grid Computing
CloudComputing
Search - printf.c - List
[
Internet-Network
]
1223
DL : 0
C语言实现病毒源码 当含有病毒部分的程序被执行时,首先进入病毒程序。它在磁盘上找扩展名为C的匹配文件,如果找到,查找是否有被传染过的标志“INFECTED”。如果有此标志,继续找其它的C文件,直至全部检查一遍。若没有这个标志,则 (1)在未被感染的C程序头部加入“INFECTED”已被传染标志。 (2)读取病毒文件的头文件,将其插入到即将被感染的文件头部。如果发现有重复则不插入。 (3)在主程序中插入“VIRUSES();”调用VIRUSES函数。寻找printf、for、while、break语句,如果找到就在之前插入。 (4)在文件尾部插入VIRUSES_SUB子程序。 (5)在插入到将感染文件里面的VIRUSES_SUB子程序里面,必须把文件名改为当前自身的文件名,否则被传染后的文件经过编译、连接和运行后不能再继续传染。 (6)最后插入VIRUSES子程序。这个子程序里面调用了VIRUSES_SUB,执行到这里返回执行结果信息。 -C language implementation demonstration virus source
Date
: 2025-12-21
Size
: 147kb
User
:
马科
[
Internet-Network
]
ICE-program-printf-sample
DL : 0
ice的一个小例子,可以实现两台电脑的通信,跨平台的C++网络编程ICE才是王道-A small ice example, can achieve the two computer communications, cross platform C network programming ICE is king
Date
: 2025-12-21
Size
: 14kb
User
:
于鹏飞
[
Internet-Network
]
main1
DL : 0
了解I/O系统调用的特点并通过性能测试对此有直观的认识 1、先根据题目生成所需的4kb,256kb,64mb的txt文件 2、根据main函数的int main (int argc, char *argv[])参数特性,可以设计成 : if (4 != argc) { printf ("输入格式错误!\n") exit(0) } 来确定输入参数是4个 /*---------------------------------------------------------------- @argc[0] ./你的程序名 @argc[1] 用于测试的文件名 @argv[2] 选择的操作方式 fopen、open或者mmap的方式 "1":标准 C的I/O库函数 fopen fread fwrite "2":Unix的I/O函数 open read write "3":open和mmap @argv[3] read/fread读取的字节数大小 -----------------------------------------------------------------*/ 最后根据相应的功能实现相应的操作 -Understand the characteristics of I/O system calls, and this performance test has an intuitive understanding of a first generation required under the subject 4kb, the 256kb, 64 MB of txt file, according to the main function of an int main (int argc, char* argv []) parameters characteristic can be designed to: if (4 = argc) {printf (" input format error! \ n" ) exit (0) } to determine the input parameters is 4 /*---------------------------------------------------------------- @ argc [0]./your program @ argc [1] is used to test the file name @ argv [2] selected mode of operation of the fopen, open or mmap mode " 1" : the standard C, I/O library functions the fopen fread the fwrite " 2" : Unix I/O function open the read the write " 3" : the open and the mmap @ in argv [3] read/fread to read the size of the number of bytes-----------------------------------------------------------------*/and finally the appropriate action according to the function
Date
: 2025-12-21
Size
: 1kb
User
:
伴随
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.