subnya

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

README

SubNya

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

release

you can download them from the releases page.

using go install

If you have a Go environment ready to go (at least go 1.19), it's as easy as:

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:

schedule:
  - cron: "* * * *"   # For Dockerfile deployment

monitor:
  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:   0 

sqlite:
  db_1: "./db/monitor.db"   # Set the database storage location

Usage

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

Documentation

Overview

* @Author: 1dayluo * @Date: 2023-02-08 09:55:51 * @LastEditTime: 2023-03-10 19:18:13

Directories

Path Synopsis
pkg
cmd
* @Author: 1dayluo * @Date: 2023-02-19 14:03:48 * @LastEditTime: 2023-03-10 19:30:36
* @Author: 1dayluo * @Date: 2023-02-19 14:03:48 * @LastEditTime: 2023-03-10 19:30:36
db
redis_op.go
redis_op.go
io
* @Author: 1dayluo * @Date: 2023-02-10 07:08:03 * @LastEditTime: 2023-03-10 19:31:24
* @Author: 1dayluo * @Date: 2023-02-10 07:08:03 * @LastEditTime: 2023-03-10 19:31:24
logutil
file_logger.go
file_logger.go
output
* @Author: 1dayluo * @Date: 2023-03-01 15:01:31 * @LastEditTime: 2023-03-11 23:13:59
* @Author: 1dayluo * @Date: 2023-03-01 15:01:31 * @LastEditTime: 2023-03-11 23:13:59
readconf
* @Author: 1dayluo * @Date: 2023-02-10 10:50:17 * @LastEditTime: 2023-03-11 23:03:31
* @Author: 1dayluo * @Date: 2023-02-10 10:50:17 * @LastEditTime: 2023-03-11 23:03:31

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL