Proxy Tooling
How to proxy CLI tools, code, and other apps
Last updated
export HTTP_PROXY="127.0.0.1:8080"
export HTTPS_PROXY="127.0.0.1:8080"export AWS_CA_BUNDLE='/Users/tyler/Downloads/caido_ca.crt'export REQUESTS_CA_BUNDLE='/Users/tyler/Downloads/caido_ca.crt'aws iam get-user --user-name james
{
"User": {
"Path": "/",
"UserName": "james",
"UserId": "AIDAU[REDACTED]",
"Arn": "arn:aws:iam::[REDACTED]:user/james",
"CreateDate": "2022-05-18T23:38:48+00:00",
"PasswordLastUsed": "2025-09-24T12:30:48+00:00"
}
}POST / HTTP/1.1
Host: iam.amazonaws.com
Accept-Encoding: identity
Content-Type: application/x-www-form-urlencoded; charset=utf-8
User-Agent: aws-cli/2.27.31 md/awscrt#0.26.1 ua/2.1 os/macos#24.6.0 md/arch#arm64 lang/python#3.13.7 md/pyimpl#CPython cfg/retry-mode#standard md/installer#source md/prompt#off md/command#iam.get-user
X-Amz-Date: 20250924T120540Z
Authorization: AWS4-HMAC-SHA256 Credential=AKIA[REDACTED]/20250924/us-east-1/iam/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=6871952e6714a55bada63b6129038299bd05d08e9c4b1b48ce86dc8c4d54cd41
Content-Length: 51
Action=GetUser&Version=2010-05-08&UserName=jamesHTTP/1.1 200 OK
Date: Wed, 24 Sep 2025 12:05:40 GMT
x-amzn-RequestId: 3f0a291f-1f43-4427-b29e-97331c7e37a1
Content-Type: text/xml
Content-Length: 529
<GetUserResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
<GetUserResult>
<User>
<Path>/</Path>
<PasswordLastUsed>2025-09-24T12:30:48Z</PasswordLastUsed>
<UserName>james</UserName>
<Arn>arn:aws:iam::[REDACTED]:user/dev_user</Arn>
<UserId>AIDA[REDACTED]</UserId>
<CreateDate>2022-05-18T23:38:48Z</CreateDate>
</User>
</GetUserResult>
<ResponseMetadata>
<RequestId>3f0a291f-1f43-4427-b29e-97331c7e37a1</RequestId>
</ResponseMetadata>
</GetUserResponse>curl -x http://127.0.0.1:8080 www.google.comnmap --proxies http://127.0.0.1:8080 SERVER_IP -pPORT -Pn -sCset PROXIES HTTP:127.0.0.1:8080#socks4 127.0.0.1 9050
http 127.0.0.1 8080# Quiet mode (no output from library)
quiet_modeproxychains4 -q aws sts get-caller-identity
{
"UserId": "AIDA[REDACTED]",
"Account": "[REDACTED]",
"Arn": "arn:aws:iam::[REDACTED]:user/james"
}