execution

package
v0.0.0-...-815c261 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(dest string, src string)

Append append content to a file

func Base

func Base(raw string) string

Base just print testing

func BeautifyCSV

func BeautifyCSV(filename string, dest string)

func BeautifyHeaders

func BeautifyHeaders(res libs.Response) string

BeautifyHeaders beautify headers

func BeautifyRequest

func BeautifyRequest(req libs.Request) string

BeautifyRequest beautify request

func BeautifyResponse

func BeautifyResponse(res libs.Response) string

BeautifyResponse beautify response

func BuildClient

func BuildClient(token string, retry int) *resty.Client

BuildClient build base HTTP client

func ChunkFileByPart

func ChunkFileByPart(source string, chunk int) [][]string

ChunkFileByPart chunk file to multiple part

func ChunkFileBySize

func ChunkFileBySize(source string, chunk int) [][]string

ChunkFileBySize chunk file to multiple part

func CleanAmass

func CleanAmass(filename string, output string)

CleanAmass get IP range and ASN from Amass result

func CleanArjun

func CleanArjun(src string, dest string)

CleanArjun clean output of Arjun

func CleanFFUFJson

func CleanFFUFJson(filename string, dest string)

CleanFFUFJson get to get formatted report

func CleanGoBuster

func CleanGoBuster(src string, output string)

CleanGoBuster clean output for gobuster

func CleanJSONDnsx

func CleanJSONDnsx(filename string, dest string)

CleanJSONDnsx get to get formatted report

func CleanJSONHttpx

func CleanJSONHttpx(filename string, dest string)

CleanJSONHttpx get to get formatted report

func CleanMassdns

func CleanMassdns(filename string, output string)

CleanMassdns clean result of massdns to get IP address

func CleanRustScan

func CleanRustScan(src string, dest string)

CleanRustScan make rustscan data to flat format ip:port

func CleanSWebanalyze

func CleanSWebanalyze(filename string, output string)

CleanSWebanalyze get to get formatted report

func CleanWebanalyze

func CleanWebanalyze(filename string, output string, sum string)

CleanWebanalyze get to get formatted report

func Cleaning

func Cleaning(folder string, reports []string)

Cleaning the execution directory

func CloneRepo

func CloneRepo(url string, dest string, options libs.Options) error

CloneRepo clone the repo

func Compress

func Compress(dest string, src string)

Compress sort content of a file

func Copy

func Copy(src string, dest string)

Copy append content to a file

func CreateGitlabRepo

func CreateGitlabRepo(repo string, tag string, options libs.Options) string

CreateGitlabRepo create gitlab repo

func Decompress

func Decompress(dest string, src string)

Decompress sort content of a file

func DeleteFile

func DeleteFile(filename string)

DeleteFile delete file

func DeleteFolder

func DeleteFolder(path string)

DeleteFolder delete entire folder

func DeleteRepo

func DeleteRepo(repo string, pid int, options libs.Options)

DeleteRepo delete repo by id or name

func DiffCompare

func DiffCompare(src string, dest string, output string, options libs.Options)

DiffCompare run git diff command

func DiffNoti

func DiffNoti(arguments []otto.Value, options libs.Options)

DiffNoti send to notification based on diff content

func DownloadFile

func DownloadFile(options libs.Options, downloadURL string, dest string)

DownloadFile get file from CDN URL

func DownloadFromS3

func DownloadFromS3(options libs.Options, source string, dest string, bucket string)

DownloadFromS3 upload local file to s3 bucket

func Echo

func Echo(script string)

Echo just print testing

func ErrPrintf

func ErrPrintf(block string, content string)

ErrPrintf print out some string

func Execution

func Execution(cmd string, options libs.Options) (string, error)

Execution Run a command

func ExtractTarGz

func ExtractTarGz(filename string) error

func GenNucleiReport

func GenNucleiReport(opt libs.Options, src string, dest string, templateFile string)

func GetEmoji

func GetEmoji() string

GetEmoji get random emoji

func GetIcon

func GetIcon() string

GetIcon get random emoji

func GitAuthSample

func GitAuthSample()

This example shows how to create a client with username and password.

func GitClone

func GitClone(url string, dest string, forced bool, options libs.Options)

