core

package
v0.0.0-...-2ef0b57 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: BSD-3-Clause Imports: 24 Imported by: 2

Documentation

Overview

Package core contains basic utility functions.

Index

Constants

View Source
const (
	Name    = "necrobrowser"
	Version = "0.1"
	Author  = "antisnatchor & ohpe"
)
View Source
const (
	ChromeRemotePort    = "9222"
	ListeningIP         = "127.0.0.1"
	DockerClientVersion = "1.39"
)
View Source
const (
	AuthToken = "ada9f7b8-6e6c-4884-b2a3-ea757c1eb617"
)

Variables

This section is empty.

Functions

func CheckLoot

func CheckLoot(path string) (isWritable bool, err error)

CheckLoot checks the path is writable

func Debug

func Debug(params ...string)

func GetZombie

func GetZombie(name string, target zombie.Target, options Options) (z zombie.Zombie, err error)

func GetZombieLootPath

func GetZombieLootPath(loot string, tag string) string

func InitDocker

func InitDocker(dockerImage string) error

func IsValidZombie

func IsValidZombie(name string) bool

func PullImage

func PullImage(image string) error

Types

type ChromeTarget

type ChromeTarget struct {
	Description          string `json:"description"`
	DevtoolsFrontendUrl  string `json:"devtoolsFrontendUrl"`
	ID                   string `json:"id"`
	Title                string `json:"title"`
	Type                 string `json:"type"`
	URL                  string `json:"url"`
	WebSocketDebuggerUrl string `json:"webSocketDebuggerUrl"`
}

type Container

type Container struct {
	Context context.Context
	Cancel  context.CancelFunc

	Name        string
	Image       string
	LocalPort   string
	PublicPort  string
	IP          string
	Target      ChromeTarget
	MounthPaths []string
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(name string, imageName string, exposedPort string, loot string) (d *Container, err error)

func (*Container) Run

func (d *Container) Run() (err error)

Run starts a Docker Container

type Options

type Options struct {
	Debug    *bool
	Headless *bool

	DockerImage *string
	UserAgent   *string
	AuthToken   *string

	ListeningAddress *string
	ListeningPort    *string

	LootPath string
}

func ParseOptions

func ParseOptions() (Options, error)

Jump to

Keyboard shortcuts

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