Lolik

not404

nothing
x
bilibili
github
telegram

ctf web Packet Capture

fiddler#

Tools#

fiddler

Request interception#

  1. Global request interception
    Enable: Rules->Automatic Breakpoints-> Before Requests
    Disable: Rules->Automatic Breakpoints-> Disabled
  2. Intercepting a single website
    Enter bpu + website in the QuickExec input box in the lower left corner to intercept only this website

    Enter bpu and press Enter to cancel interception

View requests#

The red 🔒 on the left indicates interception, click Run to Completion on the right to allow
The tab bar in the Inspectors window on the right can be used to view the request package in various formats

The sub-tab Raw can be used to modify content,

Packet capture process#

Set interception rules> Modify the request package> Allow

Try it out#

  1. Intercept and modify csdn

Enter bpu www.csdn.net in the QuickExec input box in the lower left corner
Access www.csdn.net in the browser

The red 🔒 on the left indicates interception

  1. Modify the Chrome version number to 100 in Raw and then allow

  2. View in the browser

Open the inspection by pressing ctrl+shift+u in the browser, select the Network tab

Above the filter, click to clear previous content, click the left list to view detailed request information

vW0MN

  1. View in fiddler

View in the right header

vWc1C

Displayed as Chrome/100.0.0.0

In fiddler, right-click the request that has been allowed and select Select> child Requests to select sub-requests

HTTP#

HTTP format#

keyExplanationRelated
Main
HostCorresponds to the web name and port number in the URLCapture and modify host 127.0.0.1
User-AgentThe name of the client browserUser-Agent List
CookieThe browser uses this attribute to send cookies to the serverEnter javascript:alert (document. cookie) in the browser console to view/modify cookies to bypass authentication
RefererIndicates the URL of the web page that generated the requestBypass-related
Others
Content-TypeUsed to indicate the content type of the request
Accept-CharsetIndicates the character encoding that the browser can accept
Accept-EncodingIndicates the encoding method that the browser can accept
AcceptIndicates the MIME file format that the browser or other client can accept
Accept-LanguageIndicates the language that the browser can accept, such as en for English
ConnectionUsed to tell the server whether to maintain a fixed HTTP connection

HTTP methods#

MethodFunction
GETRetrieve resources
POSTTransmit resources
PUTUpdate resources
DELETEDelete resources
HEADGet header information

The commonly used ones are GET and POST. GET will be displayed after the URL with a "?" at the beginning, separated by "&", transmitted in plain text, not suitable for submitting sensitive passwords, and there is also a limit on the size of the data

POST does not, file upload, passwd is generally submitted using POST

HTTP status codes#

Status CodePurposeDetailed ExplanationRelated
1xxInformationalIndicates that the request has been received and processing continues
2xxSuccessIndicates that the request has been successfully received
3xxRedirectionThe request is complete, but further action is requiredctfhub web 302 redirect
4xxClient ErrorThe request has syntax errors or cannot be fulfilled
5xxServer ErrorThe server encountered an error while processing the request
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.