Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

File reading and writing method and device

A technology for files and specified files, applied in the field of data processing, can solve the problems that antivirus software cannot load drivers, prevent antivirus software from loading drivers, and viruses cannot be deleted, etc.

Active Publication Date: 2019-11-26
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Although the above method can fight against viruses to a certain extent, there are still shortcomings, mainly manifested in: many viruses will set hooks in the kernel state to prevent the antivirus software from loading the driver, resulting in the antivirus software being unable to load the driver, and unable to enter the kernel state to fight against the virus , and eventually the antivirus software cannot find the virus or delete the virus due to insufficient permissions

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File reading and writing method and device
  • File reading and writing method and device
  • File reading and writing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0088] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0089] figure 1 It is a schematic flowchart of a file reading and writing method according to an embodiment of the present invention. Such as figure 1 As shown, the method may generally include the following steps S101-S104:

[0090] Step S101, accessing the hard disk device, and reading raw data from the hard disk device, where the raw data is data in the form of a byte stream.

[0091] Step S102, parsing the read raw data to o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a file reading and writing method and device. The method comprises the following steps that: accessing hard disk equipment, reading raw data from the hard disk equipment, wherein the raw data is data of a byte stream form; analyzing the read raw data to obtain terminal system configuration parameters, wherein the terminal system configuration parameters comprise a file storage path in a terminal system; according to the terminal system configuration parameters, determining the storage path of target raw data corresponding to an appointed file in the hard disk equipment; and according to the storage path, searching the target raw data, and executing a read-write operation for the target raw data in the hard disk equipment. By use of the technical scheme, a whole read-write process is not limited by kernel mode permission, no drivers need to be loaded so as to avoid a situation that a file can not be normally read and written since driver loading is hindered when hooks are arranged in the kernel mode by malicious programs and the like, and a purpose that the file is read and written from a user mode is achieved.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a method and device for reading and writing files. Background technique [0002] In the prior art, there is often such an antivirus scenario: a virus with a driver exists in the system earlier than the antivirus software, and the virus runs with kernel authority. Since user-mode permissions are lower than kernel-mode permissions, viruses can easily hide from antivirus software by intercepting file system access requests, preventing antivirus software from operating virus files, and even preventing antivirus software from running its own functions normally. To solve this problem, the existing solution in the industry is that the anti-virus software enters the kernel mode by loading the driver, and fights against the virus with the kernel mode authority. Obviously, as far as this kind of scheme is concerned, whether the driver can be successfully loaded is the key to succe...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F21/60G06F21/62
CPCG06F21/604G06F21/6227G06F2221/2141
Inventor 王晨男谭合力张波
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products