briskets / scyllago

Simple Go Module for the scylla.sh API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ScyllaGo

ScyllaGo is a very simple Go Module for the scylla.sh API

Getting Started

Installation

This assumes you already have a working Go environment, if not please see this page first.

go get github.com/0xjbb/scyllago

Usage

Import the package into your project.

import "github.com/0xjbb/scyllago"

Examples

Below is a simple example to get you started.

results, err := scyllago.Query("username:jb", 10, 0)

	if err != nil{
		log.Fatal(err)
	}

	for _, values := range results {
		fmt.Printf("%#v\n", values)
	}
results, err := scyllago.Query("username:jb", 10, 0)

	if err != nil{
		log.Fatal(err)
	}

	for _, values := range results {
		fmt.Println("Ip: ", values.Fields.Ip)
		fmt.Println("Username: ", values.Fields.Username)
		fmt.Println("Password: ", values.Fields.Password)
		fmt.Println("Domain: ", values.Fields.Domain)
		fmt.Println("Email: ", values.Fields.Email)
		fmt.Println("Passhash: ", values.Fields.Passhash)
	}

Contribute

There's not much to do but if you find a bug or whatever and feel like fixing it then make a pull request.

About

Simple Go Module for the scylla.sh API


Languages

Language:Go 100.0%