A method for fixing payment program bills

Use the Fiddler debugging agent software to extract the cookies and data packets of the payment program bill on the terminal, parse and store the json format data returned by the payment server, solve the problem of complex viewing of the payment program bill and difficulty in downloading, and achieve efficient extraction and review of the bill. .

CN112085487BActive Publication Date: 2024-08-23NANJING FIBERHOME COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011021118.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-25
Publication Date
2024-08-23
Estimated Expiration
2040-09-25

AI Technical Summary

Technical Problem

Payment program bills are complex to view and difficult to download, especially the process of retrieving multi-year bills is cumbersome and inconvenient.

Method used

By installing Fiddler to debug the agent's terminal, use the agent networking method to extract the cookies and data packets of the payment program login account, construct a request and parse the json format bill data returned by the payment server, and store it in the database to achieve efficient bill extraction.

Benefits of technology

It improves the efficiency of checking bills in the payment program, simplifies the extraction process of multi-year bills, overcomes the problems of complex bill viewing and difficult downloading, and significantly improves the efficiency of bill fixing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112085487B
    Figure CN112085487B
Patent Text Reader

Abstract

The present invention relates to a payment program bill fixing method. Based on debugging agent software, a Cookies extraction method in an agent mode is designed. A terminal installed with a Fiddler debugging agent communicates with a payment server in sequence through Cookies extraction and data packet construction for a target account logged in by a payment program installed on a mobile terminal, obtains JSON-formatted bill data returned by the payment server, and adds data parsing and cleaning operations to improve the efficiency of subsequent bill data inquiry and realize bill extraction of the target account. The entire design method overcomes the problems of complex viewing and difficult downloading of payment program bills, and effectively improves the efficiency of fixing payment program bills.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a payment procedure bill fixing method, belonging to the field of electronic evidence collection. Background Art

[0002] In today's society, mobile payment is becoming more and more popular, and payment app payment is an important part of it. However, as payment bills accumulate day by day, it is very time-consuming and unfriendly to view them by flipping through the interface. The bill download function provided by the payment app is divided into "for personal reconciliation" and "for certification materials". You need to enter an email address to receive bills, but "for personal reconciliation" can only download three months at a time, and "for certification materials" can only extract one year at a time. For bills of many years, you need to extract them multiple times, which is inconvenient. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a payment program bill fixing method, which can overcome the problems of complex viewing and difficult downloading of payment program bills, and can effectively improve the fixing efficiency of payment program bills.

[0004] The invention adopts the following technical solution to solve the above technical problems: the invention designs a payment program bill fixing method, which realizes the bill extraction of the target account for the target account logged in by the payment program installed on the mobile terminal through a terminal installed with Fiddler debugging agent; the method comprises the following steps:

[0005] Step A. Control the mobile terminal to connect to the Internet via the hotspot network of the terminal through the proxy networking method corresponding to the Fiddler debugging proxy on the terminal, and then enter step B;

[0006] Step B. Use the Fiddler debugging proxy on the terminal to find the billing data of the target account logged in by the payment program on the mobile terminal, extract the Cookies of the billing data, and then proceed to Step C;

[0007] Step C. The Fiddler debugging agent on the terminal splices the Cookies data, last_trans_id data, and start_time data of the billing data according to the packet capture format, and sends them to the payment server to obtain the json format billing data returned by the payment server, and then proceed to step D;

[0008] Step D. The terminal parses and cleans the JSON format bill data, stores it in the database, and completes the bill extraction of the target account.

[0009] As a preferred technical solution of the present invention: in step B, based on the login status of the target account corresponding to the payment program on the mobile terminal, open the Fiddler debugging agent on the terminal, and click payment program->Me->Payment->Wallet->Bill in sequence, and search for data with the url userrolllisturl in the Fiddler debugging agent, that is, search for the bill data of the target account logged in by the payment program on the mobile terminal, and extract the Cookies of the bill data.

[0010] As a preferred technical solution of the present invention: the step A includes the following steps A1 to A3;

[0011] Step A1. Set the mobile terminal to connect to the Internet via the terminal's hotspot network and proceed to step A2;

[0012] Step A2. Install the CA certificate corresponding to the Fiddler debugging proxy in the terminal on the mobile terminal and proceed to step A3;

[0013] Step A3. Modify the proxy of the terminal hotspot network to which the mobile terminal is connected according to the IP address of the terminal and the port number of the Fiddler debugging proxy on the terminal.

[0014] As a preferred technical solution of the present invention: the step A2 includes the following steps A2-1 to A2-2;

[0015] Step A2-1. Obtain the IP address of the terminal and configure the port number of the Fiddler debugging proxy on the terminal, and then proceed to step A2-2;

[0016] Step A2-2. The mobile terminal accesses the Fiddler debugging agent on the terminal according to the terminal IP address and the port number of the Fiddler debugging agent, downloads the Fiddler debugging agent CA certificate and installs it.

[0017] As a preferred technical solution of the present invention: in the step A2-1, the IP address of the terminal is obtained by Ipconfig.

[0018] As a preferred technical solution of the present invention: in the step A2-2, the mobile terminal uses a browser to access http: / / IP:port number according to the terminal IP address and the port number of the Fiddler debugging agent to access the Fiddler debugging agent on the terminal.

[0019] As a preferred technical solution of the present invention: the terminal is a computer, and the mobile terminal is a mobile phone.

[0020] The payment program bill fixing method described in the present invention adopts the above technical solution and has the following technical effects compared with the prior art:

[0021] The payment program bill fixing method designed by the present invention is based on debugging agent software and designs a Cookies extraction method under the agent mode. A terminal installed with the Fiddler debugging agent communicates with the payment server in sequence through Cookies extraction and data packet construction for the target account logged in by the payment program installed on the mobile terminal, obtains the json format bill data returned by the payment server, and adds data parsing and cleaning operations to improve the efficiency of subsequent bill data consultation and realize the bill extraction of the target payment account. The entire design method overcomes the problems of complex viewing and difficult downloading of payment program bills, and effectively improves the efficiency of fixing payment program bills. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a schematic diagram of the application architecture of a payment program bill fixing method designed by the present invention;

[0023] Figure 2 This is a diagram of the port number setting interface in Fiddler debugging proxy;

[0024] Figure 3 This is a schematic diagram of the interface for downloading and installing the CA certificate in the Fiddler debugging proxy. DETAILED DESCRIPTION

[0025] The specific implementation modes of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0026] Cookies extraction requires the installation of a proxy certificate in the mobile phone to extract http / https protocol data. The http / https data is accompanied by Cookies-related credentials, which are valid for a certain period of time. Before extracting the bill, you need to log in to the mobile payment program, click Payment->Wallet->Bill, and extract the protocol data sent by the server. Cookies extraction can use Fiddler (Fiddler is an http / https debugging proxy that can read the communication protocol data between the computer and the Internet, and can also read the network data of mobile phones that have installed the proxy and are in the same network segment). It supports Android and IOS phones.

[0027] Therefore, the present invention designs a payment program bill fixing method, which uses the payment program protocol to obtain the voucher for viewing the target account bill through the agent, and then extracts the bill using the protocol method, and then processes the bill data into the warehouse, such as Figure 1 As shown, through a terminal with Fiddler debugging agent installed, the bill of the target account logged in by the payment program installed on the mobile terminal is extracted; in actual application, the following steps A to D are executed.

[0028] Step A. Control the mobile terminal to connect to the Internet via the hotspot network of the terminal through the proxy networking method corresponding to the Fiddler debugging proxy on the terminal, and then enter step B.

[0029] In actual application, the above step A specifically executes the following steps A1 to A3.

[0030] Step A1. Control to open the hotspot network of the terminal, set the mobile terminal to connect to the Internet via the hotspot network of the terminal, and enter step A2.

[0031] Step A2. Execute the following steps A2-1 to A2-2, install the CA certificate corresponding to the Fiddler debugging proxy in the terminal on the mobile terminal, and proceed to step A3.

[0032] Step A2-1. Obtain the IP address of the terminal and configure the port number of the Fiddler debugging proxy on the terminal, and then proceed to step A2-2.

[0033] In actual applications, the IP address of the terminal is obtained through Ipconfig. Regarding the configuration of the Fiddler debugging proxy port number, press Figure 2 As shown, click Tools->Options->Connections in the Fiddler debugging proxy. The port number is in the "Fiddler listens on port" input box on the page. You can modify it by yourself. The default is 8888.

[0034] Step A2-2. The mobile terminal uses the terminal IP address and the port number of the Fiddler debugging proxy to Figure 3 As shown, use a browser to access http: / / IP:port number, access the Fiddler debugging agent on the terminal, download the Fiddler debugging agent CA certificate and install it.

[0035] Step A3. According to the IP address of the terminal and the port number of the Fiddler debugging proxy on the terminal, modify the proxy of the terminal hotspot network connected to the mobile terminal and set it to manual.

[0036] Step B. Use the Fiddler debugging proxy on the terminal to find the billing data of the target account logged in by the payment program on the mobile terminal, extract the Cookies of the billing data, and then proceed to Step C.

