An open API service indexing awesome lists of open source software.

https://github.com/yujunz/cheat-the-client

demo scripts of mitmstack
https://github.com/yujunz/cheat-the-client

demo-script

Last synced: about 1 month ago
JSON representation

demo scripts of mitmstack

Awesome Lists containing this project

README

          

# Demo script for presentation "Cheat The Client"

Replacing `openstack` with `mitmproxy` in request and reponse

## Cheat Sheet

### simple replacement

```
python -m SimpleHTTPServer
mitmdump -dd -s "./replace.py openstack mitmproxy"

curl -s http://localhost:8000/openstack-logo.png --noproxy localhost |imgcat
curl -s http://localhost:8000/openstack-logo.png --proxy http://localhost:8080 |imgcat

curl -s http://localhost:8000/clouds.json --noproxy localhost |ack --passthru 'openstack|mitmproxy'
curl -s http://localhost:8000/clouds.json --proxy http://localhost:8080 |ack --passthru 'openstack|mitmproxy'
```

### nova list multiplier

```
nova list
export http_proxy=localhost:8080
mitmdump -dd -s "multiply.py 5"
nova list
```