Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zan8in/afrog
A Security Tool for Bug Bounty, Pentest and Red Teaming.
https://github.com/zan8in/afrog
afrog bug-bounty penetration-testing pentest poc red-teaming vulnerability-scanner vulnerability-scanning-tools
Last synced: 2 days ago
JSON representation
A Security Tool for Bug Bounty, Pentest and Red Teaming.
- Host: GitHub
- URL: https://github.com/zan8in/afrog
- Owner: zan8in
- License: mit
- Created: 2022-02-24T06:00:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-26T07:10:03.000Z (about 2 months ago)
- Last Synced: 2024-10-29T15:10:38.013Z (about 1 month ago)
- Topics: afrog, bug-bounty, penetration-testing, pentest, poc, red-teaming, vulnerability-scanner, vulnerability-scanning-tools
- Language: Go
- Homepage:
- Size: 25.7 MB
- Stars: 3,423
- Watchers: 53
- Forks: 385
- Open Issues: 61
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - zan8in/afrog - A Security Tool for Bug Bounty, Pentest and Red Teaming. (Go)
- StarryDivineSky - zan8in/afrog
README
A Security Tool for Bug Bounty, Pentest and Red Teaming
Download •
Wiki •
Helper Function## PoC Contributors
不动明王
雪山
White-hua
123456
ifofor
Air
执着
purple-WL
throat
Secx
冰河
Sheen
a16
A1
rainbow2972
wuha0926
茄子
lei_sec
G-H-Z
wh1te
清月
york
7eleven.eth
Double...
ICEY_
lazy
free2e
m4sk
沉默树人
陈麻子
leonardo-o1
江湖人称魏...
若兮风
-sudo
Cuerz
laohuan12138
exp0l0zzz
1derian
CMDB-M
li1u
oxsonder
Zhiliao
段
HuiTaiL
Miracles666
Observer
黑熊
TryA9ain
fgz00
Y3y1ng
二大爷
Wans
海边的小米粥
Wen
SULAB
## What is afrog
afrog is a high-performance vulnerability scanner that is fast and stable. It supports user-defined PoC and comes with several built-in types, such as CVE, CNVD, default passwords, information disclosure, fingerprint identification, unauthorized access, arbitrary file reading, and command execution. With afrog, network security professionals can quickly validate and remediate vulnerabilities, which helps to enhance their security defense capabilities.
## Features
- [x] Open source
- [x] Fast, stable, with low false positives
- [x] Detailed HTML vulnerability reports
- [x] Customizable and stably updatable PoCs
- [x] Active community exchange group## Installation
### Prerequisites
- [Go](https://go.dev/) version 1.19 or higher.
you can install it with:
**Binary**
```sh
$ https://github.com/zan8in/afrog/releases/latest
```**Github**
```sh
$ git clone https://github.com/zan8in/afrog.git
$ cd afrog
$ go build cmd/afrog/main.go
$ ./afrog -h
```**Go**
```sh
$ go install -v github.com/zan8in/afrog/v3/cmd/afrog@latest
```## Running afrog
By default, afrog scans all built-in PoCs, and if it finds any vulnerabilities, it automatically creates an HTML report with the date of the scan as the filename.
```sh
afrog -t https://example.com
```**Warning occurs when running afrog**
If you see an error message saying:
```
[ERR] ceye reverse service not set: /home/afrog/.config/afrog/afrog-config.yaml
```it means you need to modify the [configuration file](#configuration-file).
To execute a custom PoC directory, you can use the following command:
```sh
afrog -t https://example.com -P mypocs/
```Use the command `-s keyword` to perform a fuzzy search on all PoCs and scan the search results. Multiple keywords can be used, separated by commas. For example: `-s weblogic,jboss`.
```sh
afrog -t https://example.com -s weblogic,jboss
```Use the command `-S keyword` to scan vulnerabilities based on their severity level. Severity levels include: `info`, `low`, `medium`, `high`, and `critical`. For example, to only scan high and critical vulnerabilities, use the command `-S high,critical`.
```sh
afrog -t https://example.com -S high,critical
```You can scan multiple URLs at the same time as well.
```sh
afrog -T urls.txt
```## -web Command
The `-web` command allows for persistently storing vulnerabilities scanned by afrog into an SQLite3 database. Accessing http://x.x.x.x:16868 via a browser provides access to the vulnerability report webpage, where users can conduct simple keyword searches and filter results by vulnerability severity.
```shell
afrog -web```
## Configuration file
The first time you start afrog, it will automatically create a configuration file called `afrog-config.yaml`, which will be saved in the current user directory under `$HOME/.config/afrog/afrog-config.yaml`.
Here is an example config file:
```yaml
reverse:
ceye:
api-key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
domain: "xxxxxx.cey2e.io"
dnslogcn:
domain: dnslog.cn
alphalog:
domain: dnslogxx.sh
api_url: "http://dnslogxx.sh/"
xray:
x_token: "xraytest"
domain: dnslogxx.sh
api_url: "http://x.x.0.x:8777"
revsuit:
token: "xx"
dns_domain: "log.xx.com"
http_url: "http://x.x.x.x/log/"
api_url: "http://x.x.x.x/helplog"
````reverse` is a reverse connection platform used to verify command execution vulnerabilities that cannot be echoed back. Currently, only ceye can be used for verification.
### Ceye Configuration
To obtain ceye, follow these steps:
- Go to the [ceye.io](http://ceye.io/) website and register an account.
- Log in and go to the personal settings page.
- Copy the `domain` and `api-key` and correctly configure them in the `afrog-config.yaml` file.### Dnslogcn
No configuration required, but unstable
[dnslog.cn](http://dnslog.cn/)### Alphalog
Need to build services
[alphalog](https://github.com/AlphabugX/Alphalog)### Xray
Need to build services
[xray](https://docs.xray.cool/tools/xray/advanced/reverse)### Revsuit
Need to build services
[Revsuit](https://github.com/Li4n0/revsuit)、
[Tutorial](https://mp.weixin.qq.com/s/hGwcMz8sh7BImBjI3wHqnQ)## Json Output (For developers)
### Json
Optional command: `-json` `-j`, Save the scan results to a JSON file. The JSON file includes the following contents by default: `target`, `fulltarget`, `id`, and `info`. The info field includes the following sub-fields: `name`, `author`, `severity`, `description`, and `reference`. If you want to save both `request` and `response` contents, please use the [-json-all](#jsonall) command parameter.
```sh
afrog -t https://example.com -json result.json
afrog -t https://example.com -j result.json
```### Warning
The content of the JSON file is updated in real time. However, there is an important note to keep in mind: before the scan is completed, if developers want to parse the file content, they need to add a '`]`' symbol to the end of the file by themselves, otherwise it will cause parsing errors. Of course, if you wait for the scan to complete before parsing the file, this issue will not occur.
### JsonAll
Optional command: `-json-all` `-ja`, The only difference between the `-json-all` and `-json` commands is that `-json-all` writes all vulnerability results, including `request` and `response`, to a JSON file.
```sh
afrog -t https://example.com -json-all result.json
afrog -t https://example.com -ja result.json
```## Screenshot
![](https://github.com/zan8in/afrog/blob/main/images/1.png)
## As Library
### Simple Example
Scan the website `http://example.com`
```golang
package mainimport (
"fmt""github.com/zan8in/afrog"
)func main() {
if err := afrog.NewScanner([]string{"http://example.com"}, afrog.Scanner{}); err != nil {
fmt.Println(err.Error())
}
}```
More examples:
- [Basic scanner](examples/basic_scan/main.go)
- [Read URL batch scan from file](examples/batch_scan/main.go)## Discussion group
To join the afrog communication group on WeChat, please first add the afrog personal account and mark it as **afrog**. Then, you will be added to the group by the administrator.
## 404Starlink
afrog has joined [404Starlink](https://github.com/knownsec/404StarLink)
## Disclaimer
This tool is intended only for **legally authorized** enterprise security construction purposes. If you want to test the functionality of this tool, you should build a target environment by yourself.
To prevent malicious use, all PoCs included in this project are theoretical assessments of vulnerabilities. The tool does not exploit vulnerabilities, launch real attacks or exploits on targets.
When using this tool for vulnerability scanning, it is important to ensure that your behavior complies with local laws and regulations, and that you have obtained sufficient authorization. **Do not scan unauthorized targets**.
If you engage in any illegal behavior while using this tool, you will be solely responsible for any corresponding consequences, and we will not bear any legal or joint responsibility.
Before installing and using this tool, please **read each clause carefully and thoroughly**. Restrictions, disclaimers, or other clauses that may significantly affect your rights and interests may be highlighted in bold or underlined to draw your attention. Unless you have fully read, fully understood, and agreed to all the terms of this agreement, do not install or use this tool. Your use of the tool or your acceptance of this agreement in any other express or implied manner will be deemed as your acknowledgment and agreement to be bound by this agreement.