MCPcopy Create free account

hub / github.com/Yara-Rules/yara-endpoint / functions

Functions127 in github.com/Yara-Rules/yara-endpoint

↓ 45 callersMethodC
(c string)
server/database/database.go:43
↓ 12 callersMethodsendAndPrintMsg
sendAndPrintMsg sends a message to the server. If found error either sending or receiving a message, then log the error
client/client.go:324
↓ 6 callersMethodsendAndReceive
sendAndReceive sends the message to the Yara-Endpoint server. Moreover it populates `msg` with the response data.
client/client.go:115
↓ 5 callersMethodClose
Close closes the connection
server/server.go:48
↓ 4 callersFunctionprepareErrMsg
(msg string, ymsg []yara.CompilerMessage)
server/router/api/rules_crud.go:160
↓ 3 callersMethodcheckGetRulesErr
checkGetRulesErr checks whether error occur when getting the compiled rules from Go-Yara compiler If there is an error a error message is sent to the
client/client.go:254
↓ 3 callersMethodcheckMsgErr
checkMsgErr checks whether empty message has been received from the server If empty message or EOF has been received, a error message is sent to the s
client/client.go:296
↓ 3 callersMethodcheckMsgErr
checkMsgErr checks whether the message has an error
server/server.go:309
↓ 3 callersMethodcheckScanErr
checkScanErr checks whether a scan command failed If scan command has failed a error message is sent to the server.
client/client.go:282
↓ 3 callersMethodcheckYaraCompilerErr
checkYaraCompilerErr checks whether error occur when compiling Yara rules. If there is an error a error message is sent to the server.
client/client.go:240
↓ 3 callersMethodcheckYaraRulesErr
checkYaraRulesErr checks whether error occur while compiling rules from Go-Yara compiler If there is an error a error message is sent to the server.
client/client.go:310
↓ 3 callersFunctiongetData
(uri)
server/public/js/yara-endpoint.js:503
↓ 3 callersFunctionloadListOfAssets
(event)
server/public/js/yara-endpoint.js:79
↓ 3 callersFunctionloadRules
(event)
server/public/js/yara-endpoint.js:207
↓ 3 callersFunctionnewULID
newULID generates a new ULID
server/server.go:464
↓ 3 callersFunctionnewULID
()
server/router/api/routes.go:41
↓ 3 callersMethodsaveErr
saveErr saves the error in the DB
server/server.go:324
↓ 3 callersMethodsaveResult
saveResult saves the command's result into DB
server/server.go:337
↓ 3 callersMethodvalidateMsgFields
validateMsgFields validates the minimal values that are needed from server messages
client/client.go:212
↓ 2 callersMethodNewDataStore
()
server/database/database.go:34
↓ 2 callersMethodRegisterEndpoint
RegisterEndpoint performs the registration
client/client.go:519
↓ 2 callersMethodScanFile
ScanFile performs a scan file command
client/client.go:333
↓ 2 callersFunctioncheckErr
checkErr checks whether error exist and quits
server/server.go:471
↓ 2 callersMethodcheckFileExistErr
checkFileExistErr checks whether a file exist If file does not exist a error message is sent to the server.
client/client.go:268
↓ 2 callersMethodextractTask
extractTask extract the task to be send it to the server
server/server.go:415
↓ 2 callersFunctionloadTasks
(event)
server/public/js/yara-endpoint.js:337
↓ 2 callersMethodupdateTaskStatus
updateTaskStatus updates the task status
server/server.go:451
↓ 2 callersFunctionvalidRule
(rule string)
server/router/api/rules_crud.go:144
↓ 1 callersMethodAccept
Accept accepts an input connection
server/server.go:53
↓ 1 callersMethodClose
()
server/database/database.go:47
↓ 1 callersMethodConnect
Connect bind the server to a TCP address:port defined in the configuration
server/server.go:39
↓ 1 callersMethodHandle
(status int, title string, err error)
server/context/context.go:16
↓ 1 callersMethodHandleClient
HandleClient this is the main handler function, here is where all the action happens
server/server.go:65
↓ 1 callersMethodIsRegistered
IsRegistered checks whether the Endpoint is registered or not. It returns the configuration either fill it up or empty.
client/client.go:126
↓ 1 callersFunctionNewClient
NewClient returns a new empty Yara-Endpoint client.
client/client.go:44
↓ 1 callersFunctionNewServer
NewServer returns an new empty server
server/server.go:34
↓ 1 callersMethodPing
Ping performs a ping command
client/client.go:508
↓ 1 callersMethodScanDir
ScanDir performs a scan directory command
client/client.go:381
↓ 1 callersMethodScanPID
ScanPID performs a scan PID command
client/client.go:446
↓ 1 callersFunctioncheckErr
(err error)
server/config/config.go:40
↓ 1 callersMethodclose
close terminates a connection with Yara-Endpoint server.
client/client.go:64
↓ 1 callersMethodconnect
connect establishes a connection to a especific Yara-Endpoint server.
client/client.go:51
↓ 1 callersMethodextractRules
extractRules gets the needed rules for the task
server/server.go:294
↓ 1 callersFunctiongetAssetsList
()
server/public/js/yara-endpoint.js:491
↓ 1 callersFunctiongetCommandsList
()
server/public/js/yara-endpoint.js:499
↓ 1 callersFunctiongetDashboard
()
server/public/js/yara-endpoint.js:49
↓ 1 callersFunctiongetListOfAssets
()
server/public/js/yara-endpoint.js:194
↓ 1 callersFunctiongetReports
()
server/public/js/yara-endpoint.js:475
↓ 1 callersFunctiongetRuleNames
(db *mgo.Database, listRules []bson.ObjectId)
server/router/api/report_crud.go:98
↓ 1 callersFunctiongetRules
()
server/public/js/yara-endpoint.js:325
↓ 1 callersFunctiongetRulesId
(ctx *context.Context, ruleList []string)
server/router/api/tasks_crud.go:170
↓ 1 callersFunctiongetRulesList
()
server/public/js/yara-endpoint.js:495
↓ 1 callersFunctiongetTasks
()
server/public/js/yara-endpoint.js:443
↓ 1 callersFunctionlookupHostname
(endpoints []models.Endpoint, ulid string)
server/router/api/report_crud.go:89
↓ 1 callersFunctionparseDateTime
(dt string)
server/router/api/tasks_crud.go:205
↓ 1 callersMethodpendingJobs
pendingJobs tells whether there is a pending job or not
server/server.go:281
↓ 1 callersFunctionprintVerion
()
client/main.go:51
↓ 1 callersFunctionprintVerion
()
server/main.go:40
↓ 1 callersMethodprocessPing
processPing process a ping command. This is: - Update the asset - Look for pending taks - Send task or ping
server/server.go:147
↓ 1 callersMethodprocessRegister
processRegister process the registration
server/server.go:121
↓ 1 callersMethodprocessScanDir
processScanDir process the response of the ScanDir command
server/server.go:226
↓ 1 callersMethodprocessScanFile
processScanFile process the response of the ScanFile command.
server/server.go:205
↓ 1 callersMethodprocessScanPID
processScanPID process the response of the ScanPID command
server/server.go:247
↓ 1 callersFunctionrandStringBytes
(n int)
server/router/init.go:56
↓ 1 callersMethodreceiveWithMessage
receiveWithMessage gets a response message from the Yara-Endpoint server. Moreover it populates `msg` with previous data.
client/client.go:101
↓ 1 callersMethodregister
register performs the registation and it returns the message received from the server.
client/client.go:146
↓ 1 callersMethodsaveConfig
saveConfig writes the configuration to a file
client/client.go:170
↓ 1 callersMethodsend
send sends the message to the Yara-Endpoint server.
client/client.go:72
↓ 1 callersMethodsendErrorMsg
sendErrorMsg this is a wrapper to send error messages
server/server.go:268
↓ 1 callersMethodsendPing
sendPing performs a propper ping, creates a new message with the ping command
client/client.go:198
↓ 1 callersFunctionsetLog
()
client/main.go:130
↓ 1 callersFunctionsetLog
()
server/main.go:103
↓ 1 callersMethodtaskPicker
taskPicker select one of the pending task
server/server.go:166
↓ 1 callersFunctionupdateEndpointsList
(obj)
server/public/js/yara-endpoint.js:39
↓ 1 callersFunctionupdateListOfAssets
(obj)
server/public/js/yara-endpoint.js:87
↓ 1 callersFunctionupdateOnline
(online, total)
server/public/js/yara-endpoint.js:16
↓ 1 callersFunctionupdateOrInsert
(ctx *context.Context, scs []models.Schedule)
server/router/api/tasks_crud.go:181
↓ 1 callersFunctionupdateResults
(obj)
server/public/js/yara-endpoint.js:463
↓ 1 callersFunctionupdateRules
(obj)
server/public/js/yara-endpoint.js:215
↓ 1 callersFunctionupdateTasks
(obj)
server/public/js/yara-endpoint.js:345
↓ 1 callersFunctionvalidateFlags
()
client/main.go:116
↓ 1 callersFunctionvalidateFlags
()
server/main.go:97
FunctionAssets
(ctx *context.Context)
server/router/api/assets_crud.go:13
FunctionCommands
(ctx *context.Context)
server/router/api/routes.go:33
FunctionContexter
()
server/context/context.go:32
FunctionDashboard
(ctx *context.Context)
server/router/api/routes.go:16
FunctionDeleteAsset
(ctx *context.Context)
server/router/api/assets_crud.go:81
FunctionDeleteRule
(ctx *context.Context)
server/router/api/rules_crud.go:108
FunctionDeleteTask
(ctx *context.Context)
server/router/api/tasks_crud.go:124
FunctionEditAsset
(ctx *context.Context, newAsset EditAssetForm)
server/router/api/assets_crud.go:46
FunctionEditRule
(ctx *context.Context, newRule EditRuleForm)
server/router/api/rules_crud.go:59
FunctionErrorDelete
(ctx *context.Context)
server/router/api/errors_crud.go:16
FunctionGetDb
(sess *mgo.Session)
server/database/database.go:56
FunctionGetSession
()
server/database/database.go:51
FunctionIndex
(ctx *context.Context)
server/router/api/routes.go:12
FunctionLoadConfig
(c string)
server/config/config.go:33
FunctionNewAsset
(ctx *context.Context, newAsset NewAssetForm)
server/router/api/assets_crud.go:19
FunctionNewDataStore
(c *config.Config)
server/database/database.go:18
FunctionNewMacaron
(version string)
server/router/init.go:18
FunctionNewMessage
()
common/message/message.go:22
next →1–100 of 127, ranked by callers