-
Notifications
You must be signed in to change notification settings - Fork 11
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
Showing
54 changed files
with
4,074 additions
and
9,267 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Install CARPA | ||
*** | ||
### Install/Update Packages | ||
* Install packages | ||
``` | ||
sudo apt-get install -y python-pip git | ||
``` | ||
* Install Scapy > 2.3.3 | ||
``` | ||
git clone https://github.com/secdev/scapy | ||
cd scapy | ||
sudo python setup.py install && cd .. && sudo rm -rf scapy | ||
``` | ||
## Download latest release | ||
``` | ||
git clone https://github.com/ekiojp/circo | ||
``` | ||
## Install Python Requirements (grab a coffee) | ||
``` | ||
cd circo/carpa | ||
sudo pip install -r requirements.txt | ||
``` | ||
## Configure CARPA | ||
### Filter packets on public interface to avoid RST & ICMP packets out, block ping response | ||
``` | ||
sudo iptables -A INPUT -i eth0 -p icmp -j DROP | ||
sudo iptables -A OUTPUT -o eth0 -p tcp --tcp-flags RST RST -j DROP | ||
sudo iptables -A OUTPUT -o eth0 -p icmp --icmp-type port-unreachable -j DROP | ||
``` | ||
### Update CARPA #Config section | ||
``` | ||
vi carpa.py | ||
``` | ||
Look for section below `#Config` | ||
|
||
* Change AES `passphrase` and `salt`, these need to match `circo.py` config | ||
``` | ||
phrase = 'Waaaaa! awesome :)' | ||
salt = 'salgruesa' | ||
``` | ||
* Define `domain/sub-domain` (NS Server IP must be CARPA Public IP) | ||
``` | ||
ccname = 'evil.sub.domain' | ||
``` | ||
* Change relative path of CARPA (optional) | ||
``` | ||
dirname = '/home/ekio/circo/carpa/' | ||
``` | ||
|
||
## Notes | ||
* There are free/pay DNS sub domain services like [afraid](https://afraid.org) |
Oops, something went wrong.