[0037] In actual application, the above step B is based on the login status of the target account corresponding to the payment program on the mobile terminal, open the Fiddler debugging agent on the terminal, and click payment program->Me->Payment->Wallet->Bill in sequence, and search for data with the URL userrolllisturl in the Fiddler debugging agent, that is, search for the bill data of the target account logged in by the payment program on the mobile terminal, and extract the Cookies of the bill data.

[0038] Step C. The Fiddler debugging proxy on the terminal concatenates the Cookies data, last_trans_id data, and start_time data of the billing data according to the packet capture format, and sends them to the payment server to obtain the JSON-formatted billing data returned by the payment server, and then proceeds to step D.

[0039] Step D. In order to better view, search and analyze your own payment program bill data, after the bill data extraction is completed, the terminal parses and cleans the JSON format bill data and stores it in the database to complete the bill extraction of the target account. The stored data can be used for personal bill viewing, expenditure statistics, etc.

[0040] The payment program bill fixing method designed by the present invention, in actual application, uses a computer for a terminal with a Fiddler debugging agent installed, and uses a mobile phone for a mobile terminal with a payment program installed. In actual execution, the computer with the Fiddler debugging agent installed follows the method of steps A to D to extract the bill of the target account logged in by the payment program installed on the mobile phone.

[0041] In actual applications, the above-mentioned payment program bill fixing method is based on the debugging proxy software, and a Cookies extraction method under the proxy mode is designed. The terminal installed with the Fiddler debugging proxy, for the target account logged in by the payment program installed on the mobile terminal, communicates with the payment server in sequence through Cookies extraction and data packet construction, obtains the json format bill data returned by the payment server, and adds data parsing and cleaning operations to improve the efficiency of subsequent bill data consultation and realize the bill extraction of the target account; the entire design method overcomes the problems of complex viewing and difficult downloading of payment program bills, and effectively improves the efficiency of fixing payment program bills.

[0042] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.

Claims

1. A payment program bill fixing method, characterized by: Through a terminal with Fiddler debugging agent installed, for a target account logged in by a payment program installed on a mobile terminal, bill extraction of a target payment account is realized; the steps include: step A. controlling the mobile terminal to connect to the Internet via a hotspot network of the terminal through a proxy networking method corresponding to the Fiddler debugging agent on the terminal, and then proceeding to step B; Step B. Use the Fiddler debugging proxy on the terminal to find the billing data of the target account logged in by the payment program on the mobile terminal, extract the Cookies of the billing data, and then proceed to step C; Step C. The Fiddler debugging agent on the terminal splices the Cookies data, last_trans_id data, and start_time data of the billing data according to the packet capture format, and sends them to the payment server, extracts the json format billing data returned by the payment server, and then proceeds to step D; Step D. The terminal parses and cleans the JSON format bill data, stores it in the database, and completes the bill extraction of the target account; In step B, based on the login status of the target account corresponding to the payment program on the mobile terminal, open the Fiddler debugging agent on the terminal, and click payment program->Me->Payment->Wallet->Bill in sequence, and search for data with the URL userrolllisturl in the Fiddler debugging agent, that is, search for the bill data of the target account logged in by the payment program on the mobile terminal, and extract the Cookies of the bill data; The step A includes the following steps A1 to A3; Step A1. Set the mobile terminal to connect to the Internet via the terminal's hotspot network and proceed to step A2; Step A2. Install the CA certificate corresponding to the Fiddler debugging proxy in the terminal on the mobile terminal and proceed to step A3; Step A3: According to the IP address of the terminal and the port number of the Fiddler debugging proxy on the terminal, modify the proxy of the terminal hotspot network to which the mobile terminal is connected.

2. A payment program bill fixing method according to claim 1, characterized in that: The step A2 includes the following steps A2-1 to A2-2; Step A2-1. Obtain the IP address of the terminal and configure the port number of the Fiddler debugging proxy on the terminal, and then proceed to step A2-2; Step A2-2. The mobile terminal accesses the Fiddler debugging agent on the terminal according to the terminal IP address and the port number of the Fiddler debugging agent, downloads the Fiddler debugging agent CA certificate and installs it.

3. A payment program bill fixing method according to claim 2, characterized in that: In the step A2-1, the IP address of the terminal is obtained by Ipconfig.

4. A payment program bill fixing method according to claim 2, characterized in that: In step A2-2, the mobile terminal uses a browser to access http: / / IP:port number according to the terminal IP address and the port number of the Fiddler debugging agent to access the Fiddler debugging agent on the terminal.

5. A payment program bill fixing method according to claim 1, characterized in that: The terminal is a computer, and the mobile terminal is a mobile phone.