CN114189550B - Virtual positioning detection method and device, electronic equipment and storage medium - Google Patents
Virtual positioning detection method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114189550B CN114189550B CN202111453082.1A CN202111453082A CN114189550B CN 114189550 B CN114189550 B CN 114189550B CN 202111453082 A CN202111453082 A CN 202111453082A CN 114189550 B CN114189550 B CN 114189550B
- Authority
- CN
- China
- Prior art keywords
- detection result
- detection
- virtual positioning
- positioning
- virtual
- 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.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 346
- 238000003860 storage Methods 0.000 title claims description 14
- 238000000034 method Methods 0.000 claims abstract description 49
- 238000004080 punching Methods 0.000 claims abstract description 45
- 230000006870 function Effects 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 15
- 230000002159 abnormal effect Effects 0.000 claims description 8
- 238000012795 verification Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 abstract description 25
- 238000010586 diagram Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Computer And Data Communications (AREA)
Abstract
The embodiment of the invention provides a virtual positioning detection method and a device, which relate to the technical field of Internet, and the method comprises the following steps: when a positioning and punching instruction is detected, acquiring position information; performing virtual positioning detection on the acquired position information and the position information to obtain a first detection result; and sending the first detection result to a virtual positioning detection server and an application server so that the virtual positioning detection server obtains a second detection result from the application server, and performing virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result. Through the mode, in the positioning and punching process, the process of acquiring the position information is detected, and meanwhile, the position information is also detected, so that the virtual positioning detection of the terminal is realized. Furthermore, virtual positioning detection is realized in the process of reporting the position information, and man-in-the-middle attack is effectively prevented.
Description
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a virtual positioning detection method, a virtual positioning detection device, an electronic device, and a storage medium.
Background
Virtual positioning refers to that after a user enters an operation page of an application program, a specified area in a map is touched to simulate positioning, so that the positions of all application programs based on positioning on a terminal are changed to specified positions.
Currently, detecting whether there is a virtual location is by detecting the current device environment and querying the bluetooth linked device, but this approach has the following drawbacks:
1) The method is realized mainly by detecting the jail-breaking environment and the peripherals, and under the condition that the equipment breaks the jail, the risk of virtual positioning is prompted, and whether the virtual positioning is performed cannot be clarified or not;
2) Although the risk reminding of the virtual positioning can be performed, the virtual positioning detection is easily bypassed by a hacker through the HOOK detection method;
3) The man-in-the-middle attack can not be prevented from tampering with positioning, for example, when the html page uses positioning information, a hacker tampers JSbridge positioning data in the method or tampers positioning data reported by the network interface.
Disclosure of Invention
In view of the foregoing, embodiments of the present invention are directed to providing a virtual positioning detection method and a corresponding virtual positioning detection apparatus that overcome or at least partially solve the foregoing problems.
In order to solve the above problems, an embodiment of the present invention discloses a virtual positioning detection method, which includes:
When a positioning and punching instruction is detected, acquiring position information;
performing virtual positioning detection on the acquired position information and the position information to obtain a first detection result;
And sending the first detection result to a virtual positioning detection server and an application server so that the virtual positioning detection server obtains a second detection result from the application server, and performing virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result.
In one or more embodiments, when the positioning and punching instruction is detected, acquiring the position information includes:
And when a positioning and punching instruction is detected, calling an application program interface of the positioning and punching to acquire position information.
In one or more embodiments, the performing virtual positioning detection on the acquired position information and the position information to obtain a first detection result includes:
And calling a virtual positioning detection software development kit to detect whether an application program interface called by the position information is hijacked by a hook function, and detecting whether a virtual positioning system service is constructed based on the position information to obtain a first detection result.
In one or more embodiments, the sending the first detection result to a virtual location detection server and an application server includes:
Calling the virtual positioning detection software development kit to generate a session identifier corresponding to the first detection result, and sending the session identifier and the first detection result to a virtual positioning detection server;
And calling the application program interface of the positioning and punching card to send the session identification and the first detection result to an application program server.
Correspondingly, the embodiment of the invention also discloses a virtual positioning detection method, which comprises the following steps:
Acquiring a first detection result from a terminal;
acquiring a second detection result from the application server;
and performing virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result.
In one or more embodiments, the performing virtual positioning judgment based on the first detection result and the second detection result, to obtain a judgment result, includes:
detecting whether the first detection result is the same as the second detection result;
if yes, judging that the virtual positioning detection is normal; if not, judging that the virtual positioning detection is abnormal.
In one or more embodiments, before the virtual positioning determination is performed based on the first detection result and the second detection result, the method further includes:
acquiring a session identifier corresponding to the first detection result;
Verifying the session identifier;
And if the verification is passed, storing the session identifier and the first detection result.
In one or more embodiments, the obtaining the second detection result from the application server includes:
acquiring a session identifier corresponding to the first detection result;
and acquiring a second detection result corresponding to the session identifier from the application server.
Correspondingly, the embodiment of the invention discloses a virtual positioning detection device, which comprises:
The first acquisition module is used for acquiring position information when a positioning and card punching instruction is detected;
the detection module is used for carrying out virtual positioning detection on the acquired position information and the position information to obtain a first detection result;
and the sending module is used for sending the first detection result to a virtual positioning detection server and an application server so that the virtual positioning detection server obtains a second detection result from the application server, and performs virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result.
In one or more embodiments, the first obtaining module is specifically configured to:
And when a positioning and punching instruction is detected, calling an application program interface of the positioning and punching to acquire position information.
In one or more embodiments, the detection module is specifically configured to:
And calling a virtual positioning detection software development kit to detect whether an application program interface called by the position information is hijacked by a hook function, and detecting whether a virtual positioning system service is constructed based on the position information to obtain a first detection result.
In one or more embodiments, the sending module is specifically configured to:
Calling the virtual positioning detection software development kit to generate a session identifier corresponding to the first detection result, and sending the session identifier and the first detection result to a virtual positioning detection server; and calling the application program interface of the positioning and punching card to send the session identification and the first detection result to an application program server.
Correspondingly, the embodiment of the invention also discloses a virtual positioning detection device, which comprises:
the second acquisition module is used for acquiring a first detection result from the terminal; and obtaining a second detection result from the application server;
And the judging module is used for carrying out virtual positioning judgment based on the first detection result and the second detection result to obtain a judging result.
In one or more embodiments, the determining module includes:
the detection sub-module is used for detecting whether the first detection result is the same as the second detection result;
And the judging sub-module is used for judging that the virtual positioning detection is normal or judging that the virtual positioning detection is abnormal.
In one or more embodiments, further comprising:
the second obtaining module is further configured to obtain a session identifier corresponding to the first detection result before the virtual positioning determination is performed based on the first detection result and the second detection result to obtain a determination result;
the verification module is used for verifying the session identifier;
And the storage module is used for storing the session identifier and the first detection result.
In one or more embodiments, the second acquisition module includes:
a session identifier obtaining sub-module, configured to obtain a session identifier corresponding to the first detection result;
And the detection result acquisition sub-module is used for acquiring a second detection result corresponding to the session identifier from the application server.
Correspondingly, the embodiment of the invention discloses an electronic device, which comprises: a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor, implements the steps of the virtual location detection method embodiments described above.
Accordingly, embodiments of the present invention disclose a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the above-described embodiments of a virtual location detection method.
The embodiment of the invention has the following advantages:
When a positioning and punching instruction is detected, acquiring position information; performing virtual positioning detection on the acquired position information and the position information to obtain a first detection result; and sending the first detection result to a virtual positioning detection server and an application server so that the virtual positioning detection server obtains a second detection result from the application server, and performing virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result. Through the mode, in the positioning and punching process, the process of acquiring the position information is detected, and meanwhile, the position information is also detected, so that the virtual positioning detection of the terminal is realized.
Further, the terminal sends the first detection result to the virtual positioning detection server and the application server, and then the virtual positioning detection server obtains the second detection result from the application server, and performs virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result, so that virtual positioning detection is performed in the process of reporting the position information, and man-in-the-middle attack is effectively prevented.
Drawings
FIG. 1 is a flowchart illustrating steps of a first embodiment of a virtual location detection method according to the present invention;
FIG. 2 is a flowchart illustrating steps of a second embodiment of a method for detecting a virtual location according to the present invention;
FIG. 3 is an interactive schematic diagram of a virtual location detection method of the present invention;
FIG. 4 is a block diagram of a virtual location detection apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram of a virtual positioning detection apparatus according to a second embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
One of the core ideas of the embodiment of the invention is that when a positioning and card punching instruction is detected, position information is acquired; performing virtual positioning detection on the acquired position information and the position information to obtain a first detection result; and sending the first detection result to a virtual positioning detection server and an application server so that the virtual positioning detection server obtains a second detection result from the application server, and performing virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result. Through the mode, in the positioning and punching process, the process of acquiring the position information is detected, and meanwhile, the position information is also detected, so that the virtual positioning detection of the terminal is realized.
Further, the terminal sends the first detection result to the virtual positioning detection server and the application server, and then the virtual positioning detection server obtains the second detection result from the application server, and performs virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result, so that virtual positioning detection is performed in the process of reporting the position information, and man-in-the-middle attack is effectively prevented.
Referring to fig. 1, a flowchart illustrating steps of a first embodiment of a virtual positioning detection method of the present invention is applied to a terminal, where the terminal may have the following characteristics:
(1) In a hardware system, the device includes a central processing unit, a memory, an input unit, and an output unit, that is, the device is often a microcomputer device having a communication function. In addition, there may be various input modes such as a keyboard, a mouse, a touch panel, a microphone, a camera, and the like, and the input may be adjusted as necessary. Meanwhile, the equipment often has various output modes, such as a receiver, a display screen and the like, and can be adjusted according to the needs;
(2) On a software architecture, the device must be provided with an operating system, such as Windows Mobile, symbian, palm, android, iOS, etc. Meanwhile, the operating systems are more and more open, and personalized application programs developed based on the open operating system platforms are layered endlessly, such as an address book, a calendar, a notepad, a calculator, various games and the like, so that the demands of personalized users are met to a great extent;
(3) In terms of communication capability, the device has flexible access mode and high-bandwidth communication performance, and can automatically adjust the selected communication mode according to the selected service and the environment, thereby facilitating the use of users. The device may support 3GPP (3 rd Generation Partnership Project, third generation partnership project), 4GPP (4 rd Generation Partnership Project, fourth generation partnership project), 5GPP (5 rd Generation Partnership Project, fifth generation partnership project), LTE (Long Term Evolution ), WIMAX (World Interoperability for Microwave Access, worldwide interoperability for microwave access), computer network communication based on TCP/IP (Transmission Control Protocol/Internet Protocol ), UDP (User Datagram Protocol, user datagram protocol) protocols, and short-range wireless transmission based on Bluetooth, infrared transmission standards, not only support voice services, but also support multiple wireless data services;
(4) In terms of functional use, the device is more focused on humanization, individualization and multifunctionality. With the development of computer technology, the device enters a mode of 'centering on people' from a mode of 'centering on the device', and embedded computing, control technology, artificial intelligence technology, biological authentication technology and the like are integrated, so that the aim of people is fully embodied. Due to the development of software technology, the device can adjust the settings according to personal needs, and is more personalized. Meanwhile, the device integrates a plurality of software and hardware, and the functions are more and more powerful.
The terminal can be provided with an application program with a positioning and punching function, and the positioning and punching can be to report the current positioning of the terminal to a server corresponding to the application program and record the current positioning as an application program server.
The method specifically comprises the following steps:
Step 101, when a positioning and card punching instruction is detected, position information is acquired;
In a preset page of the application program, a virtual button for punching a card can be set, when a user clicks the virtual button, a positioning and punching instruction can be triggered, and after the application program detects the positioning and punching instruction, the current position information of the terminal can be obtained.
In the embodiment of the present invention, when the positioning and punching instruction is detected, obtaining the position information includes:
And when a positioning and punching instruction is detected, calling an application program interface of the positioning and punching to acquire position information.
Specifically, an API (Application Programming Interface, application program interface) for positioning and punching is provided in the application program, and when a positioning and punching instruction is detected, the API can be called to obtain position information for positioning and punching.
102, Performing virtual positioning detection on the acquired position information and the position information to obtain a first detection result;
When the position information is acquired, the process of acquiring the position information can be detected, so that whether the process of acquiring the position information is abnormal or not is determined, and the position information is detected, so that whether the acquired position information is abnormal or not is determined.
In the embodiment of the present invention, the performing virtual positioning detection on the acquired position information and the position information to obtain a first detection result includes:
And calling a virtual positioning detection software development kit to detect whether an application program interface called by the position information is hijacked by a hook function, and detecting whether a virtual positioning system service is constructed based on the position information to obtain a first detection result.
Specifically, a virtual location detection SDK (Software Development Kit, a software development kit) is further installed in the terminal, and the virtual location detection SDK itself has a detection capability of virtual location, so that the virtual location detection SDK can be called to detect whether an API for location and card punching is hijacked by a HOOK function (i.e. whether the API is hijacked by a HOOK), thereby obtaining a detection result of whether the API is hijacked by a HOOK. The hook function can hijack the API before the system calls the API, so that the hook function can obtain the control right of the API earlier than the system, and at the moment, the hook function can process (change) the execution behavior of the API, and can forcedly end the transmission of the information and the like.
And performing feature analysis on the longitude and latitude results of the position information to identify whether the system service of virtual positioning is constructed or not, so as to obtain a detection result of whether the system service is constructed or not. The system service may be an application, routine, or process that performs specified system functions, among other things, to support other applications.
Then, the detection result of whether or not the HOOK is received and the detection result of whether or not the system service is constructed are recorded as the final detection result as the first detection result.
Step S103, sending the first detection result to a virtual positioning detection server and an application server, so that the virtual positioning detection server obtains a second detection result from the application server, and performs virtual positioning judgment based on the first detection result and the second detection result, so as to obtain a judgment result.
After the first detection result is obtained, the first detection result may be sent to a server corresponding to the virtual detection SDK, and recorded as a virtual positioning detection server, and the location information and the first detection result are sent to an application server (the location information is used for archiving), so that the virtual positioning detection server obtains a second detection result from the application server, and then performs virtual positioning judgment based on the first detection result and the second detection result, so as to determine whether the application program performs virtual positioning, and a specific judgment method is described in detail later.
In an embodiment of the present invention, the sending the first detection result to a virtual positioning detection server and an application server includes:
Calling the virtual positioning detection software development kit to generate a session identifier corresponding to the first detection result, and sending the session identifier and the first detection result to a virtual positioning detection server;
And calling the application program interface of the positioning and punching card to send the session identification and the first detection result to an application program server.
Specifically, before sending the first detection result, the virtual location detection SDK may generate a session identifier of the present card punching, and then send the session identifier and the first detection result to the virtual location detection server together, and simultaneously send the session identifier and the first detection result to the application program.
After the application program obtains the session identifier, the application program can call an API for positioning and punching cards to send the session identifier, the position information and the first detection result to the application program server.
In the embodiment of the invention, when a positioning and punching instruction is detected, position information is acquired; performing virtual positioning detection on the acquired position information and the position information to obtain a first detection result; and sending the first detection result to a virtual positioning detection server and an application server so that the virtual positioning detection server obtains a second detection result from the application server, and performing virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result. Through the mode, in the positioning and punching process, the process of acquiring the position information is detected, and meanwhile, the position information is also detected, so that the virtual positioning detection of the terminal is realized.
Further, the terminal sends the first detection result to the virtual positioning detection server and the application server, and then the virtual positioning detection server obtains the second detection result from the application server, and performs virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result, so that virtual positioning detection is performed in the process of reporting the position information, and man-in-the-middle attack is effectively prevented.
Referring to fig. 2, a flowchart illustrating steps of a second embodiment of a virtual positioning detection method of the present invention, applied to a virtual positioning detection server, may specifically include the following steps:
Step 201, obtaining a first detection result from a terminal;
specifically, the virtual positioning detection server may obtain the first detection result from the terminal, and a specific manner of the terminal obtaining the first detection result may refer to the first embodiment, and in order to avoid repetition, details are omitted herein.
It should be noted that, the manner in which the virtual positioning detection server is obtained from the terminal may be that the terminal actively transmits, or may be that the virtual positioning detection server actively obtains from the terminal, and in practical application, the virtual positioning detection server may be set according to the actual requirement, which is not limited in the embodiment of the present invention.
Step 202, obtaining a second detection result from the application server;
the virtual location detection server may also obtain a second detection result from the application server for comparison with the first detection result.
In an embodiment of the present invention, the method further includes:
acquiring a session identifier corresponding to the first detection result;
Verifying the session identifier;
And if the verification is passed, storing the session identifier and the first detection result.
Specifically, the virtual location detection server, after receiving the session identifier and the first detection result, may verify the session identifier for security purposes to confirm that the session identifier and the first detection result are issued from the legitimate virtual location detection SDK. And when the verification passes, storing the session identification and the first detection result.
In an embodiment of the present invention, the obtaining, from the application server, the second detection result includes:
acquiring a session identifier corresponding to the first detection result;
and acquiring a second detection result corresponding to the session identifier from the application server.
Specifically, the application server may store session identifiers, location information (for archiving), and detection results corresponding to a plurality of location and punch cards, and similarly, the virtual location detection server may also store session identifiers and detection results corresponding to a plurality of location and punch cards, so, in order to ensure that the same location and punch card is judged, the virtual location detection server may obtain the session identifier of the location and punch card from the storage, and then obtain the corresponding detection result from the application server based on the session identifier, and record as a second detection result.
And 203, performing virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result.
After the virtual positioning detection server acquires the first detection result and the second detection result, the virtual positioning detection server adopts the two pieces of information to judge so as to obtain a judgment result.
In the embodiment of the present invention, the performing virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result includes:
detecting whether the first detection result is the same as the second detection result;
if yes, judging that the virtual positioning detection is normal; if not, judging that the virtual positioning detection is abnormal.
Specifically, whether the first detection result is the same as the second detection result or not can be detected, and if yes, the virtual positioning detection is judged to be normal; if not, the virtual positioning detection abnormality is determined, and the cause of the abnormality may be that the application program is attacked in the process of uploading the data, and the like.
For ease of understanding, referring to fig. 3, a data interaction process between an application, a virtual location detection SDK, an application server, and a virtual location detection server is illustrated. Specifically, the application program starts positioning when detecting a positioning and card punching instruction, and position information is obtained.
And when positioning is performed, the virtual positioning detection SDK starts to detect to obtain a first detection result, then generates a session identifier, sends the session identifier and the first detection result to an application program, and simultaneously sends the session identifier and the first detection result to the virtual positioning detection server.
After the application program obtains the session identification and the first detection result, the session identification, the position information and the first detection result are reported to the application program server for storage. The virtual positioning detection server acquires a second detection result from the application program server based on the session identifier, then judges whether the first detection result is the same as the second detection result, if so, judges that the virtual positioning detection is normal, and if not, judges that the virtual positioning detection result is abnormal.
In the embodiment of the invention, a first detection result is acquired from a terminal, a second detection result is acquired from an application server, and then virtual positioning judgment is performed based on the first detection result and the second detection result, so that a judgment result is obtained. Through the mode, the terminal sends the first detection result to the virtual positioning detection server and the application server, and then the virtual positioning detection server obtains the second detection result from the application server, and performs virtual positioning judgment based on the first detection result and the second detection result to obtain the judgment result, so that the virtual positioning detection of the process of reporting the position information is realized, and man-in-the-middle attack is effectively prevented.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 4, a block diagram of an embodiment of a virtual positioning detection apparatus according to the present invention is shown, which may specifically include the following modules:
a first obtaining module 401, configured to obtain location information when a positioning and punching instruction is detected;
The detection module 402 is configured to perform virtual positioning detection on the acquired position information and the position information, so as to obtain a first detection result;
And the sending module 403 is configured to send the first detection result to a virtual positioning detection server and an application server, so that the virtual positioning detection server obtains a second detection result from the application server, and performs virtual positioning judgment based on the first detection result and the second detection result, to obtain a judgment result.
In an embodiment of the present invention, the first obtaining module is specifically configured to:
And when a positioning and punching instruction is detected, calling an application program interface of the positioning and punching to acquire position information.
In an embodiment of the present invention, the detection module is specifically configured to:
And calling a virtual positioning detection software development kit to detect whether an application program interface called by the position information is hijacked by a hook function, and detecting whether a virtual positioning system service is constructed based on the position information to obtain a first detection result.
In an embodiment of the present invention, the sending module is specifically configured to:
Calling the virtual positioning detection software development kit to generate a session identifier corresponding to the first detection result, and sending the session identifier and the first detection result to a virtual positioning detection server; and calling the application program interface of the positioning and punching card to send the session identification and the first detection result to an application program server.
Referring to fig. 5, a second block diagram of an embodiment of a virtual positioning detection apparatus according to the present invention may specifically include the following modules:
A second obtaining module 501, configured to obtain a first detection result from a terminal; and obtaining a second detection result from the application server;
And the judging module 502 is configured to perform virtual positioning judgment based on the first detection result and the second detection result, so as to obtain a judgment result.
In an embodiment of the present invention, the determining module includes:
the detection sub-module is used for detecting whether the first detection result is the same as the second detection result;
And the judging sub-module is used for judging that the virtual positioning detection is normal or judging that the virtual positioning detection is abnormal.
In an embodiment of the present invention, the method further includes:
the second obtaining module is further configured to obtain a session identifier corresponding to the first detection result before the virtual positioning determination is performed based on the first detection result and the second detection result to obtain a determination result;
the verification module is used for verifying the session identifier;
And the storage module is used for storing the session identifier and the first detection result.
In an embodiment of the present invention, the second obtaining module includes:
a session identifier obtaining sub-module, configured to obtain a session identifier corresponding to the first detection result;
And the detection result acquisition sub-module is used for acquiring a second detection result corresponding to the session identifier from the application server.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The embodiment of the invention also provides electronic equipment, which comprises:
The virtual positioning detection method comprises a processor, a memory and a computer program which is stored in the memory and can run on the processor, wherein the computer program realizes the processes of the virtual positioning detection method embodiment when being executed by the processor, can achieve the same technical effects, and is not repeated here.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, realizes the processes of the above embodiment of the virtual positioning detection method, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or terminal device that comprises the element.
The above description of the virtual positioning detection method and the virtual positioning detection device provided by the invention applies specific examples to illustrate the principle and the implementation of the invention, and the description of the above examples is only used for helping to understand the method and the core idea of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (11)
1. A method for virtual location detection, the method comprising:
When a positioning and punching instruction is detected, acquiring position information;
Invoking a virtual positioning detection software development kit to detect whether an application program interface invoked by the position information is hijacked by a hook function, and detecting whether a virtual positioning system service is constructed based on the position information to obtain a first detection result;
And sending the first detection result to a virtual positioning detection server and an application server so that the virtual positioning detection server obtains a second detection result from the application server, and performing virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result.
2. The virtual positioning detection method according to claim 1, wherein the obtaining the position information when the positioning and punching instruction is detected includes:
And when a positioning and punching instruction is detected, calling an application program interface of the positioning and punching to acquire position information.
3. The virtual location detection method according to claim 1, wherein the sending the first detection result to a virtual location detection server and an application server includes:
Calling the virtual positioning detection software development kit to generate a session identifier corresponding to the first detection result, and sending the session identifier and the first detection result to a virtual positioning detection server;
And calling the application program interface of the positioning and punching card to send the session identification and the first detection result to an application program server.
4. A method for virtual location detection, the method comprising:
Invoking a virtual positioning detection software development kit to detect whether an application program interface invoked by acquiring position information is hijacked by a hook function, and detecting whether a virtual positioning system service is constructed based on the position information to obtain a first detection result;
Acquiring the first detection result from a terminal;
acquiring a second detection result from the application server;
and performing virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result.
5. The method of claim 4, wherein the performing virtual positioning determination based on the first detection result and the second detection result to obtain a determination result includes:
detecting whether the first detection result is the same as the second detection result;
if yes, judging that the virtual positioning detection is normal; if not, judging that the virtual positioning detection is abnormal.
6. The virtual positioning detection method according to claim 4, further comprising, before the virtual positioning determination based on the first detection result and the second detection result, obtaining a determination result:
acquiring a session identifier corresponding to the first detection result;
Verifying the session identifier;
And if the verification is passed, storing the session identifier and the first detection result.
7. The method of claim 4, wherein the obtaining the second detection result from the application server comprises:
acquiring a session identifier corresponding to the first detection result;
and acquiring a second detection result corresponding to the session identifier from the application server.
8. A virtual positioning detection apparatus, the apparatus comprising:
The first acquisition module is used for acquiring position information when a positioning and card punching instruction is detected;
The detection module is used for calling a virtual positioning detection software development kit to detect whether an application program interface called by the position information is hijacked by a hook function or not, and detecting whether a virtual positioning system service is constructed or not based on the position information to obtain a first detection result;
and the sending module is used for sending the first detection result to a virtual positioning detection server and an application server so that the virtual positioning detection server obtains a second detection result from the application server, and performs virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result.
9. A virtual positioning detection apparatus, the apparatus comprising:
the second acquisition module is used for acquiring position information when a positioning and card punching instruction is detected, calling a virtual positioning detection software development kit to detect whether an application program interface called by the position information is hijacked by a hook function or not, detecting whether a virtual positioning system service is constructed or not based on the position information, obtaining a first detection result, and acquiring the first detection result from a terminal; and obtaining a second detection result from the application server;
And the judging module is used for carrying out virtual positioning judgment based on the first detection result and the second detection result to obtain a judging result.
10. An electronic device, comprising: a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor implements the steps of the virtual positioning detection method according to any one of claims 1 to 7.
11. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, which computer program, when being executed by a processor, implements the steps of the virtual positioning detection method according to any one of claims 1-7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111453082.1A CN114189550B (en) | 2021-11-30 | 2021-11-30 | Virtual positioning detection method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111453082.1A CN114189550B (en) | 2021-11-30 | 2021-11-30 | Virtual positioning detection method and device, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114189550A CN114189550A (en) | 2022-03-15 |
| CN114189550B true CN114189550B (en) | 2024-04-26 |
Family
ID=80541073
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111453082.1A Active CN114189550B (en) | 2021-11-30 | 2021-11-30 | Virtual positioning detection method and device, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114189550B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115426350B (en) * | 2022-09-23 | 2025-02-18 | 北京有竹居网络技术有限公司 | Image uploading method, image uploading device, electronic equipment and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108288309A (en) * | 2017-01-10 | 2018-07-17 | 厦门雅迅网络股份有限公司 | A kind of movable attendance checking positioning system and method |
| CN111723843A (en) * | 2020-05-15 | 2020-09-29 | 五八有限公司 | Sign-in method, device, electronic equipment and storage medium |
| CN112995916A (en) * | 2021-04-12 | 2021-06-18 | 江苏通付盾科技有限公司 | Detection method and device for virtual positioning of mobile terminal |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7103878B2 (en) * | 2001-12-13 | 2006-09-05 | Hewlett-Packard Development Company, L.P. | Method and system to instrument virtual function calls |
| US8707271B2 (en) * | 2011-05-20 | 2014-04-22 | International Business Machines Corporation | Fake check-in entries posted on behalf of social network users |
-
2021
- 2021-11-30 CN CN202111453082.1A patent/CN114189550B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108288309A (en) * | 2017-01-10 | 2018-07-17 | 厦门雅迅网络股份有限公司 | A kind of movable attendance checking positioning system and method |
| CN111723843A (en) * | 2020-05-15 | 2020-09-29 | 五八有限公司 | Sign-in method, device, electronic equipment and storage medium |
| CN112995916A (en) * | 2021-04-12 | 2021-06-18 | 江苏通付盾科技有限公司 | Detection method and device for virtual positioning of mobile terminal |
Non-Patent Citations (1)
| Title |
|---|
| 李春儒 ; .大数据时代,LBS+发展突破在即.单片机与嵌入式系统应用.2015,(10),全文. * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114189550A (en) | 2022-03-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108632213B (en) | Equipment information processing method and device | |
| US20120253745A1 (en) | System and method for testing performance of mobile application server | |
| US9535567B1 (en) | Method for interception and blocking of mouse move and resize events on mobile device | |
| CN109219036B (en) | Method and device for unbinding device, and electronic device | |
| RU2646354C2 (en) | Method, device and system for installation of transmission connection | |
| CN111212075A (en) | Service request processing method and device, electronic equipment and computer storage medium | |
| CN104796436B (en) | User login method, system, the first Platform Server and related platform server | |
| CN110688319B (en) | Application keep-alive capability test method and related device | |
| CN106156611A (en) | The dynamic analysing method of smart mobile phone application program and system | |
| CN103870551B (en) | The method and apparatus that a kind of cross-domain data obtains | |
| WO2020033061A1 (en) | Enhancing security using anomaly detection | |
| JP2020509622A (en) | Wireless network type detection method and apparatus and electronic device | |
| US10516690B2 (en) | Physical device detection for a mobile application | |
| CN109814942A (en) | A kind of parameter processing method and device | |
| CN114189550B (en) | Virtual positioning detection method and device, electronic equipment and storage medium | |
| US20150223053A1 (en) | Enabling Learning Access on a Mobile Device | |
| CN107508746B (en) | Good friend's adding method, device and electronic equipment | |
| CN112019558A (en) | Universal baffle testing method, device, equipment and computer storage medium | |
| CN109688096B (en) | IP address identification method, device, equipment and computer readable storage medium | |
| CN114201494A (en) | Cloud document data processing method, device, equipment, storage medium and product | |
| CN105373715A (en) | Wearable device based data access method and apparatus | |
| JP5828457B2 (en) | API execution control device and program | |
| CN108156071B (en) | Method for adding members to community, terminal device and computer readable storage medium | |
| CN105812270A (en) | Information processing method and wireless routing device | |
| EP4093076B1 (en) | Method, mobile equipment, and system for vulnerability detection and prevention in a sim, and storage media |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |