Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/portswigger/example-traffic-redirector
https://github.com/portswigger/example-traffic-redirector
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/portswigger/example-traffic-redirector
- Owner: PortSwigger
- Created: 2017-02-14T05:09:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-12-23T00:09:57.000Z (about 3 years ago)
- Last Synced: 2023-09-07T06:46:14.733Z (over 1 year ago)
- Language: Java
- Size: 3.91 KB
- Stars: 22
- Watchers: 3
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample Burp Suite extension: traffic redirector
This extension demonstrates how to redirect outgoing HTTP requests from one
host to another. This task might arise, for example, if you have mapped out an
application which then moves to a different staging URL. By simply redirecting
traffic to the new hostname, you can continue to drive your testing from the
original site map.The extension works as follows:
- It registers itself as an HTTP listener.
- For outgoing request messages, it retrieves the HTTP service for the request.
- If the HTTP service host matches the "from" host, it uses a helper method to
build a new HTTP service using the "to" host, and other details unchanged.
- It updates the HTTP request with the new HTTP service.Note: The sample code uses "host1.example.org" and "host2.example.org" as the
"from" and "to" hostnames. You should edit the code to use your own hostnames
before using it.This repository includes source code for Java, Python and Ruby.