GitClone update latest UI and Plugins from default repo

func GitDiff

func GitDiff(dest string, output string, history string, options libs.Options)

GitDiff run git diff command

func GitlabAuth

func GitlabAuth(options libs.Options) (*gitlab.Client, error)

GitlabAuth do authentication with gitlab

func IsWildCard

func IsWildCard(domain string) bool

IsWildCard check if target is wildcard or not

func JustSend

func JustSend(url string, client *resty.Client) (res libs.Response, err error)

JustSend just sending request

func ListAllOsmedeusProcess

func ListAllOsmedeusProcess() (pids []int)

func ListProjects

func ListProjects(gitUser int, options libs.Options)

ListProjects delete repo by id or name

func LoopGitDiff

func LoopGitDiff(src string, output string, options libs.Options)

LoopGitDiff like GitDiff but take input as a file

func ParseBurpRequest

func ParseBurpRequest(raw string) string

ParseBurpRequest parse burp style request

func ParseResponse

func ParseResponse(resp resty.Response) (res libs.Response)

ParseResponse field to Response

func PrintCSV

func PrintCSV(filename string)

func Printf

func Printf(block string, content string)

Printf print out some string

func PullResult

func PullResult(storageFolder string, options libs.Options)

PullResult pull latest data from result repo

func PushResult

func PushResult(storageFolder string, commitMess string, options libs.Options)

PushResult push result to git repo

func RemoteExec

func RemoteExec(command string, options libs.Options)

RemoteExec run command on a remote client

func RemoteExecSchedule

func RemoteExecSchedule(command string, schedule string, options libs.Options)

RemoteExecSchedule run command on a remote client with schedule

func RemoteLogin

func RemoteLogin(username string, password string, URL string, options libs.Options)

RemoteLogin get to get JWT to run

func RemoteUpload

func RemoteUpload(src string, options libs.Options)

RemoteUpload upload data to remote url

func ReportNoti

func ReportNoti(arguments []otto.Value, options libs.Options)

ReportNoti send to notification when module is done with report file

func SendAttachment

func SendAttachment(messType string, messContent string, options libs.Options) error

SendAttachment send attach message to specific channel

func SendFile

func SendFile(filename string, channel string, options libs.Options) error

SendFile send file to specific channel

func SendGET

func SendGET(token string, url string) (libs.Response, error)

func SlackWebHook

func SlackWebHook(webhookURL string, content string) error

SlackWebHook send message with webhook

func Sleep

func Sleep(raw string)

Sleep just print testing

func Sort

func Sort(src string)

Sort sort content of a file

func SortU

func SortU(src string)

SortU sort content of a file

func SplitFile

func SplitFile(kind string, arguments []otto.Value)

SplitFile split file into multiple file

func StatusNoti

func StatusNoti(notiType string, options libs.Options)

StatusNoti send to when module is done with report file

func StripName

func StripName(raw string) string

StripName strip a file name

func TeleSendFile

func TeleSendFile(options libs.Options, filename string, channel string) error

TeleSendFile send message to telegram

func TeleSendMess

func TeleSendMess(options libs.Options, content string, channel string, wrap bool) error

TeleSendMess send message to telegram

func Unique

func Unique(filename string)

Unique unique content of a file and remove blank line

func UploadToS3

func UploadToS3(options libs.Options, source string, bucket string)

UploadToS3 upload local file to s3 bucket

func ValidGitURL

func ValidGitURL(raw string) bool

ValidGitURL simple validate git repo

func WebHookSendAttachment

func WebHookSendAttachment(options libs.Options, messType string, messContent string) error

WebHookSendAttachment send attach message to specific channel

Types

type OSProcess

type OSProcess struct {
	PID     int    `json:"pid"`
	Command string `json:"command"`
}

func GetOsmProcess

func GetOsmProcess(processName string) []OSProcess

type Vulnerability

type Vulnerability struct {
	SignID     string
	SignPath   string
	URL        string
	Risk       string
	Confidence string
	Request    string
	ModalID    string

	ReportPath string
	ReportFile string

	Status string
	Length string
	Words  string
	Time   string
}

Jump to

Keyboard shortcuts

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