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
- Host: GitHub
- URL: https://github.com/yujunz/cheat-the-client
- Owner: yujunz
- License: mit
- Created: 2017-03-15T00:44:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-16T05:34:46.000Z (over 9 years ago)
- Last Synced: 2025-01-25T20:23:59.377Z (over 1 year ago)
- Topics: demo-script
- Language: Python
- Size: 10.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```