http packet capture real notes (12) Fiddler other functional finishing

1.Composer

 

2. Simple Performance Test

Shift + replay

 

3.App replay code

Replay attacks: capture a hacker to obtain the client requests data, the server sends a request to repeat like behavior

The first step: start fidder, configure the appropriate environment, open the app Login sector

Step two: enter the phone number, click Send verification code, perform packet capture with fiddler

The third step: playback request, the verification code may be sent a plurality of times

 

4. Weak network

Question: operation time is slow; the user experience is not good; bug appears to increase the likelihood of

Common weak network scenarios: network delays cause long load times; network outages; network timeout;

 

fiddler weak analog network : Click on the toolbar Rules - Performances -Simulate Modem Speeds

Precise control of network speed

(1) to find the corresponding code OnBeforeRequest script, modifying the delay time

 if (m_SimulateModem) {
            // Delay sends by 300ms per KB uploaded. 

// Each upload data 1kb, 0.3 seconds delay
            oSession [ "Trickle-Delay-Request"] = "300";
            // Delay 150ms per Receives by the Downloaded KB.

/// Each download data 1kb, 0.15 seconds delay
            oSession [ "response-trickle-delay "] = "150";}

(2) Open a weak network mode;

 

Fiddler simulate a network outage

Intercepting a response (rules-automatic breakpoint-after requests), in response to selecting the choose response status code

 

Fiddler analog network timeout

Intercepts the request (rules-automatic breakpoint-before requests) corresponds to the network time expires can check or retransmission timeout mechanism

Published 47 original articles · won praise 1 · views 3718

Guess you like

Origin blog.csdn.net/pdd51testing/article/details/104924756