vulnerabilities

package
v0.0.0-...-7d29f3a Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Modules = map[string]func([]byte) (VulnResults, error){
	"XSS":     XSS,
	"SQLI":    SQLI,
	"CMDEXEC": CMDEXEC,
	"LFI":     LFI,
}

Modules contains a map of the currently available analysis functions. its exported so the scanner can print what functions exist more dynamically. Update this if you add a new analysis module to have it run.

Functions

func ZipScan

func ZipScan(ctx context.Context, zipPath string, fileResults *Results) error

ZipScan opens zip files, finds PHP files and hands them over to vulnerability modules for bug hunting.

Types

type Results

type Results struct {
	Plugin  string
	Modules map[string][]VulnResults
}

Results is a struct for storing the results of every vulnerable file that was scanned within a plugins archive

type VulnResults

type VulnResults struct {
	File    string
	Matches []string
}

VulnResults type is for each vuln module to output its results to. Each one is appended to the files "Results" object

func CMDEXEC

func CMDEXEC(content []byte) (VulnResults, error)

CMDEXEC is the function that searches PHP code for common RCE vulnerability patterns

func LFI

func LFI(content []byte) (VulnResults, error)

LFI is the function that searches PHP code for common Local File Inclusion vulnerability patterns

func SQLI

func SQLI(content []byte) (VulnResults, error)

SQLI is the SQL injection module that will scan a php file for SQLi vulns

func XSS

func XSS(content []byte) (VulnResults, error)

XSS is the XSS module that will scan a php file for XSS vulns

Jump to

Keyboard shortcuts

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