CN114189550A - 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
- CN114189550A CN114189550A CN202111453082.1A CN202111453082A CN114189550A CN 114189550 A CN114189550 A CN 114189550A CN 202111453082 A CN202111453082 A CN 202111453082A CN 114189550 A CN114189550 A CN 114189550A
- Authority
- CN
- China
- Prior art keywords
- detection
- detection result
- virtual positioning
- server
- position information
- 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.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 351
- 238000003860 storage Methods 0.000 title claims description 14
- 238000000034 method Methods 0.000 claims abstract description 47
- 238000004080 punching Methods 0.000 claims abstract description 42
- 238000004590 computer program Methods 0.000 claims description 19
- 230000006870 function Effects 0.000 claims description 18
- 230000002159 abnormal effect Effects 0.000 claims description 10
- 238000012795 verification Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 abstract description 25
- 238000010586 diagram Methods 0.000 description 13
- 238000004891 communication Methods 0.000 description 6
- 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
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003993 interaction 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
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000007306 functionalization reaction Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000010295 mobile communication 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
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
The embodiment of the invention provides a virtual positioning detection method and a virtual positioning detection device, which relate to the technical field of Internet, and the method comprises the following steps: when a positioning card punching instruction is detected, position information is obtained; 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 program server, so that the virtual positioning detection server obtains a second detection result from the application program server, and performing virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result. By the mode, in the positioning and card 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 is locally performed on the terminal. Furthermore, virtual positioning detection is carried out 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 apparatus, an electronic device, and a storage medium.
Background
The virtual positioning means that after entering an operation page of an application program, a user touches a designated area in a map to simulate positioning, so that the positions of all the positioning-based application programs on the terminal are changed to designated positions.
Currently, detecting whether virtual positioning exists is a way of detecting the current device environment and inquiring the bluetooth-linked device, but this way has the following defects:
1) the method is mainly used for detecting the jail crossing environment and the peripheral equipment, and under the condition that equipment jail crosses, the risk of virtual positioning is prompted to exist, and whether the virtual positioning is carried out or not cannot be determined;
2) although risk reminding of virtual positioning can be made, hackers easily bypass virtual positioning detection by the HOOK detection method;
3) the positioning tampering by a man-in-the-middle attack cannot be effectively prevented, for example, when the html page uses the positioning information, a hacker tampers the positioning data in the JSbridge method or tampers the positioning data reported by the network interface.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed to provide a virtual positioning detection method and a corresponding virtual positioning detection apparatus that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a virtual positioning detection method, where the method includes:
when a positioning card punching instruction is detected, position information is obtained;
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 program server, so that the virtual positioning detection server obtains a second detection result from the application program 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 obtaining the location information when the location punch instruction is detected includes:
and when a positioning card punching instruction is detected, calling an application program interface of the positioning card punching to acquire position information.
In one or more embodiments, the performing virtual positioning detection on the obtained location information and the location information to obtain a first detection result includes:
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 established or not 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 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 an application program interface of the positioning card punching to send the session identifier 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 program 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 a 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 so, 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 performing the virtual positioning determination based on the first detection result and the second detection result to obtain a determination result, the method further includes:
acquiring a session identifier corresponding to the first detection result;
checking 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 identification from the application program 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 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 program server so that the virtual positioning detection server obtains a second detection result from the application program 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 card punching instruction is detected, calling an application program interface of the positioning card punching to acquire position information.
In one or more embodiments, the detection module is specifically configured to:
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 established or not 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 an application program interface of the positioning card punching to send the session identifier 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 judgment result.
In one or more embodiments, the determining module includes:
the detection submodule is used for detecting whether the first detection result is the same as the second detection result or not;
and the judging submodule 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 obtaining module includes:
a session identifier obtaining submodule, configured to obtain a session identifier corresponding to the first detection result;
and the detection result acquisition submodule is used for acquiring a second detection result corresponding to the session identifier from the application program 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, the computer program, when executed by the processor, implementing the steps of the above-described virtual positioning detection method embodiments.
Accordingly, the embodiment of the present invention discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the embodiment of the virtual positioning detection method.
The embodiment of the invention has the following advantages:
when a positioning card punching instruction is detected, position information is obtained; 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 program server, so that the virtual positioning detection server obtains a second detection result from the application program server, and performing virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result. By the mode, in the positioning and card 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 is locally performed on the terminal.
Further, the terminal sends the first detection result to the virtual positioning detection server and the application program server, then the virtual positioning detection server obtains the second detection result from the application program 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 a first step of a virtual positioning detection method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a second embodiment of a virtual positioning detection method according to the present invention;
FIG. 3 is an interaction diagram of a virtual positioning detection method according to the present invention;
FIG. 4 is a block diagram of a first embodiment of a virtual positioning detection apparatus according to the present invention;
fig. 5 is a block diagram of a second embodiment of a virtual positioning detection apparatus according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
One of the core concepts of the embodiment of the invention is that when a positioning 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 program server, so that the virtual positioning detection server obtains a second detection result from the application program server, and performing virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result. By the mode, in the positioning and card 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 is locally performed on the terminal.
Further, the terminal sends the first detection result to the virtual positioning detection server and the application program server, then the virtual positioning detection server obtains the second detection result from the application program 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 a first step of a virtual positioning detection method according to an embodiment of the present invention is shown, and the terminal is applied to a terminal, and the terminal may have the following characteristics:
(1) on a hardware architecture, a device has 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, various input modes such as a keyboard, a mouse, a touch screen, a microphone, a camera and the like can be provided, and input can be adjusted as required. Meanwhile, the equipment often has a plurality of output modes, such as a telephone receiver, a display screen and the like, and can be adjusted according to needs;
(2) on a software system, the device must have an operating system, such as Windows Mobile, Symbian, Palm, Android, iOS, and the like. Meanwhile, the operating systems are more and more open, and personalized application programs developed based on the open operating system platforms are infinite, such as a communication book, a schedule, a notebook, a calculator, various games and the like, so that the requirements of personalized users are met to a great extent;
(3) in terms of communication capacity, 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 being convenient for users to use. The device may support 3GPP (3rd Generation Partnership Project), 4GPP (4rd Generation Partnership Project), 5GPP (5rd Generation Partnership Project), LTE (Long Term Evolution), WIMAX (World Interoperability for Microwave Access), mobile communication based on TCP/IP (Transmission Control Protocol/Internet Protocol), UDP (User data Protocol, User Datagram Protocol) Protocol, computer network communication based on TCP/IP Protocol, and short-range wireless Transmission based on bluetooth and infrared Transmission standards, not only supporting voice services, but also supporting various wireless data services;
(4) in the aspect of function use, the equipment focuses more on humanization, individuation and multi-functionalization. With the development of computer technology, devices enter a human-centered mode from a device-centered mode, and the embedded computing, control technology, artificial intelligence technology, biometric authentication technology and the like are integrated, so that the human-oriented purpose is fully embodied. Due to the development of software technology, the equipment can be adjusted and set according to individual requirements, and is more personalized. Meanwhile, the device integrates a plurality of software and hardware, and the function is more and more powerful.
The terminal may be installed with an application program having a positioning and card punching function, and the positioning and card punching may be to report the current position of the terminal to a server corresponding to the application program, and record the current position as an application server.
The method specifically comprises the following steps:
the method comprises the steps that a virtual button for punching a card can be arranged in a preset page of an application program, 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 a terminal can be obtained.
In this embodiment of the present invention, the obtaining the location information when the positioning card punching instruction is detected includes:
and when a positioning card punching instruction is detected, calling an application program interface of the positioning card punching to acquire position information.
Specifically, an Application Program Interface (API) for location card punching is set in the Application program, and when a location card punching instruction is detected, the API may be called to obtain location information to perform location card 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 this embodiment of the present invention, the performing virtual location detection on the obtained location information and the location information to obtain a first detection result includes:
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 established or not based on the position information to obtain a first detection result.
Specifically, a virtual positioning detection SDK (Software Development Kit) is further installed in the terminal, and the virtual positioning detection SDK itself has a detection capability of virtual positioning, so that the virtual positioning detection SDK can be called to detect whether the API of positioning card punching is hijacked by the HOOK function (i.e., whether the API is HOOK), thereby obtaining a detection result of whether the API is 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 also forcibly end the transmission of the message and the like.
And performing characteristic analysis on the longitude and latitude results of the position information to identify whether the virtual positioning system service is constructed or not, so as to obtain a detection result of whether the system service is constructed or not. Where a system service may be an application, routine, or process that performs a specified system function in order to support other applications.
Then, the detection result of whether the system service is established or not and the detection result of whether the system service is established or not are taken as final detection results and recorded as first detection results.
Step S103, sending the first detection result to a virtual positioning detection server and an application program server, so that the virtual positioning detection server obtains a second detection result from the application program server, and performing virtual positioning judgment based on the first detection result and the second detection result 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, which is 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 determination based on the first detection result and the second detection result, thereby determining whether the application performs virtual positioning, and the specific determination method is described in detail in the rear.
In this embodiment of the present invention, the sending the first detection result to the virtual positioning detection server and the 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 an application program interface of the positioning card punching to send the session identifier and the first detection result to an application program server.
Specifically, before sending the first detection result, the SDK may generate a session identifier for the card punching, send the session identifier and the first detection result to the server, and 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 the API for positioning and punching the card 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 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 program server, so that the virtual positioning detection server obtains a second detection result from the application program server, and performing virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result. By the mode, in the positioning and card 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 is locally performed on the terminal.
Further, the terminal sends the first detection result to the virtual positioning detection server and the application program server, then the virtual positioning detection server obtains the second detection result from the application program 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 the virtual positioning detection method according to the present invention is shown, and is applied to a virtual positioning detection server, where the method specifically includes the following steps:
specifically, the virtual positioning detection server may obtain the first detection result from the terminal, where a specific manner for the terminal to obtain the first detection result may refer to embodiment one, and is not described herein for avoiding repetition.
It should be noted that the manner in which the virtual positioning detection server obtains from the terminal may be actively transmitted by the terminal, or may be actively obtained by the virtual positioning detection server from the terminal, and in practical application, the setting may be performed according to actual requirements, which is not limited in this embodiment of the present invention.
the virtual positioning detection server may further obtain a second detection result from the application server for comparison with the first detection result.
In the embodiment of the present invention, the method further includes:
acquiring a session identifier corresponding to the first detection result;
checking the session identifier;
and if the verification is passed, storing the session identifier and the first detection result.
Specifically, after receiving the session identifier and the first detection result, the virtual location detection server may check the session identifier to confirm that the session identifier and the first detection result are sent from a legal virtual location detection SDK for security. And when the verification is passed, storing the session identifier and the first detection result.
In this embodiment of the present invention, 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 identification from the application program server.
Specifically, the application server may store session identifiers, location information (for archiving), and detection results corresponding to a plurality of location cards, and similarly, the virtual location detection server may also store session identifiers and detection results corresponding to a plurality of location cards, so to ensure that the same location card is determined, the virtual location detection server may obtain the session identifier of the current location card from the storage, and then obtain the corresponding detection result from the application server based on the session identifier, and record the result as the second detection result.
And after the virtual positioning detection server obtains the first detection result and the second detection result, judging by adopting the two items of information to obtain a judgment result.
In this embodiment of the present invention, 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 so, 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 may be detected, and if so, it is determined that the virtual positioning detection is normal; if not, the virtual positioning detection is judged to be abnormal, and the reason of the abnormal may be that the application program is attacked in the process of uploading 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 shown. Specifically, when the application program detects a positioning card punching instruction, positioning is started to obtain position information.
And when positioning, the virtual positioning detection SDK starts detection 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 a virtual positioning detection server.
And after the application program acquires the session identifier and the first detection result, reporting the session identifier, the position information and the first detection result to an application program server for storage. And the virtual positioning detection server acquires a second detection result from the application program server based on the session identifier, and then judges whether the first detection result is the same as the second detection result, if so, the virtual positioning detection is judged to be normal, otherwise, the virtual positioning detection result is judged to be abnormal.
In the embodiment of the invention, a first detection result is obtained from a terminal, a second detection result is obtained from an application program server, and then virtual positioning judgment is carried out based on the first detection result and the second detection result to obtain a judgment result. Through the mode, the terminal sends the first detection result to the virtual positioning detection server and the application program server, then the virtual positioning detection server obtains the second detection result from the application program server, and performs virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result, so that the virtual positioning detection is performed in the process of reporting the position information, and man-in-the-middle attack is effectively prevented.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 4, a first structural block diagram of an embodiment of the virtual positioning detection apparatus of the present invention is shown, which may specifically include the following modules:
a first obtaining module 401, configured to obtain location information when a location punch instruction is detected;
a detection module 402, configured to perform virtual positioning detection on the obtained location information and the location information to obtain a first detection result;
a sending module 403, 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 card punching instruction is detected, calling an application program interface of the positioning card punching to acquire position information.
In an embodiment of the present invention, the detection module is specifically configured to:
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 established or not based on the position information to obtain a first detection result.
In this 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 an application program interface of the positioning card punching to send the session identifier and the first detection result to an application program server.
Referring to fig. 5, a structural block diagram ii of an embodiment of a virtual positioning detection apparatus of the present invention is shown, which may specifically include the following modules:
a second obtaining module 501, configured to obtain a first detection result from the terminal; and obtaining a second detection result from the application server;
a determining module 502, configured to perform virtual positioning determination based on the first detection result and the second detection result, so as to obtain a determination result.
In an embodiment of the present invention, the determining module includes:
the detection submodule is used for detecting whether the first detection result is the same as the second detection result or not;
and the judging submodule is used for judging that the virtual positioning detection is normal or judging that the virtual positioning detection is abnormal.
In the 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 submodule, configured to obtain a session identifier corresponding to the first detection result;
and the detection result acquisition submodule is used for acquiring a second detection result corresponding to the session identifier from the application program server.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, including:
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 when the computer program is executed by the processor, each process of the virtual positioning detection method embodiment is realized, the same technical effect can be achieved, and in order to avoid repetition, the details are not repeated.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements each process of the above-mentioned virtual positioning detection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, 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 present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, 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 terminal 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 terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal 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 of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The virtual positioning detection method and the virtual positioning detection device provided by the invention are described in detail, and the principle and the implementation mode of the invention are explained by applying specific examples, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (12)
1. A virtual positioning detection method, the method comprising:
when a positioning card punching instruction is detected, position information is obtained;
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 program server, so that the virtual positioning detection server obtains a second detection result from the application program 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 card punching instruction is detected comprises:
and when a positioning card punching instruction is detected, calling an application program interface of the positioning card punching to acquire position information.
3. The virtual positioning detection method according to claim 1, wherein said performing virtual positioning detection on the obtained position information and the position information to obtain a first detection result comprises:
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 established or not based on the position information to obtain a first detection result.
4. The virtual positioning detection method according to claim 1, wherein said sending the first detection result to a virtual positioning detection server and an application server comprises:
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 an application program interface of the positioning card punching to send the session identifier and the first detection result to an application program server.
5. A virtual positioning detection method, the method comprising:
acquiring a first detection result from a terminal;
acquiring a second detection result from the application program server;
and performing virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result.
6. The virtual positioning detection method according to claim 5, wherein said performing virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result comprises:
detecting whether the first detection result is the same as the second detection result;
if so, judging that the virtual positioning detection is normal; if not, judging that the virtual positioning detection is abnormal.
7. The virtual positioning detection method according to claim 5, wherein before said performing virtual positioning determination based on the first detection result and the second detection result to obtain a determination result, further comprising:
acquiring a session identifier corresponding to the first detection result;
checking the session identifier;
and if the verification is passed, storing the session identifier and the first detection result.
8. The virtual positioning detection method according to claim 5, wherein said obtaining a 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 identification from the application program server.
9. A virtual positioning detection apparatus, the apparatus comprising:
the first acquisition module is used for acquiring position information when a positioning 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 program server so that the virtual positioning detection server obtains a second detection result from the application program server, and performs virtual positioning judgment based on the first detection result and the second detection result to obtain a judgment result.
10. A virtual positioning detection apparatus, the apparatus comprising:
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 judgment result.
11. An electronic device, comprising: processor, memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the virtual positioning detection method according to any of claims 1 to 8.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the virtual positioning detection method according to any one of claims 1 to 8.
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 true CN114189550A (en) | 2022-03-15 |
| CN114189550B 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) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115426350A (en) * | 2022-09-23 | 2022-12-02 | 北京有竹居网络技术有限公司 | Image uploading method, image uploading device, electronic equipment and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030115584A1 (en) * | 2001-12-13 | 2003-06-19 | Brian Fahs | Method and system to instrument virtual function calls |
| US20120297368A1 (en) * | 2011-05-20 | 2012-11-22 | International Business Machines Corporation | Fake Check-In Entries Posted on Behalf of Social Network Users |
| 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 |
-
2021
- 2021-11-30 CN CN202111453082.1A patent/CN114189550B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030115584A1 (en) * | 2001-12-13 | 2003-06-19 | Brian Fahs | Method and system to instrument virtual function calls |
| US20120297368A1 (en) * | 2011-05-20 | 2012-11-22 | International Business Machines Corporation | Fake Check-In Entries Posted on Behalf of Social Network Users |
| 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+发展突破在即", 单片机与嵌入式系统应用, no. 10 * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115426350A (en) * | 2022-09-23 | 2022-12-02 | 北京有竹居网络技术有限公司 | Image uploading method, image uploading device, electronic equipment and storage medium |
| CN115426350B (en) * | 2022-09-23 | 2025-02-18 | 北京有竹居网络技术有限公司 | Image uploading method, image uploading device, electronic equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114189550B (en) | 2024-04-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100823122B1 (en) | Remote management and access of databases, services and devices related to mobile terminals | |
| CN109219036B (en) | Method and device for unbinding device, and electronic device | |
| CN104270404B (en) | A kind of login method and device based on terminal iidentification | |
| KR20060136437A (en) | Remote management and access of databases, services and devices associated with a mobile terminal | |
| US20160241589A1 (en) | Method and apparatus for identifying malicious website | |
| CN105656948A (en) | Account login method and device | |
| CN105553963B (en) | The control method and device of positioning service | |
| CN105869230A (en) | Video data management method and device, terminal and server | |
| CN106375096B (en) | short message verification method and device | |
| JP2019533915A (en) | Incoming call management method and apparatus | |
| CN106156611A (en) | The dynamic analysing method of smart mobile phone application program and system | |
| JP2020509622A (en) | Wireless network type detection method and apparatus and electronic device | |
| US10516690B2 (en) | Physical device detection for a mobile application | |
| CN103870551B (en) | The method and apparatus that a kind of cross-domain data obtains | |
| CN106454800A (en) | Identity verification method, device and system | |
| CN109814942A (en) | A kind of parameter processing method and device | |
| WO2019047708A1 (en) | Resource configuration method and related product | |
| CN106060027B (en) | Method, apparatus, equipment and the system verified based on identifying code | |
| CN107508746B (en) | Good friend's adding method, device and electronic equipment | |
| CN112019558A (en) | Universal baffle testing method, device, equipment and computer storage medium | |
| CN114189550B (en) | Virtual positioning detection method and device, electronic equipment and 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 | |
| CN111526129B (en) | Information reporting method and device | |
| CN113242301A (en) | Method and device for selecting real server, computer equipment and storage medium |
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 |