• Stars
    star
    158
  • Rank 237,131 (Top 5 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created about 4 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple SQL table fuzzing

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

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

Linux

# amd64 build
wget https://github.com/PumpkinSeed/sqlfuzz/releases/download/{RELEASE}/sqlfuzz_linux_amd64 -O /usr/local/bin/sqlfuzz
chmod +x /usr/local/bin/sqlfuzz

# arm64 build
wget https://github.com/PumpkinSeed/sqlfuzz/releases/download/{RELEASE}/sqlfuzz_linux_arm64 -O /usr/local/bin/sqlfuzz
chmod +x /usr/local/bin/sqlfuzz

Windows

You can download the Windows build here

Build from source

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

Usage

# MySQL
sqlfuzz -u username -p password -d database -h 127.0.0.1 -t table -n 100000 -w 100

# Postgres
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

More Repositories

1

fakeit

Fake data generator library with 130+ functions written in Rust
Rust
152
star
2

structs

Golang struct operations.
Go
24
star
3

slog-context

slog: Context handler
Go
22
star
4

cage

Simple library to catch stdout/stderr in Go
Go
16
star
5

oss-standard

Maintainability guidelines of Open-Source Software development
10
star
6

simplerand

Simple and fast random number generator based on linear congruential generators
Rust
9
star
7

ethock

Lightweight Ethereum JSON RPC Mock written in Rust
Rust
8
star
8

errors

Simple and efficient error package
Go
7
star
9

kcs

Command-line tool collects set of example usages of kubectl, searchable
Go
6
star
10

bucket

[DEPRECATED] Optimized data structure framework for Couchbase specialized on one bucket usage
Go
6
star
11

transferwise-spending-report

Transferwise spending report built on top of Transferwise's API
Vue
5
star
12

adventure-of-golang

This repository a set of Go example which helped me understand golang
Go
4
star
13

json

This repository moved and maintained here: https://github.com/infiniteloopcloud/json
Go
4
star
14

netrel

Internet reliability check - CLI tool
Go
4
star
15

adventure-of-rust

Adventure of rust
Rust
4
star
16

eip55-rs

Rust implementation of EIP-55
Rust
3
star
17

ptr

Pointer referencer, dereferencer library
Go
3
star
18

iif

iif file format exporter
Go
3
star
19

dcrypto

Simple extendable crypto package written in Dart
Dart
3
star
20

npc

RPC framework for NSQ
Go
2
star
21

htmltopdf

Go
2
star
22

heimdall

The Vigilant Guardian of Data
Go
2
star
23

bob64

Interactive cli base64 encoder
Go
2
star
24

invoker

Run pre-defined commands inside your container/containers
Go
2
star
25

solc-rhel

Script installs the original Solidity compiler solc
Shell
2
star
26

chrono-parser

Date, time parser in any format
Rust
2
star
27

reflection

Golang reflection helper
Go
1
star
28

apache-log-analyzer

This is NOT a fully featured log analyser, rather a single-purpose script
Rust
1
star
29

incrmntr

Distributed counter based on Couchbase
Go
1
star
30

locker

A distributed lock service client for etcd
Go
1
star
31

placeholder

Placeholder service keep up the docker container without resource usage
Dockerfile
1
star
32

mysql-to-elasticsearch

This is a small golang tool which is load the mysql content into Elasticsearch for improving search results.
Go
1
star
33

nodejs-service-poc

PoC of service oriented domain design
JavaScript
1
star
34

tunnel

Independent tunnel between go service
Go
1
star
35

pvsh-go

Go implementation of Publicly Verifiable Secret sHaring (PVSH) algorithm
Go
1
star
36

npvdkgrs-go

WIP - Go implementation of the non-interactive publicly verifiable distributed key generation and resharing algorithm over BLS12-381
Go
1
star
37

paraswap-rs

[WARNING -> WIP] Rust library for Paraswap.io
Rust
1
star
38

datamove

Migrate data easily
Go
1
star
39

passwords

CLI password management system with strong encryption
Go
1
star
40

gorlfriend

GOrlfriend is an alternative go cli tool which behave as a girlfriend, just a joke anyway.
Go
1
star
41

docker-clean

Cleans up the docker
Go
1
star