项目作者: PumpkinSeed

项目描述 :
Simple SQL table fuzzing
高级语言: Go
项目地址: git://github.com/PumpkinSeed/sqlfuzz.git
创建时间: 2020-11-05T11:50:16Z
项目社区:https://github.com/PumpkinSeed/sqlfuzz

开源协议:Apache License 2.0

下载


SQLfuzz

Go Report Card GoDoc License made-with-Go sqlfuzz test workflow

Load random data into SQL tables for testing purposes. The tool can get the layout of the SQL table and fill it up with random data.

Installation

MacOS

  1. wget https://github.com/PumpkinSeed/sqlfuzz/releases/download/{RELEASE}/sqlfuzz_darwin_amd64 -O /usr/local/bin/sqlfuzz
  2. chmod +x /usr/local/bin/sqlfuzz

Linux

  1. # amd64 build
  2. wget https://github.com/PumpkinSeed/sqlfuzz/releases/download/{RELEASE}/sqlfuzz_linux_amd64 -O /usr/local/bin/sqlfuzz
  3. chmod +x /usr/local/bin/sqlfuzz
  4. # arm64 build
  5. wget https://github.com/PumpkinSeed/sqlfuzz/releases/download/{RELEASE}/sqlfuzz_linux_arm64 -O /usr/local/bin/sqlfuzz
  6. chmod +x /usr/local/bin/sqlfuzz

Windows

You can download the Windows build here

Build from source

  1. wget https://github.com/PumpkinSeed/sqlfuzz/archive/{RELEASE}.zip
  2. # unzip
  3. # cd into dir
  4. go install main.go

Usage

  1. # MySQL
  2. sqlfuzz -u username -p password -d database -h 127.0.0.1 -t table -n 100000 -w 100
  3. # Postgres
  4. sqlfuzz -u username -p password -d database -h 127.0.0.1 -t table -n 100000 -w 100 -P 5432 -D postgres

Flags

  • u: User for database connection
  • p: Password for database connection
  • d: Database name for database connection
  • h: Host for database connection
  • P: Port for database connection
  • D: Driver for database connection (supported: mysql, postgres)
  • t: Table for fuzzing
  • n: Number of rows to fuzz
  • w: Concurrent workers to work on fuzzing
  • s: Seed value for reproducibility of data

Package usage

TODO: Write package