forked from PortSwigger/collaborator-everywhere
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
linoskoczek
committed
May 19, 2022
1 parent
02dd067
commit 5a860bf
Showing
7 changed files
with
149 additions
and
34 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,62 @@ | ||
This is a Burp Suite Pro extension which augments your in-scope proxy traffic by injecting non-invasive headers designed to reveal backend systems by causing pingbacks to Burp Collaborator. | ||
|
||
To use it, simply install it and browse the target website. Findings will be presented in the 'Issues' tab. You can easily customise injected payloads by editing /resources/injections | ||
# Collaborator Everywhere (with IP support) | ||
|
||
For further information, please refer to the whitepaper at [https://portswigger.net/research/cracking-the-lens-targeting-https-hidden-attack-surface](https://portswigger.net/research/cracking-the-lens-targeting-https-hidden-attack-surface) | ||
**This is a fork of @albinowax's Collaborator Everywhere plugin which works with IP addresses (instead of domain names). It can be useful when testing the application inside internal networks that have no access to and cannot be accessed from the internet.** | ||
|
||
For information about Collaborator Everywhere, please refer to the [original repository](https://github.com/PortSwigger/collaborator-everywhere/). | ||
|
||
## What has changed | ||
|
||
1. It checks whether Burp Collaborator Server location is in domain format (like oastify.com/yu8990wrjiubqd253...) or IP address one (like 10.16.0.1). | ||
2. For domain format, the *injection headers* are as in original. For IP address format the payloads are in a [separate file](https://github.com/afine-com/collaborator-everywhere-with-ip-support/blob/master/resources/injections-ip-address-mode). | ||
Bear in mind that in many cases pingbacks were made by DNS, and it is not possible to achieve that using only IP addresses. | ||
|
||
# Usage | ||
## Start Collaborator Server | ||
###Prepare configuration file for Burp Collaborator: | ||
Replace `192.168.1.55` with your IP address. | ||
``` | ||
{ | ||
"workerThreads":10, | ||
"eventCapture": { | ||
"localAddress":["192.168.1.55", "127.0.0.1"], | ||
"publicAddress":"192.168.1.55", "http": { "ports": 80 }, | ||
"polling": { | ||
"localAddress": "127.0.0.1", | ||
"publicAddress": "192.168.1.55", | ||
"http": { "ports": 8080 }, | ||
} | ||
}, | ||
"logLevel": "DEBUG" | ||
} | ||
``` | ||
Save it as *local-collaborator.cfg* | ||
|
||
### Run collaborator server | ||
You have to use Burp Suite JAR. Remember to change the paths. | ||
``` | ||
sudo java -jar burpsuite_pro.jar --collaborator-server --collaborator-config=local-collaborator.cfg | ||
``` | ||
|
||
## Configure Burp Collaborator Server | ||
1. Project options > Burp Collaborator Server > Use a private Collaborator server (check). | ||
2. Set *Server location* for your local IP address. | ||
3. Select *Poll over unencrypted HTTP*. | ||
4. Click `Run health check ...` - everything apart from HTTPS, SMTPS and DNS should show *Success*. | ||
|
||
## Install Collaborator Everywhere (with IP support) | ||
1. Download the newest JAR from [Releases](https://github.com/afine-com/collaborator-everywhere-with-ip-support/releases/). | ||
2. Extender > Extensions > Add | ||
3. Click `Select file ...` in *Extension file (.jar)* and choose downloaded JAR file. | ||
|
||
You should see following output: | ||
``` | ||
Collaborator IP address mode (payloads will be made using the IP address instead of domain) | ||
Restart the plugin if you change Collaborator Server Mode. | ||
Calculated your IPs: [192.168.1.55] | ||
Loaded Collaborator Everywhere (with IP support) v1.3 | ||
``` | ||
|
||
Observe in *Logger* that headers are added to the requests in *Scope*. | ||
|
||
### Fork credits | ||
@linoskoczek & @mackeysec (AFINE Team) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Lines starting with # are ignored | ||
#param,u,http://%s/ | ||
#param,href,http://%s/ | ||
#param,action,http://%s/ | ||
#param,host,%s | ||
#param,http_host,%s | ||
#param,email,root@%s | ||
#param,url,http://%s/ | ||
#param,load,http://%s/ | ||
#param,preview,http://%s/ | ||
#param,target,http://%s/ | ||
#param,proxy,http://%s/ | ||
#param,from,http://%s/ | ||
#param,src,http://%s/ | ||
#param,ref,http://%s/ | ||
#param,referrer,http://%s/ | ||
# %h is replaced with corresponding Host header | ||
# Useful in cases like Host, Origin, etc. | ||
#header,Host,%s:80@%h | ||
#header,Origin,http://%s | ||
#header,X-Forwarded-Host,http://%s | ||
#header,X-Host,http://%s | ||
#header,Via,1.1 http://%s | ||
header,X-Forwarded-Server,http://%s | ||
header,Proxy-Host,http://%s | ||
header,Destination,http://%s | ||
header,Proxy,http://%s | ||
header,X-Original-URL,http://%s | ||
header,Profile,http://%s/wap.xml | ||
header,X-Arbitrary,http://%s | ||
header,X-HTTP-DestinationURL,http://%s | ||
header,X-Forwarded-Proto,http://%s | ||
header,Contact,root@%s | ||
header,From,root@%s | ||
header,User-Agent,Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 root@%s | ||
header,Referer,http://%s/ref | ||
header,X-Wap-Profile,http://%s/wap.xml | ||
header,X-Forwarded-For,http://%s | ||
header,True-Client-IP,http://%s | ||
header,Client-IP,http://%s | ||
header,X-Client-IP,http://%s | ||
header,X-Real-IP,http://%s | ||
header,X-Originating-IP,http://%s | ||
header,CF-Connecting_IP,http://%s | ||
header,Forwarded,for=http://%s;by=http://%s;host=http://%s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
rootProject.name = 'collaborator-everywhere' | ||
rootProject.name = 'collaborator-everywhere-with-ip-support' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters