CN111107538A - International Mobile Subscriber Identity (IMSI) code acquisition method and device and computer equipment - Google Patents

International Mobile Subscriber Identity (IMSI) code acquisition method and device and computer equipment Download PDF

Info

Publication number
CN111107538A
CN111107538A CN201811252900.XA CN201811252900A CN111107538A CN 111107538 A CN111107538 A CN 111107538A CN 201811252900 A CN201811252900 A CN 201811252900A CN 111107538 A CN111107538 A CN 111107538A
Authority
CN
China
Prior art keywords
terminal
mobile subscriber
international mobile
network
subscriber identity
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
Application number
CN201811252900.XA
Other languages
Chinese (zh)
Other versions
CN111107538B (en
Inventor
杨方维
黄训涛
陈鑫
李卓奇
章武
张颖
马幸晖
王家宾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi Shilian Technology Co ltd
Original Assignee
21cn Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 21cn Corp Ltd filed Critical 21cn Corp Ltd
Priority to CN201811252900.XA priority Critical patent/CN111107538B/en
Publication of CN111107538A publication Critical patent/CN111107538A/en
Application granted granted Critical
Publication of CN111107538B publication Critical patent/CN111107538B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a method and a device for acquiring an international mobile subscriber identity, computer equipment and a storage medium. The method comprises the following steps: acquiring a terminal access request sent by a gateway; the terminal access request is generated by inserting an international mobile subscriber identity corresponding to the terminal into an identity acquisition request sent by the gateway to the terminal; extracting an international mobile subscriber identity and a network identifier from the terminal access request; verifying the extracted network identification through the access authority verification list; and when the access authority verification list passes the verification of the extracted network identification, sending the extracted international mobile subscriber identity to the terminal. The international mobile subscriber identity is extracted from the terminal access request and sent to the terminal, so that the efficiency of obtaining the international mobile subscriber identity is improved.

Description

International Mobile Subscriber Identity (IMSI) code acquisition method and device and computer equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for obtaining an international mobile subscriber identity, a computer device, and a storage medium.
Background
With the development of communication technology, it is necessary to frequently acquire the International Mobile Subscriber Identity (IMSI) of the Mobile phone. The imsi is a mark for distinguishing a mobile Subscriber, and is stored in a SIM (Subscriber identity Module) card and used for distinguishing a mobile Subscriber.
However, the conventional technology for acquiring the international mobile subscriber identity requires the Development of a Software Development Kit (SDK), and cannot acquire the international mobile subscriber identity directly from the terminal. When the software tool development kit is used for acquiring the international mobile subscriber identity, the development process is more limited, and the efficiency of acquiring the international mobile subscriber identity is lower.
Disclosure of Invention
In view of the above, it is desirable to provide an international mobile subscriber identity method, an international mobile subscriber identity apparatus, a computer device and a storage medium, which can improve the efficiency of obtaining an international mobile subscriber identity.
A method for obtaining an International Mobile Subscriber Identity (IMSI), the method comprising:
acquiring a terminal access request sent by a gateway; the terminal access request is generated by inserting an international mobile subscriber identity corresponding to the terminal into an identity acquisition request sent by the gateway to the terminal;
extracting an international mobile subscriber identity and a network identifier from the terminal access request;
verifying the extracted network identification through the access authority verification list;
and when the access authority verification list passes the verification of the extracted network identification, sending the extracted international mobile subscriber identity to the terminal.
An international mobile subscriber identity acquisition apparatus, comprising:
the request acquisition module is used for acquiring a terminal access request sent by the gateway; the terminal access request is generated by inserting an international mobile subscriber identity corresponding to the terminal into an identity acquisition request sent by the gateway to the terminal;
the request extraction module is used for extracting the international mobile subscriber identity and the network identification from the terminal access request;
the identification verification module is used for verifying the extracted network identification through the access authority verification list;
and the identification code sending module is used for sending the extracted international mobile subscriber identification code to the terminal when the access authority verification list passes the verification of the extracted network identification.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring a terminal access request sent by a gateway; the terminal access request is generated by inserting an international mobile subscriber identity corresponding to the terminal into an identity acquisition request sent by the gateway to the terminal;
extracting an international mobile subscriber identity and a network identifier from the terminal access request;
verifying the extracted network identification through the access authority verification list;
and when the access authority verification list passes the verification of the extracted network identification, sending the extracted international mobile subscriber identity to the terminal.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a terminal access request sent by a gateway; the terminal access request is generated by inserting an international mobile subscriber identity corresponding to the terminal into an identity acquisition request sent by the gateway to the terminal;
extracting an international mobile subscriber identity and a network identifier from the terminal access request;
verifying the extracted network identification through the access authority verification list;
and when the access authority verification list passes the verification of the extracted network identification, sending the extracted international mobile subscriber identity to the terminal.
According to the method, the device and the computer equipment for acquiring the international mobile subscriber identity, the terminal access request sent by the gateway is acquired, the international mobile subscriber identity and the network identification are extracted from the terminal access request, the extracted network identification is verified through the access authority verification list, and when the access authority verification list passes the verification of the extracted network identification, the extracted international mobile subscriber identity is sent to the terminal. The international mobile subscriber identity is inserted by the gateway, and the international mobile subscriber identity is extracted from the terminal access request and sent to the terminal, so that the efficiency of obtaining the international mobile subscriber identity is improved.
Drawings
FIG. 1 is a diagram of an exemplary implementation of a method for obtaining an IMSI code;
FIG. 2 is a flowchart illustrating a method for obtaining an IMSI in an embodiment;
FIG. 3 is a flowchart illustrating steps for obtaining a network identifier in one embodiment;
FIG. 4 is a flowchart illustrating steps for obtaining an IMSI in one embodiment;
FIG. 5 is a flowchart illustrating steps for generating an access request of a terminal according to an embodiment;
FIG. 6 is a flowchart illustrating steps for sending a network switch notification in one embodiment;
FIG. 7 is a block diagram of an apparatus for obtaining IMSI in one embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The international mobile subscriber identity obtaining method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the gateway 104 via a network, and the gateway 104 communicates with the server 106 via the network. The terminal 102 may be, but is not limited to, a smart phone and a tablet computer, the gateway 104 is a device for implementing network interconnection, and the server 106 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, an international mobile subscriber identity obtaining method is provided, which is described by taking the method as an example applied to the server 106 in fig. 1, and includes the following steps:
step 202, acquiring a terminal access request sent by a gateway; the terminal access request is generated by inserting the international mobile subscriber identity corresponding to the terminal into an identity acquisition request sent by the gateway to the terminal.
The terminal access request is generated by inserting an international mobile subscriber identity corresponding to the terminal into an identity acquisition request after the gateway receives the identity acquisition request sent by the terminal. The identification code acquisition request is a request for access to the server transmitted by the terminal.
Specifically, the terminal generates an identification code acquisition request, and sends the identification code acquisition request to the server through the operator network. When the identification code acquisition request passes through the gateway, the gateway inserts the international mobile subscriber identification code corresponding to the terminal into the identification code acquisition request to generate a terminal access request. The gateway sends the terminal access request to the server, and the server receives the terminal access request sent by the gateway.
In one embodiment, when the terminal detects that the user uses the third-party application or accesses the third-party link, the terminal triggers an interface calling instruction, and obtains the international mobile subscriber identity to acquire interface information according to the interface calling instruction. The terminal generates an identification code acquisition request according to the international mobile subscriber identification code acquisition interface information, and sends the identification code acquisition request to the gateway through the operator network.
For example, when the terminal detects that the user uses the third-party application, the terminal triggers an interface call instruction, and obtains the international mobile subscriber identity acquisition interface information according to the interface call instruction, where the international mobile subscriber identity acquisition interface may be at least one of an http interface and an https interface. HTTP (HyperText Transfer Protocol) is a network Protocol most widely used on the internet, and HTTPs (HyperText Transfer Protocol over secure Socket layer) is an HTTP channel aiming at security and is a security version of HTTP. The terminal generates an identification code acquisition request according to the international mobile subscriber identification code acquisition interface information, and sends the identification code acquisition request to the gateway through the 4G network of the operator A.
Step 204, the international mobile subscriber identity and the network identification are extracted from the terminal access request.
Specifically, after the server acquires the terminal access request, the server analyzes the terminal access request to obtain an international mobile subscriber identity cipher text, a gateway network address and a terminal network address. The server decrypts the international mobile subscriber identity cipher text to obtain the international mobile subscriber identity, and determines the network identifier according to the gateway network address and the terminal network address.
And step 206, verifying the extracted network identification through the access right verification list.
Wherein the access right verification list is a list storing network identifications that can access the server.
Specifically, after the server acquires the network identifier, the server reads the access authority verification list, and verifies the extracted network identifier through the access authority verification list. The server inquires the extracted network identification in the access authority verification list, if the network identification is inquired, the server confirms that the terminal access request is from a gateway of a specified operator, and determines that the international mobile subscriber identification code extracted from the terminal access request is valid; if the network identification is not inquired, the server determines that the international mobile subscriber identity extracted from the terminal access request is invalid.
For example, the server is a server of an operator a, when the server queries a network identifier in the access authority list, it is determined that the terminal access request is from a gateway of the operator a, and it is determined that the international mobile subscriber identity extracted from the terminal access request is valid; when the server does not inquire the network identification, the terminal access request is confirmed not to come from the gateway of the operator A, and the international mobile subscriber identity extracted from the terminal access request is determined to be invalid.
And step 208, when the access authority verification list passes the verification of the extracted network identification, sending the extracted international mobile subscriber identity to the terminal.
Specifically, when the server queries the network identifier in the access right verification list, the network identifier is verified to be passed, the server acquires the extracted international mobile subscriber identity, and returns the international mobile subscriber identity to the terminal.
In one embodiment, the server resolves the international mobile subscriber identity into a JSON string and then sends the JSON string representing the international mobile subscriber identity to the terminal. And after receiving the international mobile subscriber identity sent by the server, the terminal sends the received international mobile subscriber identity to the third-party server.
In the embodiment, the international mobile subscriber identity and the network identifier are extracted from the terminal access request by acquiring the terminal access request sent by the gateway, the extracted network identifier is verified through the access authority verification list, and when the access authority verification list passes the verification of the extracted network identifier, the extracted international mobile subscriber identity is sent to the terminal. The international mobile subscriber identity is inserted by the gateway, and the international mobile subscriber identity is extracted from the terminal access request and sent to the terminal, so that the efficiency of obtaining the international mobile subscriber identity is improved.
As shown in fig. 3, in an embodiment, step 204 further includes a step of obtaining a network identifier, where the step includes the following steps:
step 302, extracting the international mobile subscriber identity, the gateway network address and the terminal network address in the terminal access request.
The gateway network address is a logical address of the gateway in the network, and the terminal network address is a logical address of the terminal in the network. The gateway network Address and the terminal network Address may be IP addresses (internet protocol addresses) of the gateway and the terminal.
Specifically, after the server acquires the terminal access request, the server analyzes the terminal access request to obtain an international mobile subscriber identity, a gateway network address and a terminal network address in the terminal access request.
In step 304, the same portion of the gateway network address and the terminal network address is determined.
Specifically, the server reads each segment of the gateway network address and the terminal network address, performs comparative analysis, and takes the same segment of the gateway network address and the terminal network address as the same part.
And step 306, obtaining the network identification according to the determined identical part.
The network identifier is the unique identifier of the network to which the terminal and the gateway belong.
Specifically, after determining the same parts of the gateway network address and the terminal network address, the server obtains the network identifier from the determined same parts according to the specified format of the network identifier.
For example, the extracted gateway network address is 169.254.8.128, the extracted terminal network address is 169.254.8.1, the same part of the gateway network address and the terminal network address is 169.254.8, the network identifier is composed of 32-bit binary digits, and the network identifier is 169.254.8.0 from the determined same part.
In the embodiment, the international mobile subscriber identity, the gateway network address and the terminal network address in the terminal access request are extracted, the same parts in the gateway network address and the terminal network address are determined, the network identification is obtained according to the same parts, and the accuracy of obtaining the network identification is improved.
As shown in fig. 4, in an embodiment, the step 302 further includes a step of obtaining an international mobile subscriber identity, where the step includes the following steps:
step 402, analyzing the terminal access request to obtain an identification code ciphertext, a gateway network address and a terminal network address.
The identification code ciphertext is a ciphertext obtained by encrypting the international mobile subscriber identification code by the gateway.
Specifically, after receiving the terminal access request, the server triggers an analysis instruction, and analyzes the terminal access request according to the analysis instruction to obtain an identification code ciphertext, a gateway network address and a terminal network address in the terminal access request.
Step 404, a decryption key corresponding to the identification code ciphertext is queried.
Specifically, the server analyzes the terminal access request to obtain an identification code ciphertext, then queries a pre-stored decryption key for decrypting the identification code ciphertext from the database, and extracts the queried decryption key.
In one embodiment, after the server analyzes the terminal access request to obtain the identification code ciphertext, the server extracts the ciphertext identifier of the identification code ciphertext, queries the extracted ciphertext identifier in a decryption key list, and extracts a decryption key corresponding to the ciphertext identifier.
And 406, decrypting the identification code ciphertext according to the inquired decryption key to obtain the international mobile subscriber identification code.
Specifically, after the server queries the decryption key corresponding to the identification code ciphertext, the identification code ciphertext is decrypted through the decryption key, and the international mobile subscriber identification code is obtained.
In the embodiment, the terminal access request is analyzed to obtain the identification code ciphertext, the decryption key corresponding to the identification code ciphertext is inquired, the identification code ciphertext is decrypted according to the inquired decryption key to obtain the international mobile subscriber identity, and the security for obtaining the international mobile subscriber identity is improved.
As shown in fig. 5, in an embodiment, the step of generating the terminal access request specifically includes the following steps:
step 502, receiving an identification code acquisition request sent by a terminal.
Specifically, the terminal sends an identification code acquisition request to the gateway through the operator network, and the gateway receives the identification code acquisition request sent by the terminal.
Step 504, the terminal identifier in the identification code acquisition request is extracted.
Specifically, the gateway analyzes the identification code acquisition request to obtain identification code acquisition request information, and extracts the terminal identifier from the identification code acquisition request information. The terminal identification may be at least one of a physical address and a telephone number of the terminal.
In step 506, the international mobile subscriber identity corresponding to the extracted terminal identifier is queried in the registration information list.
The registration information list is a list storing international mobile subscriber identities corresponding to the terminal identities.
Specifically, after extracting the terminal identifier from the identifier acquisition request, the gateway reads the registration information list, queries the extracted terminal identifier in the registration information list, and extracts the international mobile subscriber identifier corresponding to the queried terminal identifier.
And step 508, encrypting the international mobile subscriber identity to obtain an identity ciphertext.
Specifically, after extracting the international mobile subscriber identity, the gateway acquires a pre-stored encryption key, and encrypts the international mobile subscriber identity according to the encryption key to obtain an identity ciphertext.
In one embodiment, the gateway extracts the identifier after querying the international mobile subscriber identifier in the registration information list, queries the extracted identifier in the encryption key list, and extracts the encryption key corresponding to the identifier. And the gateway encrypts the international mobile subscriber identity according to the extracted encryption key to obtain an identity ciphertext.
And 510, inserting the identification code ciphertext into the identification code acquisition request to generate a terminal access request.
Specifically, after obtaining the identification code ciphertext, the gateway inserts the identification code ciphertext into the identification code acquisition request, generates a terminal access request, and sends the generated terminal access request to the server. For example, the gateway sends a terminal access request to a server of the operator a through the network.
In one embodiment, the gateway acquires the request information according to the identification code ciphertext and the identification code, generates a terminal access request packet, and sends the terminal access request packet to the server.
In this embodiment, the gateway receives an identifier acquisition request sent by the terminal, extracts a terminal identifier in the identifier acquisition request, queries an international mobile subscriber identifier corresponding to the extracted terminal identifier in a registration information list, encrypts the international mobile subscriber identifier to obtain an identifier ciphertext, inserts the identifier ciphertext into the identifier acquisition request, and generates a terminal access request. By encrypting the international mobile subscriber identity, the security of transmitting the international mobile subscriber identity in the terminal access request is improved.
As shown in fig. 6, in an embodiment, after step 206, a step of sending a network handover notification is further included, where the step specifically includes the following steps:
step 602, when the access right verification list fails to verify the extracted network identifier, determining an operator identifier corresponding to the network identifier.
Specifically, when the server does not inquire the network identifier in the access right verification list, the network identifier is not verified by the access right verification list. And the server reads the network identification list, inquires the network identification extracted from the terminal access request in the network identification list, and extracts the operator identification corresponding to the inquired network identification. The network identifier list is a list storing each operator identifier and a network identifier corresponding to each operator identifier.
Step 604, generating a network switching notification according to the determined operator identifier.
The network switching notification is notification information for reminding the terminal to switch the operator network.
Specifically, after determining the operator identifier corresponding to the network identifier, the server generates a network switching notification according to the operator identifier, so as to remind a user of the terminal to switch the network of the terminal to the network of the specified operator.
For example, after determining that the operator identifier corresponding to the network identifier is the operator B, the server generates a network switching notification, where the network switching notification is used to remind a user of the terminal to switch the operator network from the operator B to the operator a.
Step 606, the network switching notification is sent to the terminal.
Specifically, after generating the network switching notification, the server sends the network switching notification to the terminal corresponding to the terminal network address, so that the terminal switches the operator network according to the operator identifier in the network switching notification.
In this embodiment, when the access right verification list fails to verify the extracted network identifier, the operator identifier corresponding to the network identifier is determined, a network switching notification is generated according to the determined operator identifier, and the network switching notification is sent to the terminal, so that the terminal sends an identifier acquisition request again after switching the operator network, and the efficiency of the terminal acquiring the international mobile subscriber identifier is improved.
In one embodiment, as shown in fig. 7, there is provided an international mobile subscriber identity acquisition apparatus 700, including: a request obtaining module 702, a request extracting module 704, an identification verifying module 706 and an identification code sending module 708, wherein:
a request obtaining module 702, configured to obtain a terminal access request sent by a gateway; the terminal access request is generated by inserting the international mobile subscriber identity corresponding to the terminal into an identity acquisition request sent by the gateway to the terminal.
A request extracting module 702, configured to extract the international mobile subscriber identity and the network identifier from the terminal access request.
And an identifier verification module 706, configured to verify the extracted network identifier through the access right verification list.
An identifier sending module 708, configured to send the extracted international mobile subscriber identifier to the terminal when the access permission verification list passes verification of the extracted network identifier.
In the embodiment, the international mobile subscriber identity and the network identifier are extracted from the terminal access request by acquiring the terminal access request sent by the gateway, the extracted network identifier is verified through the access authority verification list, and when the access authority verification list passes the verification of the extracted network identifier, the extracted international mobile subscriber identity is sent to the terminal. The international mobile subscriber identity is inserted by the gateway, and the international mobile subscriber identity is extracted from the terminal access request and sent to the terminal, so that the efficiency of obtaining the international mobile subscriber identity is improved.
In one embodiment, the request extraction module 704 further includes: the device comprises an extraction module, an identity determination module and an identification determination module, wherein:
an extraction module: the method is used for extracting the international mobile subscriber identity, the gateway network address and the terminal network address in the terminal access request.
And the same determining module is used for determining the same part in the gateway network address and the terminal network address.
And the identification determining module is used for obtaining the network identification according to the determined same part.
In the embodiment, the international mobile subscriber identity, the gateway network address and the terminal network address in the terminal access request are extracted, the same parts in the gateway network address and the terminal network address are determined, the network identification is obtained according to the same parts, and the accuracy of obtaining the network identification is improved.
In one embodiment, the extraction module further comprises: request analysis module, secret key inquiry module and ciphertext decryption module, wherein:
and the request analysis module is used for analyzing the terminal access request to obtain an identification code ciphertext, a gateway network address and a terminal network address.
And the key inquiry module is used for inquiring the decryption key corresponding to the identification code ciphertext.
And the ciphertext decryption module is used for decrypting the identification code ciphertext according to the inquired decryption key to obtain the international mobile subscriber identification code.
In the embodiment, the terminal access request is analyzed to obtain the identification code ciphertext, the decryption key corresponding to the identification code ciphertext is inquired, the identification code ciphertext is decrypted according to the inquired decryption key to obtain the international mobile subscriber identity, and the security for obtaining the international mobile subscriber identity is improved.
In one embodiment, the international mobile subscriber identity obtaining apparatus 700 further includes a request generating module, where the request generating module is further configured to receive an identity obtaining request sent by the terminal; extracting the identification code to obtain the terminal identification in the request; inquiring the international mobile subscriber identity corresponding to the extracted terminal identification in the registration information list; encrypting the international mobile subscriber identity to obtain an identity ciphertext; and inserting the identification code ciphertext into the identification code acquisition request to generate a terminal access request.
In this embodiment, the gateway receives an identifier acquisition request sent by the terminal, extracts a terminal identifier in the identifier acquisition request, queries an international mobile subscriber identifier corresponding to the extracted terminal identifier in a registration information list, encrypts the international mobile subscriber identifier to obtain an identifier ciphertext, inserts the identifier ciphertext into the identifier acquisition request, and generates a terminal access request. By encrypting the international mobile subscriber identity, the security of transmitting the international mobile subscriber identity in the terminal access request is improved.
In one embodiment, the imsi acquisition apparatus 700 further includes: the device comprises a determining module, a notification generating module and a notification sending module, wherein:
and the determining module is used for determining the operator identifier corresponding to the network identifier when the access right verification list fails to verify the extracted network identifier.
And the notification generation module is used for generating a network switching notification according to the determined operator identifier.
And the notification sending module is used for sending the network switching notification to the terminal.
In this embodiment, when the access right verification list fails to verify the extracted network identifier, the operator identifier corresponding to the network identifier is determined, a network switching notification is generated according to the determined operator identifier, and the network switching notification is sent to the terminal, so that the terminal sends an identifier acquisition request again after switching the operator network, and the efficiency of the terminal acquiring the international mobile subscriber identifier is improved.
For specific limitations of the international mobile subscriber identity acquiring apparatus, reference may be made to the above limitations of the international mobile subscriber identity acquiring method, which are not described herein again. All or part of the modules in the international mobile subscriber identity acquisition device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data for obtaining the international mobile subscriber identity. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an international mobile subscriber identity acquisition method.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring a terminal access request sent by a gateway; the terminal access request is generated by an identification code acquisition request sent by a gateway to a terminal and an international mobile subscriber identification code corresponding to the terminal; extracting an international mobile subscriber identity and a network identifier from a terminal access request; verifying the extracted network identification through the access authority verification list; and when the access authority verification list passes the verification of the extracted network identification, sending the extracted international mobile subscriber identification code to the terminal.
In one embodiment, extracting the international mobile subscriber identity and the network identity from the terminal access request comprises: extracting an international mobile subscriber identification code, a gateway network address and a terminal network address in a terminal access request; determining the same part in the gateway network address and the terminal network address; and obtaining the network identification according to the determined identical part.
In one embodiment, extracting the international mobile subscriber identity, the gateway network address and the terminal network address in the terminal access request comprises: analyzing the terminal access request to obtain an identification code ciphertext, a gateway network address and a terminal network address; inquiring a decryption key corresponding to the identification code ciphertext; and decrypting the identification code ciphertext according to the inquired decryption key to obtain the international mobile subscriber identification code.
In one embodiment, the generating of the terminal access request comprises: receiving an identification code acquisition request sent by a terminal; extracting the identification code to obtain the terminal identification in the request; inquiring the international mobile subscriber identity corresponding to the extracted terminal identification in the registration information list; encrypting the international mobile subscriber identity to obtain an identity ciphertext; and inserting the identification code ciphertext into the identification code acquisition request to generate a terminal access request.
In one embodiment, after verifying the extracted network identifier by the access right verification list, the processor executes the computer program to further perform the following steps: when the access authority verification list fails to verify the extracted network identifier, determining an operator identifier corresponding to the network identifier; generating a network switching notification according to the determined operator identifier; and sending the network switching notice to the terminal.
In the embodiment, the international mobile subscriber identity and the network identifier are extracted from the terminal access request by acquiring the terminal access request sent by the gateway, the extracted network identifier is verified through the access authority verification list, and when the access authority verification list passes the verification of the extracted network identifier, the extracted international mobile subscriber identity is sent to the terminal. The international mobile subscriber identity is inserted by the gateway, and the international mobile subscriber identity is extracted from the terminal access request and sent to the terminal, so that the efficiency of obtaining the international mobile subscriber identity is improved.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring a terminal access request sent by a gateway; the terminal access request is generated by an identification code acquisition request sent by a gateway to a terminal and an international mobile subscriber identification code corresponding to the terminal; extracting an international mobile subscriber identity and a network identifier from a terminal access request; verifying the extracted network identification through the access authority verification list; and when the access authority verification list passes the verification of the extracted network identification, sending the extracted international mobile subscriber identification code to the terminal.
In one embodiment, extracting the international mobile subscriber identity and the network identity from the terminal access request comprises: extracting an international mobile subscriber identification code, a gateway network address and a terminal network address in a terminal access request; determining the same part in the gateway network address and the terminal network address; and obtaining the network identification according to the determined identical part.
In one embodiment, extracting the international mobile subscriber identity, the gateway network address and the terminal network address in the terminal access request comprises: analyzing the terminal access request to obtain an identification code ciphertext, a gateway network address and a terminal network address; inquiring a decryption key corresponding to the identification code ciphertext; and decrypting the identification code ciphertext according to the inquired decryption key to obtain the international mobile subscriber identification code.
In one embodiment, the generating of the terminal access request comprises: receiving an identification code acquisition request sent by a terminal; extracting the identification code to obtain the terminal identification in the request; inquiring the international mobile subscriber identity corresponding to the extracted terminal identification in the registration information list; encrypting the international mobile subscriber identity to obtain an identity ciphertext; and inserting the identification code ciphertext into the identification code acquisition request to generate a terminal access request.
In one embodiment, after verifying the extracted network identification by the access right verification list, the computer program when executed by the processor further performs the steps of: when the access authority verification list fails to verify the extracted network identifier, determining an operator identifier corresponding to the network identifier; generating a network switching notification according to the determined operator identifier; and sending the network switching notice to the terminal.
In the embodiment, the international mobile subscriber identity and the network identifier are extracted from the terminal access request by acquiring the terminal access request sent by the gateway, the extracted network identifier is verified through the access authority verification list, and when the access authority verification list passes the verification of the extracted network identifier, the extracted international mobile subscriber identity is sent to the terminal. The international mobile subscriber identity is inserted by the gateway, and the international mobile subscriber identity is extracted from the terminal access request and sent to the terminal, so that the efficiency of obtaining the international mobile subscriber identity is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for obtaining an International Mobile Subscriber Identity (IMSI), the method comprising:
acquiring a terminal access request sent by a gateway; the terminal access request is generated by inserting an international mobile subscriber identity corresponding to the terminal into an identity acquisition request sent by the gateway to the terminal;
extracting an international mobile subscriber identity and a network identifier from the terminal access request;
verifying the extracted network identification through the access authority verification list;
and when the access authority verification list passes the verification of the extracted network identification, sending the extracted international mobile subscriber identity to the terminal.
2. The method of claim 1, wherein extracting the international mobile subscriber identity and the network identity from the terminal access request comprises:
extracting an international mobile subscriber identification code, a gateway network address and a terminal network address in the terminal access request;
determining the same part of the gateway network address and the terminal network address;
and obtaining the network identification according to the determined identical part.
3. The method of claim 2, wherein extracting the international mobile subscriber identity, the gateway network address and the terminal network address from the terminal access request comprises:
analyzing the terminal access request to obtain an identification code ciphertext, a gateway network address and a terminal network address;
inquiring a decryption key corresponding to the identification code ciphertext;
and decrypting the identification code ciphertext according to the inquired decryption key to obtain the international mobile subscriber identification code.
4. The method according to claim 3, wherein the generating of the terminal access request comprises:
receiving an identification code acquisition request sent by a terminal;
extracting the terminal identification in the identification code acquisition request;
inquiring an international mobile subscriber identity corresponding to the extracted terminal identification in a registration information list;
encrypting the international mobile subscriber identity to obtain an identity ciphertext;
and inserting the identification code ciphertext into the identification code acquisition request to generate a terminal access request.
5. The method of claim 1, wherein after verifying the extracted network identifier by the access right verification list, further comprising:
when the access authority verification list fails to verify the extracted network identifier, determining an operator identifier corresponding to the network identifier;
generating a network switching notification according to the determined operator identifier;
and sending the network switching notification to the terminal.
6. An international mobile subscriber identity acquisition apparatus, comprising:
the request acquisition module is used for acquiring a terminal access request sent by the gateway; the terminal access request is generated by inserting an international mobile subscriber identity corresponding to the terminal into an identity acquisition request sent by the gateway to the terminal;
the request extraction module is used for extracting the international mobile subscriber identity and the network identification from the terminal access request;
the identification verification module is used for verifying the extracted network identification through the access authority verification list;
and the identification code sending module is used for sending the extracted international mobile subscriber identification code to the terminal when the access authority verification list passes the verification of the extracted network identification.
7. The apparatus of claim 6, wherein the request extraction module comprises:
the extraction module is used for extracting the international mobile subscriber identification code, the gateway network address and the terminal network address in the terminal access request;
the same determining module is used for determining the same part in the gateway network address and the terminal network address;
and the identification determining module is used for obtaining the network identification according to the determined same part.
8. The apparatus of claim 7, wherein the extraction module comprises:
the request analysis module is used for analyzing the terminal access request to obtain an identification code ciphertext, a gateway network address and a terminal network address;
the key inquiry module is used for inquiring a decryption key corresponding to the identification code ciphertext;
and the ciphertext decryption module is used for decrypting the identification code ciphertext according to the inquired decryption key to obtain the international mobile subscriber identification code.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 5 are implemented when the computer program is executed by the processor.
10. 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 method of any one of claims 1 to 5.
CN201811252900.XA 2018-10-25 2018-10-25 International Mobile Subscriber Identity (IMSI) acquisition method and device and computer equipment Active CN111107538B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811252900.XA CN111107538B (en) 2018-10-25 2018-10-25 International Mobile Subscriber Identity (IMSI) acquisition method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811252900.XA CN111107538B (en) 2018-10-25 2018-10-25 International Mobile Subscriber Identity (IMSI) acquisition method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN111107538A true CN111107538A (en) 2020-05-05
CN111107538B CN111107538B (en) 2022-08-19

Family

ID=70418725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811252900.XA Active CN111107538B (en) 2018-10-25 2018-10-25 International Mobile Subscriber Identity (IMSI) acquisition method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN111107538B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102695167A (en) * 2012-05-18 2012-09-26 中国联合网络通信集团有限公司 Mobile subscriber identity management method and apparatus thereof
CN105306612A (en) * 2014-07-15 2016-02-03 中兴通讯股份有限公司 Method for acquiring identifier of terminal in network and management network element
CN106789834A (en) * 2015-11-20 2017-05-31 中国电信股份有限公司 Method, gateway, PCRF network elements and system for identifying user identity

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102695167A (en) * 2012-05-18 2012-09-26 中国联合网络通信集团有限公司 Mobile subscriber identity management method and apparatus thereof
CN105306612A (en) * 2014-07-15 2016-02-03 中兴通讯股份有限公司 Method for acquiring identifier of terminal in network and management network element
CN106789834A (en) * 2015-11-20 2017-05-31 中国电信股份有限公司 Method, gateway, PCRF network elements and system for identifying user identity

Also Published As

Publication number Publication date
CN111107538B (en) 2022-08-19

Similar Documents

Publication Publication Date Title
US11601809B2 (en) Method and system for updating certificate issuer public key, and related device
CN109756343B (en) Authentication method and device for digital signature, computer equipment and storage medium
CN108173662B (en) Equipment authentication method and device
CN107801165B (en) Business short message pushing method and device, computer equipment and storage medium
CN108259502B (en) Authentication method for obtaining interface access authority, server and storage medium
EP2852118B1 (en) Method for an enhanced authentication and/or an enhanced identification of a secure element located in a communication device, especially a user equipment
CN111031047B (en) Device communication method, device, computer device and storage medium
CN111107073B (en) Application automatic login method and device, computer equipment and storage medium
US11528604B2 (en) Method for transmitting to a physical or virtual element of a telecommunications network an encrypted subscription identifier stored in a security element, corresponding security element, physical or virtual element and terminal cooperating with this security element
CN110266656B (en) Secret-free authentication identity identification method and device and computer equipment
JP2018527842A5 (en)
CN109391618B (en) Method and system for establishing communication link
CN111512608A (en) Trusted execution environment based authentication protocol
US11271922B2 (en) Method for authenticating a user and corresponding device, first and second servers and system
CN112291064A (en) Authentication system, registration and authentication method, device, storage medium and electronic equipment
CN104796255A (en) A safety certification method, device and system for a client end
US11139962B2 (en) Method, chip, device and system for authenticating a set of at least two users
CN109451504B (en) Internet of things module authentication method and system
CN105828324A (en) Method and device of obtaining virtual subscriber identity
CN110225511B (en) Method, device and system for acquiring IMEI number of terminal and computer equipment
CN111107538B (en) International Mobile Subscriber Identity (IMSI) acquisition method and device and computer equipment
CN112640360B (en) Device and method for mediating setting of authentication information
CN114338132B (en) Secret-free login method, client application, operator server and electronic equipment
EA032424B1 (en) Method and system for determining that a sim and a sip client are co-located in the same mobile equipment
EP2961208A1 (en) Method for accessing a service and corresponding application server, device and system

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
TA01 Transfer of patent application right

Effective date of registration: 20220119

Address after: Room 1423, No. 1256 and 1258, Wanrong Road, Jing'an District, Shanghai 200040

Applicant after: Tianyi Digital Life Technology Co.,Ltd.

Address before: 1 / F and 2 / F, East Garden, Huatian International Plaza, 211 Longkou Middle Road, Tianhe District, Guangzhou, Guangdong 510630

Applicant before: Century Dragon Information Network Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240318

Address after: Unit 1, Building 1, China Telecom Zhejiang Innovation Park, No. 8 Xiqin Street, Wuchang Street, Yuhang District, Hangzhou City, Zhejiang Province, 311100

Patentee after: Tianyi Shilian Technology Co.,Ltd.

Country or region after: China

Address before: Room 1423, No. 1256 and 1258, Wanrong Road, Jing'an District, Shanghai 200040

Patentee before: Tianyi Digital Life Technology Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right