Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Yara-Rules/yara-endpoint
/ functions
Functions
127 in github.com/Yara-Rules/yara-endpoint
⨍
Functions
127
◇
Types & classes
35
↓ 45 callers
Method
C
(c string)
server/database/database.go:43
↓ 12 callers
Method
sendAndPrintMsg
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 callers
Method
sendAndReceive
sendAndReceive sends the message to the Yara-Endpoint server. Moreover it populates `msg` with the response data.
client/client.go:115
↓ 5 callers
Method
Close
Close closes the connection
server/server.go:48
↓ 4 callers
Function
prepareErrMsg
(msg string, ymsg []yara.CompilerMessage)
server/router/api/rules_crud.go:160
↓ 3 callers
Method
checkGetRulesErr
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 callers
Method
checkMsgErr
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 callers
Method
checkMsgErr
checkMsgErr checks whether the message has an error
server/server.go:309
↓ 3 callers
Method
checkScanErr
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 callers
Method
checkYaraCompilerErr
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 callers
Method
checkYaraRulesErr
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 callers
Function
getData
(uri)
server/public/js/yara-endpoint.js:503
↓ 3 callers
Function
loadListOfAssets
(event)
server/public/js/yara-endpoint.js:79
↓ 3 callers
Function
loadRules
(event)
server/public/js/yara-endpoint.js:207
↓ 3 callers
Function
newULID
newULID generates a new ULID
server/server.go:464
↓ 3 callers
Function
newULID
()
server/router/api/routes.go:41
↓ 3 callers
Method
saveErr
saveErr saves the error in the DB
server/server.go:324
↓ 3 callers
Method
saveResult
saveResult saves the command's result into DB
server/server.go:337
↓ 3 callers
Method
validateMsgFields
validateMsgFields validates the minimal values that are needed from server messages
client/client.go:212
↓ 2 callers
Method
NewDataStore
()
server/database/database.go:34
↓ 2 callers
Method
RegisterEndpoint
RegisterEndpoint performs the registration
client/client.go:519
↓ 2 callers
Method
ScanFile
ScanFile performs a scan file command
client/client.go:333
↓ 2 callers
Function
checkErr
checkErr checks whether error exist and quits
server/server.go:471
↓ 2 callers
Method
checkFileExistErr
checkFileExistErr checks whether a file exist If file does not exist a error message is sent to the server.
client/client.go:268
↓ 2 callers
Method
extractTask
extractTask extract the task to be send it to the server
server/server.go:415
↓ 2 callers
Function
loadTasks
(event)
server/public/js/yara-endpoint.js:337
↓ 2 callers
Method
updateTaskStatus
updateTaskStatus updates the task status
server/server.go:451
↓ 2 callers
Function
validRule
(rule string)
server/router/api/rules_crud.go:144
↓ 1 callers
Method
Accept
Accept accepts an input connection
server/server.go:53
↓ 1 callers
Method
Close
()
server/database/database.go:47
↓ 1 callers
Method
Connect
Connect bind the server to a TCP address:port defined in the configuration
server/server.go:39
↓ 1 callers
Method
Handle
(status int, title string, err error)
server/context/context.go:16
↓ 1 callers
Method
HandleClient
HandleClient this is the main handler function, here is where all the action happens
server/server.go:65
↓ 1 callers
Method
IsRegistered
IsRegistered checks whether the Endpoint is registered or not. It returns the configuration either fill it up or empty.
client/client.go:126
↓ 1 callers
Function
NewClient
NewClient returns a new empty Yara-Endpoint client.
client/client.go:44
↓ 1 callers
Function
NewServer
NewServer returns an new empty server
server/server.go:34
↓ 1 callers
Method
Ping
Ping performs a ping command
client/client.go:508
↓ 1 callers
Method
ScanDir
ScanDir performs a scan directory command
client/client.go:381
↓ 1 callers
Method
ScanPID
ScanPID performs a scan PID command
client/client.go:446
↓ 1 callers
Function
checkErr
(err error)
server/config/config.go:40
↓ 1 callers
Method
close
close terminates a connection with Yara-Endpoint server.
client/client.go:64
↓ 1 callers
Method
connect
connect establishes a connection to a especific Yara-Endpoint server.
client/client.go:51
↓ 1 callers
Method
extractRules
extractRules gets the needed rules for the task
server/server.go:294
↓ 1 callers
Function
getAssetsList
()
server/public/js/yara-endpoint.js:491
↓ 1 callers
Function
getCommandsList
()
server/public/js/yara-endpoint.js:499
↓ 1 callers
Function
getDashboard
()
server/public/js/yara-endpoint.js:49
↓ 1 callers
Function
getListOfAssets
()
server/public/js/yara-endpoint.js:194
↓ 1 callers
Function
getReports
()
server/public/js/yara-endpoint.js:475
↓ 1 callers
Function
getRuleNames
(db *mgo.Database, listRules []bson.ObjectId)
server/router/api/report_crud.go:98
↓ 1 callers
Function
getRules
()
server/public/js/yara-endpoint.js:325
↓ 1 callers
Function
getRulesId
(ctx *context.Context, ruleList []string)
server/router/api/tasks_crud.go:170
↓ 1 callers
Function
getRulesList
()
server/public/js/yara-endpoint.js:495
↓ 1 callers
Function
getTasks
()
server/public/js/yara-endpoint.js:443
↓ 1 callers
Function
lookupHostname
(endpoints []models.Endpoint, ulid string)
server/router/api/report_crud.go:89
↓ 1 callers
Function
parseDateTime
(dt string)
server/router/api/tasks_crud.go:205
↓ 1 callers
Method
pendingJobs
pendingJobs tells whether there is a pending job or not
server/server.go:281
↓ 1 callers
Function
printVerion
()
client/main.go:51
↓ 1 callers
Function
printVerion
()
server/main.go:40
↓ 1 callers
Method
processPing
processPing process a ping command. This is: - Update the asset - Look for pending taks - Send task or ping
server/server.go:147
↓ 1 callers
Method
processRegister
processRegister process the registration
server/server.go:121
↓ 1 callers
Method
processScanDir
processScanDir process the response of the ScanDir command
server/server.go:226
↓ 1 callers
Method
processScanFile
processScanFile process the response of the ScanFile command.
server/server.go:205
↓ 1 callers
Method
processScanPID
processScanPID process the response of the ScanPID command
server/server.go:247
↓ 1 callers
Function
randStringBytes
(n int)
server/router/init.go:56
↓ 1 callers
Method
receiveWithMessage
receiveWithMessage gets a response message from the Yara-Endpoint server. Moreover it populates `msg` with previous data.
client/client.go:101
↓ 1 callers
Method
register
register performs the registation and it returns the message received from the server.
client/client.go:146
↓ 1 callers
Method
saveConfig
saveConfig writes the configuration to a file
client/client.go:170
↓ 1 callers
Method
send
send sends the message to the Yara-Endpoint server.
client/client.go:72
↓ 1 callers
Method
sendErrorMsg
sendErrorMsg this is a wrapper to send error messages
server/server.go:268
↓ 1 callers
Method
sendPing
sendPing performs a propper ping, creates a new message with the ping command
client/client.go:198
↓ 1 callers
Function
setLog
()
client/main.go:130
↓ 1 callers
Function
setLog
()
server/main.go:103
↓ 1 callers
Method
taskPicker
taskPicker select one of the pending task
server/server.go:166
↓ 1 callers
Function
updateEndpointsList
(obj)
server/public/js/yara-endpoint.js:39
↓ 1 callers
Function
updateListOfAssets
(obj)
server/public/js/yara-endpoint.js:87
↓ 1 callers
Function
updateOnline
(online, total)
server/public/js/yara-endpoint.js:16
↓ 1 callers
Function
updateOrInsert
(ctx *context.Context, scs []models.Schedule)
server/router/api/tasks_crud.go:181
↓ 1 callers
Function
updateResults
(obj)
server/public/js/yara-endpoint.js:463
↓ 1 callers
Function
updateRules
(obj)
server/public/js/yara-endpoint.js:215
↓ 1 callers
Function
updateTasks
(obj)
server/public/js/yara-endpoint.js:345
↓ 1 callers
Function
validateFlags
()
client/main.go:116
↓ 1 callers
Function
validateFlags
()
server/main.go:97
Function
Assets
(ctx *context.Context)
server/router/api/assets_crud.go:13
Function
Commands
(ctx *context.Context)
server/router/api/routes.go:33
Function
Contexter
()
server/context/context.go:32
Function
Dashboard
(ctx *context.Context)
server/router/api/routes.go:16
Function
DeleteAsset
(ctx *context.Context)
server/router/api/assets_crud.go:81
Function
DeleteRule
(ctx *context.Context)
server/router/api/rules_crud.go:108
Function
DeleteTask
(ctx *context.Context)
server/router/api/tasks_crud.go:124
Function
EditAsset
(ctx *context.Context, newAsset EditAssetForm)
server/router/api/assets_crud.go:46
Function
EditRule
(ctx *context.Context, newRule EditRuleForm)
server/router/api/rules_crud.go:59
Function
ErrorDelete
(ctx *context.Context)
server/router/api/errors_crud.go:16
Function
GetDb
(sess *mgo.Session)
server/database/database.go:56
Function
GetSession
()
server/database/database.go:51
Function
Index
(ctx *context.Context)
server/router/api/routes.go:12
Function
LoadConfig
(c string)
server/config/config.go:33
Function
NewAsset
(ctx *context.Context, newAsset NewAssetForm)
server/router/api/assets_crud.go:19
Function
NewDataStore
(c *config.Config)
server/database/database.go:18
Function
NewMacaron
(version string)
server/router/init.go:18
Function
NewMessage
()
common/message/message.go:22
next →
1–100 of 127, ranked by callers