# Week 42 - ProxyChains

Running into issues getting your HTTP requests to play nicely with your [#AppSec](https://www.linkedin.com/feed/hashtag/?keywords=appsec\&highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6993911566785986561) tools?\
&#x20;\
I’ve encountered connection/request/formatting problems with tools like SQLMap, EyeWitness, Hydra and especially custom python scripts. Most of the time, it's because I forget to add a matching quote or a necessary request header.\
&#x20;\
My favorite way to debug these issues is to proxy the tool through BurpSuite! Some tools (like SQLMap) have this feature available as a command (--proxy). But what happens when they don’t?\
&#x20;\
Use ProxyChains! It’s super simple to setup (see screenshot) and will save you a ton of time when trying to figure out why your HTTP Requests are not working as planned. Just change the last line of the ‘/etc/proxychains4.conf’ file to:\
&#x20;\
`http 127.0.0.1 8080`\
&#x20;\
This will tell proxychains to send our traffic through an HTTP proxy on localhost port 8080 (where Burp is listening). Then prefix your tool command with proxychains4 (EX: proxychains4 sqlmap -u target\[.]com) and you’re good to go!\
\
Burp will intercept all HTTP requests allowing you to send them to the repeater and see what you accidentally left out :)

![](/files/p1b8Xt1SVcakdXfsYaMm)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.webhackingtips.com/week-42-proxychains.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
