> For the complete documentation index, see [llms.txt](https://infosecgirls.gitbook.io/infosecgirls-training/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infosecgirls.gitbook.io/infosecgirls-training/appsec/burp-extenders/2-proxy.md).

# Proxy

This is an intercepting web proxy that operates as a man-in-the-middle between the end browser and the target web application. It lets you intercept, inspect and modify the raw traffic passing in both

## Intercept

1. In Burp, go to "Proxy" > "Intercept" tab, and get familiar with the user interface.

<div align="left"><img src="https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz09EiFZFfSlO37f0mb%2Fimage.png?alt=media&amp;token=e0437acf-2abb-46f1-a970-56c578c549d7" alt=""></div>

2\. Switch to "Proxy" > "HTTP history" tab.

![](https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz09IFp9x6PbaMFoh9-%2Fimage.png?alt=media\&token=2461c3af-758b-468f-af8a-234e8a0769b7)

3\. Switch to "Proxy" > "Websockets history" tab.

![](https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz09Kuzysft9NngyqJJ%2Fimage.png?alt=media\&token=65ff82f4-d0a6-4dce-b562-36c4c018f8a8)

4\. Switch to "Proxy" > "Options" tab, and look at the different options available.

<div align="left"><img src="https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz09NNWxr_TEykhBaMs%2Fimage.png?alt=media&amp;token=d1414248-4568-4ed0-be2c-18888b1067bc" alt=""></div>

5\. In Burp, go to "Proxy" > "Intercept" tab, and ensure that interception mode is turned **on**. If the intercept control button says "Intercept is off", then click on it to toggle the interception status.

![](https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz09R6MnTbeNGskLkXW%2Fimage.png?alt=media\&token=467cd051-a62e-4758-b6f2-451cd448eb1c)

6\. With the intercept mode enabled in Burp Suite, fill and submit the login form of the Security Shepherd application.

![](https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz09UiVqg-P6NPiCRW8%2Fimage.png?alt=media\&token=d92de570-c44f-460d-9030-2bf9b7166ea9)

7\. Switch to "Proxy" > "Intercept" tab and observe that the submitted request has been intercepted. At this point, it is possible to modify the request parameters before forwarding the request to the origin server.

8\. Analyse the intercepted request, and observe the parameters passed in POST request body.

![](https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz09Ylx2TlqJfpP-m7m%2Fimage.png?alt=media\&token=60e94db8-bbc6-41c4-93e5-5b901a77be0f)

9\. Tamper with the input parameters, i.e., change values for `login` and `pwd` parameters.

![](https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz09a5BOB3e8DBflbPN%2Fimage.png?alt=media\&token=517eeeb4-2d0c-4067-bc5e-93f17bc068a1)

10\. Click on "**Forward**" button, and analyze the next request.

11\. Go to "**Proxy**" tab > "**Options**" sub-tab > "**Intercept Server Responses**" section, and check the checkbox labelled as "**Intercept responses based on the following rules**".

![](https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz0AK--lD24bCSEkAS8%2Fimage.png?alt=media\&token=41308611-640e-4291-aabe-ba412d9c58c5)

12\. For a smoother experience, add suitable interception rules for requests and responses. The following combination of request and response interception rules could be useful:

![](https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz0AMR-SNTQBchgblLL%2Fimage.png?alt=media\&token=1817dc6c-1f2e-41bc-a576-89cf015f5bf5)

13\. Switch to "Proxy" > "Intercept" tab and forward the intercepted request (from step-#10). This time, the server response should have been intercepted by the Burp interceptor.

<div align="left"><img src="https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz0AOl_NzZiBi4dVmQX%2Fimage.png?alt=media&amp;token=4cd3adc7-b564-452c-b9eb-cd2ed5fa3111" alt=""></div>

14\. Click on "**Forward**" button, and analyze the next request/response. Repeat until there is no more request/response to forward. Alternatively, if you are done analyzing the request, turn interception mode off by clicking on the "Intercpet is on" button.

<div align="left"><img src="https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz09BpnT1s5sqaRbYoN%2Fimage.png?alt=media&amp;token=2717c9f6-c5a3-4e32-af7e-d8365af9ceec" alt=""></div>

<div align="left"><img src="https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz09APiEUrm7JghRvda%2Fimage.png?alt=media&amp;token=9a5ea4a2-6e92-440b-97c1-7866531d1261" alt=""></div>

## HTTP History

1. Navigate to "**Proxy**" tab > "**HTTP history**" sub-tab to see a full record of all messages that have been intercepted by the Burp Proxy.

![](https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz0AV9nS3Wjkm9DluAl%2Fimage.png?alt=media\&token=6f5346dd-946a-4510-942c-10c3cf656279)

2\. Click on the filter bar, above the history table, and select the checkbox labelled as "**Show only in-scope items**".

![](https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz0AZT2C5mihEm0nm0w%2Fimage.png?alt=media\&token=cc3474f1-f525-48fe-a333-ecd91649f221)

3\. To apply the filter, click anywhere outside of the display filter form.

![](https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz0Abw_x8yOyRZOFE8p%2Fimage.png?alt=media\&token=a2593a09-8b56-4262-a310-c4b1a3f8d9de)

4\. Right-click on the history table and select "**Show new history window**" option from the context menu, to open an additional view.

![](https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz0AeT1t2IkRXiD9wpC%2Fimage.png?alt=media\&token=4798fcfb-40ec-45ba-a1c2-c918d7a3b031)

5\. Click on a column header to sort contents of the history table.

![](https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz0AgmpPWB7lEojEwku%2Fimage.png?alt=media\&token=a451493c-29c7-45e1-8c9c-de5f234b1ce1)

6\. To highlight a request, right-click on the chosen request and select "**Highlight**" from the context menu.

![](https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz0Air8SQ2U-qNOBc90%2Fimage.png?alt=media\&token=40ec9c4e-028e-4fd5-a768-b6b6c8e8d936)

7\. To add a comment against a request, right-click on the chosen request and select "**Add comment**" from the context menu.

![](https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz0AlB9cRM0A0LgO2Vu%2Fimage.png?alt=media\&token=a3770b2d-636d-469f-92be-126e304b1ee7)

8\. If you wish to forward an interesting request to Scanner, Repeater, Intruder, or Sequencer tools, right-click on the selected request and choose an appropriate option from the context menu.

![](https://990422818-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWGXF4oLcghA1GLq0CM%2F-Lz093tb9OHqsQ0Evu_A%2F-Lz0AnZMTWYwokO9-YiB%2Fimage.png?alt=media\&token=50d1ee07-9121-49a3-a92b-1cc8d1b088ef)
