Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ArturSS7/TukTuk
Tool for catching and logging different types of requests.
https://github.com/ArturSS7/TukTuk
bugbounty go golang pentest security summer-of-hack
Last synced: 3 months ago
JSON representation
Tool for catching and logging different types of requests.
- Host: GitHub
- URL: https://github.com/ArturSS7/TukTuk
- Owner: ArturSS7
- License: gpl-3.0
- Created: 2020-08-03T19:16:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-20T08:11:06.000Z (almost 4 years ago)
- Last Synced: 2024-06-26T00:36:43.178Z (4 months ago)
- Topics: bugbounty, go, golang, pentest, security, summer-of-hack
- Language: Go
- Homepage:
- Size: 7.75 MB
- Stars: 215
- Watchers: 16
- Forks: 27
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- WebHackersWeapons - TukTuk
- awesome-hacking-lists - ArturSS7/TukTuk - Tool for catching and logging different types of requests. (Go)
README
# TukTuk
This project was initially started as a part of [Digital Security](https://github.com/DSecurity)'s internship ["Summer of Hack 2020"](https://dsec.ru/about/summerofhack/
).TukTuk is an open source tool that designed to make pentester's life easier by catching and logging different types of requests. TukTuk is written in Go, but has a little part of python code.
Also if you wondering why project naming is so strange - *TukTuk* stands for *Knock-Knock* in Russian.
## How to install#### Requirements
- Golang >= 1.14.2
- PostgreSQL >= 12.1
- DNS domain
- If you want SMB protocol to work you will need to install impacket fork.
You can do this with pip
```pip3 install git+https://github.com/ArturSS7/impacket.git@master```#### Setting up DNS
In order to set up DNS do the following:
- Make A record ns.example.com which points your ip
- Make NS record e.example.com with contents of ns.example.com
- Make A record on example.com which points your ip
- Make MX record on example.comExample shows how to setup TukTuk for *.h.example.com if your VPS' IP is 1.3.3.7. Main DNS is Cloudflare in our case, but you can use what you want
![DNS setup](https://user-images.githubusercontent.com/52138851/91592820-cbe66a00-e967-11ea-8a1f-e16379867ac6.png)#### Building project and setting up database
Just run two scripts:
- install.sh
- db_init.shAfter doing the project will be moved to $GOPATH/src/TukTuk
You can run it with ./TukTuk#### Configuring
The example configuration file is located in ```config/Config.json.example```.
There you can configure your domain settings, credentials and alerts
Move the file to ```Config.json``` if you are going to run the project.
Please change default credentials.#### Configuring alerts
##### Telegram configuring
Create a bot and get a token is [here](https://core.telegram.org/bots#3-how-do-i-create-a-bot).
You can get `Chatid` using this bot ```@m4n_idbot```.
Set Telegram token in the ```TelegramBot``` field.
In the `Chatid` field, set your chat id.
The default length of the alert is "short" (protocol name + source ip + link to the admin panel), "long alert" - all information about the message)##### Discord Webhook configuring
1. Go to ```Server settings``` -> ```Webhooks``` -> ```Create Webhook```.
2. Setup name, avatar and the channel, where it will be posted. Copy Webhook URL. Do not share! Very dangerous!
3. Click Save and then the Done button.Set Discord Webhook URL in the ```Webhook``` field.
##### Quickstart Gmail API configuring
Go to [Quickstart Go](https://developers.google.com/gmail/api/quickstart/go)
to get the ```Config.json``` file then put it at the ```emailalert/Config.json``` path and run tuktuk. After starting, follow the generated link and give permission to send emails. Enter the received token into the console. Restart the server.
Yes, it's not convenient. In the future we will bring the configuration to the admin panel.#### Getting HTTPS certificate
You will have to get a wildcard certificate for your domain.
You can do this with cert-bot.
A good article which will help you is [here](https://medium.com/@saurabh6790/generate-wildcard-ssl-certificate-using-lets-encrypt-certbot-273e432794d7).
First start the app and then start the bot.
During setting up certificates cert-bot will ask you to add TXT challenge to you domain. Add the TXT challenge in the ```Config.json``` file and continue.
After getting certificate put its path to the config file.## Supported protocols:
- HTTP
- HTTPS
- DNS
- FTP
- LDAP
- SMTP (part of the code taken from [go-smtp](https://github.com/emersion/go-smtp))
- SMB (used [impacket](https://github.com/SecureAuthCorp/impacket)'s SMB realisation)
- Plain TCP
## Alerting
TukTuk is designed not only to log requests, but to alert in case of it. Current alert options are:
- Telegram
- Discord Webhook
- GMail
Additional alert types can be added by writing a module. Feel free to make a pull request!## Web interface
TukTuk is featuring a little web interface where user can manage some of the settings or look for logged request.
![Web interface](https://user-images.githubusercontent.com/19762721/91326276-d15b7d00-e7cc-11ea-8055-6760163c8dce.png)