CN101276391B - Picture and file virus defense system and method - Google Patents

Picture and file virus defense system and method Download PDF

Info

Publication number
CN101276391B
CN101276391B CN2007102003381A CN200710200338A CN101276391B CN 101276391 B CN101276391 B CN 101276391B CN 2007102003381 A CN2007102003381 A CN 2007102003381A CN 200710200338 A CN200710200338 A CN 200710200338A CN 101276391 B CN101276391 B CN 101276391B
Authority
CN
China
Prior art keywords
file
virus
shelves
path
virus document
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2007102003381A
Other languages
Chinese (zh)
Other versions
CN101276391A (en
Inventor
常春明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN2007102003381A priority Critical patent/CN101276391B/en
Publication of CN101276391A publication Critical patent/CN101276391A/en
Application granted granted Critical
Publication of CN101276391B publication Critical patent/CN101276391B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A defending method for a figure file virus, the method comprises following steps: obtaining the paths of the entire support files of the figure file system, searching the files with the appointed suffixal name of the obtained support file; judging the whether the files with the appointed suffixal name has virus files; deleting the virus files while the files with the appointed suffixal name has virus files; starting a monitoring program; monitoring whether the support files path increase new files; judging the whether the new increased file is the files with the appointed suffixal name while the support files path increase new files; judging whether the increased files have virus files; deleting the virus files while the increased files have virus files. In addition, the invention also provides a defending system for a figure file virus. This invention can automatically delete the virus files in the figure file system.

Description

Figure file virus defense system and method
Technical field
The present invention relates to a kind of virus defense system and method, relate in particular to a kind of figure file virus defense system and method.
Background technology
The generation of figure shelves virus is for the mould deviser, and the figure shelves of design may be lost owing to preserving, and perhaps can't enter processing and manufacturing owing to command expiration causes die drawing and archives.
The method of general deviser's removing figure shelves virus is: " file or folder " dialog box is searched by the opening operation system; Input virus document title in " file or folder " data frame; The order that input was lost efficacy in " comprising literal " data frame, for example: the explode order among the AutoCAD; In " search " data frame, select all hard disk drives; With the virus document deletion that searches.A figure shelves design system must be closed when using this method, and when finding virus often in the mid-term of mould design, close figure shelves design system and may make deviser's figure shelves can't preserve or lose some chart file datas.
Summary of the invention
In view of above content, be necessary to provide a kind of figure file virus defense system, can when the operation of figure shelves system, monitoring scheme the situation of file in the shelves system, the virus document in the automatic deleting system.
In addition, also be necessary to provide a kind of figure shelves virus defense method, can when the operation of figure shelves system, monitoring scheme the situation of file in the shelves system, the virus document in the automatic deleting system.
A kind of figure file virus defense system comprises main frame, and this main frame comprises: acquisition module, and all support the path of file to be used for obtaining figure shelves system from this main frame; Search module, be used to search the file of designated suffix name under the support file path that is obtained; Judge module is used for judging whether the file of described designated suffix name exists virus document; Removing module is used for deleting described virus document when there is virus document in the file of designated suffix name; Monitoring module is used to start a watchdog routine, monitors under the path of described support file whether increase new file; Described judge module also is used for when described support file path increases new file down, judge whether the file that is increased is the file of described designated suffix name, when the file of described increase is the file of designated suffix name, judge in the file that increases whether have virus document; Described removing module also is used for deleting described virus document when there is virus document in the file that increases.
A kind of figure shelves virus defense method, this method comprise the steps: from main frame, to obtain figure shelves system all support the path of files; Search the file of designated suffix name under the support file path that is obtained; Judge in the file of described designated suffix name and whether have virus document; When having virus document in the file of designated suffix name, delete described virus document; Start a watchdog routine; Monitor under the described support file path and whether increase new file; When described support file path increases new file down, judge whether the file of described increase is the file of designated suffix name; When the file of described increase is the file of designated suffix name, judge whether the file of described increase exists virus document; When there is virus document in the file of described increase, delete described virus document.
Compared to prior art, described figure file virus defense system and method can monitoring be schemed the situation of file in the shelves system, the virus document in the automatic deleting system when the operation of figure shelves system.
Description of drawings
Fig. 1 is the hardware structure figure of figure file virus defense system of the present invention preferred embodiment.
Fig. 2 is the functional block diagram of main frame among Fig. 1.
Fig. 3 is the operation process chart of figure shelves virus defense method of the present invention preferred embodiment.
Embodiment
As shown in Figure 1, be the hardware structure figure of figure file virus defense system of the present invention preferred embodiment.This system comprises main frame 1, display screen 2, keyboard 3 and mouse 4.Wherein, main frame 1 is used for the associative operation of figure shelves virus defense, and it can be computing machine, the Mac PC of Apple company, personal computer, the webserver of IBM, can also be any computing machine that other is suitable for.Display screen 2 can be any display device, and it provides graphic user interface for operating personnel, the operational order that the user will carry out by keyboard 3 or mouse 4 inputs.
As shown in Figure 2, be the functional block diagram of main frame 1 among Fig. 1.Described main frame 1 comprises acquisition module 10, searches module 12, judge module 14, removing module 16 and monitoring module 18.In this preferred embodiment, figure shelves system is that example describes with AutoCAD.
Described acquisition module 10 is used for obtaining from main frame 1 path of all support files of AutoCAD.The support file of described AutoCAD comprises: menu file, Excel file, help file, color file, masterplate file, function file and driving file.
Describedly search the file that module 12 is used to search the .lsp by name of suffix under the support file path that is obtained.In AutoCAD, the virus of all figure shelves all is based on the program of AutoLisp language, is present in the file of suffix .lsp by name after this virus produces.
Described judge module 14 is used for judging whether the file of the suffix .lsp by name that is found exists virus document.This virus document comprises acad.lsp and acadapp.lsp file.When AutoCAD opens figure shelves or newly-built figure shelves, will generate the acadapp.lsp virus document under generation acad.lsp virus document and the support file path under this path, figure shelves place at AutoCAD.The principal character of described virus document can't be preserved for the figure shelves, and the explode order is invalid in the figure shelves.If have acad.lsp file or acadapp.lsp file in the file of suffix .lsp by name, then judge in the .lsp file to have virus document; If do not have the acad.lsp file in the suffix .lsp file by name, there is not the acadapp.lsp file yet, then judge not have virus document in the .lsp file.
Described removing module 16 is used for deleting described virus document when there is virus document in suffix .lsp file by name.
Described monitoring module 18 is used to start a watchdog routine, monitors under the described support file path whether increase new file.This watchdog routine is based on the program of C Plus Plus.
Described judge module 14 also is used for judging whether the suffix name of the file of described increase is .lsp when described support file path increases new file down.
Described judge module 14 also is used for judging in the file that is increased whether have virus document when the suffix of the file of described increase is called .lsp.If have acad.lsp file or acadapp.lsp file in the file that increases, then judge in the file that is increased to have virus document; If do not have the acad.lsp file in the file that increases, there is not the acadapp.lsp file yet, then judge in the file that is increased not have virus document.
Described removing module 16 also is used for deleting described virus document when there is virus document in the file that increases.
As shown in Figure 3, be the operation process chart of figure shelves virus defense method of the present invention preferred embodiment.In this preferred embodiment, figure shelves system is that example describes with AutoCAD.
Step S10, acquisition module 10 1 all that obtain AutoCAD from main frame are supported the path of file.
Step S12 searches the file that module 12 is searched suffix .lsp by name under the support file path that is obtained.
Step S14, judge module 14 judge in the suffix that the is found .lsp file by name whether have virus document.This virus document comprises acad.lsp and acadapp.lsp file.
Step S16, if having virus document in the file of suffix .lsp by name, then removing module 16 is deleted described virus document.
Step S18, monitoring module 18 starts a watchdog routine.This watchdog routine is based on the program of C Plus Plus.
Whether step S20 increases new file under the described support file path of monitoring module 18 monitoring.
Step S22, when described support file path increased new file down, judge module 14 judged whether the suffix name of the file of described increase is .lsp.
Step S24, when the suffix of the file of described increase .lsp by name, judge module 14 judges in the .lsp file that is increased whether have virus document.
Step S26, when having virus document in the .lsp file that increases, the described virus document of removing module 16 deletions.
Step S28, judge module 14 judge whether AutoCAD closes.When the AutoCAD system does not close, return step S20 and continue whether to increase new file under the described support file path of monitoring; When the AutoCAD system closing, process ends.
In step S14, when not having virus document in the file of suffix .lsp by name, start a watchdog routine to step S18.
In step S20, when not increasing new file under the described support file path, return this step S20 and continue whether to increase new file under the described support file path of monitoring.
In step S22, when the file of described increase is not the file of appointment suffix name, returns step S20 and continue whether to increase new file under the described support file path of monitoring.
In step S24, when there is not virus document in the file of described increase, returns step S20 and continue whether to increase new file under the described support file path of monitoring.

Claims (9)

1. a figure file virus defense system is characterized in that, this system comprises:
Acquisition module, all support the path of file to be used for obtaining figure shelves system from this main frame;
Search module, be used to search the file of designated suffix name under the support file path that is obtained;
Judge module is used for judging whether the file of described designated suffix name exists virus document;
Removing module is used for deleting described virus document when there is virus document in the file of designated suffix name;
Monitoring module is used to start a watchdog routine, monitors under the path of described support file whether increase new file;
Described judge module also is used for when described support file path increases new file down, judge whether the file that is increased is the file of described designated suffix name, when the file of described increase is the file of designated suffix name, judge in the file that is increased whether have virus document; And
Described removing module also is used for deleting described virus document when there is virus document in the file that increases.
2. figure file virus defense system as claimed in claim 1 is characterized in that, described figure shelves system is the AutoCAD system.
3. figure file virus defense system as claimed in claim 2 is characterized in that, described designated suffix is called .lsp.
4. figure file virus defense system as claimed in claim 2 is characterized in that, described virus document comprises acad.lsp and acadapp.lsp file.
5. a figure shelves virus defense method is characterized in that this method comprises the steps:
From main frame, obtain the path of all support files of figure shelves system;
Search the file of designated suffix name under the support file path that is obtained;
Judge in the file of described designated suffix name and whether have virus document;
When having virus document in the file of designated suffix name, delete described virus document;
Start a watchdog routine;
Monitor under the described support file path and whether increase new file;
When described support file path increases new file down, judge whether the file of described increase is the file of designated suffix name;
When the file of described increase is the file of designated suffix name, judge in the file of described increase whether have virus document; And
When having virus document in the file of described increase, delete described virus document.
6. figure shelves virus defense method as claimed in claim 5 is characterized in that this method also comprises step:
When not increasing new file under the described support file path, return the step that whether increases new file under the described support file path of monitoring.
7. figure shelves virus defense method as claimed in claim 5 is characterized in that this method also comprises step:
When the file of described increase is not the file of designated suffix name, return the step that whether increases new file under the described support file path of monitoring.
8. figure shelves virus defense method as claimed in claim 5 is characterized in that this method also comprises step:
When there is not virus document in the file of the designated suffix name of described increase, return the step that whether increases new file under the described support file path of monitoring.
9. figure shelves virus defense method as claimed in claim 5 is characterized in that this method also comprises step:
Judge whether figure shelves system closes;
When figure shelves system does not close, return the step that whether increases new file under the described support file path of monitoring; And
When figure shelves system closing, process ends.
CN2007102003381A 2007-03-27 2007-03-27 Picture and file virus defense system and method Expired - Fee Related CN101276391B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007102003381A CN101276391B (en) 2007-03-27 2007-03-27 Picture and file virus defense system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007102003381A CN101276391B (en) 2007-03-27 2007-03-27 Picture and file virus defense system and method

Publications (2)

Publication Number Publication Date
CN101276391A CN101276391A (en) 2008-10-01
CN101276391B true CN101276391B (en) 2010-12-08

Family

ID=39995829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007102003381A Expired - Fee Related CN101276391B (en) 2007-03-27 2007-03-27 Picture and file virus defense system and method

Country Status (1)

Country Link
CN (1) CN101276391B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855432B (en) 2011-06-27 2015-11-25 北京奇虎科技有限公司 A kind of file, file unblock and delet method and system
CN102999606B (en) * 2012-11-21 2015-12-23 东莞宇龙通信科技有限公司 Software delet method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5848418A (en) * 1997-02-19 1998-12-08 Watchsoft, Inc. Electronic file analyzer and selector

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5848418A (en) * 1997-02-19 1998-12-08 Watchsoft, Inc. Electronic file analyzer and selector

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
伍顺运等.AutoCAD病毒的解决办法.城市勘测.2004,(2),第30-31、34页. *
曾银龙.一个基于Autolisp的病毒程序剖析.智能建筑与城市信息.2004,(1),91-95. *

Also Published As

Publication number Publication date
CN101276391A (en) 2008-10-01

Similar Documents

Publication Publication Date Title
US8903798B2 (en) Real-time annotation and enrichment of captured video
US9251157B2 (en) Enterprise node rank engine
KR101065071B1 (en) Expanded snippets
US8595229B2 (en) Search query generator apparatus
US11042539B2 (en) Identifying field values based on user-selected extraction mode
US20090319883A1 (en) Automatic Video Annotation through Search and Mining
US8214347B2 (en) Search result sub-topic identification system and method
US8868526B2 (en) Parallel segmented index supporting incremental document and term indexing
US20210109976A1 (en) System, method and computer program product for protecting derived metadata when updating records within a search engine
JP2004062893A (en) System and method for automatic retrieval of example sentence based on weighted editing distance
US20140012841A1 (en) Weight-based stemming for improving search quality
JP2021501402A (en) Ranking of documents based on semantic abundance
CN102819592A (en) Lucene-based desktop searching system and method
CN113660541B (en) Method and device for generating abstract of news video
US20180246896A1 (en) Corpus Specific Generative Query Completion Assistant
CN111324607B (en) SQL statement multiplexing method and device
JP6586177B2 (en) Cumulative search processing method and apparatus, terminal, and storage medium
CN101276391B (en) Picture and file virus defense system and method
JP2007317130A (en) Information processor and program
JP4850882B2 (en) How to insert a link on a web page
JP2008226110A (en) Information processor, information processing method and control program
US20130226619A1 (en) Input support device and input support method
US20130325908A1 (en) Systems and methods for storing data and eliminating redundancy
US10380195B1 (en) Grouping documents by content similarity
Rahimtoroghi et al. A structural rule-based stemmer for Persian

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101208

Termination date: 20150327

EXPY Termination of patent right or utility model