Open the Chrome browser and click on the "three" button in the top right corner.
Click the Tools-----and then click Developer Tools
Locate the Network Options box. Take the Baidu experience page for example, click the Task checkbox to view the network request flow
Within the network box, there will be all the request flows
4. Click on the request stream you need to view the header information
"Experiment."
View Source:
Find the submitted key for post submission, view the request header;
The flag is then post-submitted:
Add:
Import requests then, try to get a webpage. In this example, we'll get the public timeline for Github:>>> r = requests.get ('https://github.com/timeline.json Now, we have a Response object named R. We can get all the information we want from this object. Requests's simple API means that all HTTP request types are obvious. For example, you can send an HTTP POST request like this:>>> r = requests.post ("http://httpbin.org/post")
= Base64.b64encode (str1) = Base64.b64decode (str2) decoding
So the problem-solving script:
import requests import Base64url = " http://ctf5.shiyanbar.com/web/10/10.php " rs = Requests.get (URL). Headers[ " flag " ]v =< Span style= "COLOR: #000000" > Base64.b64decode (RS) print requests.post ( Url=url,data={ " key ": V.split (" : ") [1]}). Content
An HTTP message that sends a POST method to the URL, data is the segment of the post, and V is a string that is split into a list with ":"
Add:
Python request module: Resp.text Returns the Unicode type of data. Resp.content returns the bytes type, which is the binary data.
"Notes" How to view HTTP request headers && "experiment" the world martial arts only fast not broken