Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1dayluo/subnya
基于go语言和subfinder实现的用配置文件自定义配置,并以数据库方式跟踪记录子域名的新增减少| A new subdomain monitor tool!
https://github.com/1dayluo/subnya
monitor recon-tools
Last synced: 3 months ago
JSON representation
基于go语言和subfinder实现的用配置文件自定义配置,并以数据库方式跟踪记录子域名的新增减少| A new subdomain monitor tool!
- Host: GitHub
- URL: https://github.com/1dayluo/subnya
- Owner: 1dayluo
- License: gpl-3.0
- Created: 2023-02-07T03:25:14.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-23T08:48:30.000Z (7 months ago)
- Last Synced: 2024-05-23T08:57:40.209Z (7 months ago)
- Topics: monitor, recon-tools
- Language: Go
- Homepage:
- Size: 1.26 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - 1dayluo/subnya - 基于go语言和subfinder实现的用配置文件自定义配置,并以数据库方式跟踪记录子域名的新增减少| A new subdomain monitor tool! (Go)
README
# SubNya
##![](https://img.shields.io/github/commit-activity/w/1dayluo/SubNya_monitor?style=flat-square) ![](https://img.shields.io/github/license/1dayluo/SubNya_monitor?style=flat-square)
## Introduction
SubNya_monitor is a new subdomain enumeration and monitoring tool used to track the status of subdomains on the target domain, including newly added and removed subdomains. It utilizes goroutine to increase the speed of subdomain enumeration. The tool stores data in both Redis and SQLite, taking advantage of Redis's speed to monitor changes in file MD5, and SQLite's features to store and update subdomain data, including the use of transactions. Finally, the output result will be saved to a local file record (optional) or sent as a notification to a personal Telegram/email via an API.
The current project has completed its basic functionality, and other functions and the Dockerfile are still under development (see todo below).
## Easy installation
### releaseyou can download them from the [releases](https://github.com/1dayluo/SubNya_monitor/releases/tag/v1.0) page.
### using go install
If you have a Go environment ready to go (at least go 1.19), it's as easy as:
```lua
go install github.com/1dayluo/subnya@latest```
## Configuration File
The configuration file is located in `~/.config/subnya/config/config.yml` and looks like this,Executable files need to fill in the absolute path:
```yml
schedule:
- cron: "* * * *" # For Dockerfile deploymentmonitor:
dir:
- "./test" # The folder to be monitored - all files in this folder will be traversed
settings:
- timeout : 30 # Interval time
- threads : 10 # Number of threads
- maxenumerationtime: 10 # Maximum enumeration time
- outfile : "/var/tmp/" # Output folder
redis:
addr: "172.17.0.1:6379" # Redis connection address
password: "" # Redis password
db: 0sqlite:
db_1: "./db/monitor.db" # Set the database storage location
```## Usage
```lua
Options:
--update, -u Check if the monitor has any updates
--run, -r Start subdomain finder and update data (including response status code) in SQLite
--output OUTPUT
--help, -h Display this help and exit
```