Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

File reading and writing method and device

A method of reading and writing and a file technology, 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: 2017-07-21
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. While 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 so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.

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

[0090] Step S101 , accessing a 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: Parse the read raw data t...

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 file reading and writing method and device. 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 antivirus software, and the virus runs with kernel permissions. Because the user mode permissions are lower than the kernel mode permissions, the virus can easily be invisible to the antivirus software by intercepting the access request of the file system, so as to prevent the antivirus software from operating the virus files, and even prevent the antivirus software from running its own functions normally. In response to this problem, the existing solution in the industry is that the antivirus software enters the kernel mode by loading the driver, and fights the virus with the permission of the kernel mode. Obviously, as far as this scheme is concerned, whether the driver can be su...

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
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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products