Documentation ¶
Index ¶
- Variables
- func AgentFileBrowsers(location string)
- func CheckTime(liveHours string)
- func Download(data string)
- func ErrHandling(err string)
- func FirstTime(key string) []byte
- func Kill()
- func KillNetList(tcpL net.Listener, l *PivotList)
- func SaveFile(data []byte, loc string, fileName string) string
- func Shell(command []string, r bool) []byte
- func ShouldIDie(eol string)
- func SleepDelay(delay float64, jitter float64)
- func Upload(location string, fileName string, file string)
- type AgentJob
- type Output
- type PivotJobHolder
- type PivotJobs
- type PivotList
Constants ¶
This section is empty.
Variables ¶
var AllOutput = Output{Mutex: sync.RWMutex{}, List: map[int]*agentscommon.JobOutput{}}
AllOutput is a global variable that holds the jobOutputs
var AllPivotJobs = PivotJobHolder{Mutex: sync.RWMutex{}, List: map[string]*PivotJobs{}}
AllPivotJobs is used to hold all of the jobs needing to be passed down the link
var JobCount int
JobCount is a global variable containing the number of jobs
Functions ¶
func AgentFileBrowsers ¶
func AgentFileBrowsers(location string)
AgentFileBrowsers will send back every file and directory in the path location specified
func CheckTime ¶
func CheckTime(liveHours string)
CheckTime sees if the current time is between the allowed hours, if not sleep until it is
func Download ¶
func Download(data string)
Download takes in the file to be sent back to the server This should be edited to just add to job output. results should be {filename: "blah", filedata: "0x40,0x32"}
func KillNetList ¶
KillNetList will kill of the listener
func SleepDelay ¶
SleepDelay sleeps between each loop of the agent with a jitter % to make it less patterned
Types ¶
type AgentJob ¶
type AgentJob struct { AgentKey string //Key of the agent to create the job for JobType string //Type of job Arguments []string //Job arguments adhering to the above formats }
AgentJob is the standard struct for all jobs
type Output ¶
type Output struct { Mutex sync.RWMutex List map[int]*agentscommon.JobOutput }
Output is the struct for a list of all output
type PivotJobHolder ¶
PivotJobHolder is used to hold of the pivot jobs that agents will request back