MCPcopy Create free account

hub / github.com/aitjcize/Overlord / functions

Functions651 in github.com/aitjcize/Overlord

↓ 3 callersFunctiongetRequestIP
(r *http.Request)
overlord/auth.go:315
↓ 3 callersFunctionnewWebsocketContext
newWebsocketContext create webSocketContext object.
overlord/overlord.go:111
↓ 2 callersMethodCheckConnection
(self)
py/ovl.py:1174
↓ 2 callersMethodCloseSockets
(self)
py/ghost.py:436
↓ 2 callersMethodExec
(self, command=None)
py/ovl.py:1644
↓ 2 callersMethodFromDict
(kw)
py/ovl.py:375
↓ 2 callersFunctionGetFileSha1
GetFileSha1 return the sha1sum of a file.
overlord/utils.go:33
↓ 2 callersFunctionGetMachineID
GetMachineID generates machine-dependent ID string for a machine. There are many ways to generate a machine ID: 1. /sys/class/dmi/id/product_uuid (onl
overlord/sysutils_linux.go:57
↓ 2 callersMethodGetMachineID
Generates machine-dependent ID string for a machine. There are many ways to generate a machine ID: Linux: 1. factory device_id 2.
py/ghost.py:528
↓ 2 callersMethodGetPid
(self)
py/ovl.py:436
↓ 2 callersFunctionGetProcessWorkingDirectory
GetProcessWorkingDirectory returns the current working directory of a process.
overlord/sysutils_linux.go:95
↓ 2 callersMethodGetStatus
(self)
py/ghost.py:1335
↓ 2 callersFunctionGetVersionDigest
Return the sha1sum of the current executing script.
py/ovl.py:101
↓ 2 callersFunctionGetenvInt
GetenvInt parse an integer from environment variable, and return default value when error.
overlord/utils.go:69
↓ 2 callersFunctionJWTAuthHeader
Return HTTP JWT auth header.
py/ovl.py:217
↓ 2 callersMethodKillSSHTunnel
(self)
py/ovl.py:1374
↓ 2 callersFunctionNewRPCCore
NewRPCCore creates the RPCCore object.
overlord/rpc.go:142
↓ 2 callersMethodParseRequests
ParseRequests parses a buffer from SpawnReaderRoutine into Request objects. The response message is automatically handled by the RPCCore by invoking t
overlord/rpc.go:260
↓ 2 callersMethodRegenerateJWTSecret
RegenerateJWTSecret generates a new JWT secret and updates it in the database
overlord/db.go:97
↓ 2 callersMethodRegister
()
overlord/ghost.go:1580
↓ 2 callersMethodReset
Reset all states for a new connection.
overlord/ghost.go:1632
↓ 2 callersMethodScanForTimeoutRequests
Scans for pending requests which have timed out. If any timed-out requests are discovered, their handler is called with the special response
py/ghost.py:1185
↓ 2 callersMethodSelectClient
(self, args=None, store=True)
py/ovl.py:1463
↓ 2 callersMethodSendMessage
SendMessage sends a message.
overlord/rpc.go:152
↓ 2 callersMethodSpawnReaderRoutine
SpawnReaderRoutine spawnes a goroutine that actively read from the socket. This function returns two channels. The first one is the channel that send
overlord/rpc.go:202
↓ 2 callersMethodStart
(self, lan_disc=False, rpc_server=False)
py/ghost.py:1419
↓ 2 callersMethodState
(self)
py/ovl.py:430
↓ 2 callersMethodStopConn
StopConn stops the connection and terminates the reader goroutine.
overlord/rpc.go:220
↓ 2 callersMethodTLSEnabled
Determine if TLS is enabled on given server address.
py/ghost.py:299
↓ 2 callersMethodUpgrade
(self)
py/ghost.py:321
↓ 2 callersMethodWaitReady
(self, timeout=10)
py/ovl.py:791
↓ 2 callersMethod_AdminAddUserToGroup
Add a user to a group.
py/ovl.py:2304
↓ 2 callersMethod_CalculateSize
(self)
py/ovl.py:252
↓ 2 callersMethod_FilterClients
(self, clients, prop_filters, mid=None)
py/ovl.py:1404
↓ 2 callersMethod_Fstat
Get file or directory status using the Overlord API. Args: path: The path to get status for. Returns: A dictionary containing fi
py/ovl.py:1749
↓ 2 callersMethod_GetJSON
(self, url)
py/ovl.py:439
↓ 2 callersMethod_PushSingle
(self, src, dst)
py/ovl.py:1894
↓ 2 callersMethod_ShellSockPath
(self, mid)
py/ovl.py:1530
↓ 2 callersMethod_build_file_entries
Helper to build FileEntry objects from pseudo file system structure.
py/ovl_unittest.py:63
↓ 2 callersFunctionaddRecord
(record)
apps/dashboard/src/stores/uploadProgressStore.js:15
↓ 2 callersFunctioncheckDatabaseInitialized
(dbPath string)
cmd/overlordd/main.go:105
↓ 2 callersMethodforwardLogcatOutput
ModeForward the logcat output to WebSocket.
overlord/conn_server.go:185
↓ 2 callersFunctiongetClientTerminals
(clientMid)
apps/dashboard/src/stores/terminalStore.js:18
↓ 2 callersFunctiongetCurrentUserHomeDir
getCurrentUserHomeDir gets the home directory for the current user on Linux
overlord/sysutils_linux.go:114
↓ 2 callersFunctiongetNextZIndex
()
apps/dashboard/src/stores/terminalStore.js:186
↓ 2 callersFunctiongetServiceCommand
getServiceCommand constructs the command line arguments for the service by filtering out the --install flag from os.Args
overlord/utils.go:164
↓ 2 callersFunctiongetUserShell
getUserShell returns the user's current shell, with fallback to /bin/bash
overlord/utils.go:152
↓ 2 callersMethodgetWebRoot
getWebRoot returns the absolute path to the webroot directory.
overlord/overlord.go:392
↓ 2 callersFunctioninstallBinaryToUserLocal
installBinaryToUserLocal installs the ghost binary to ~/.local/bin
overlord/utils.go:107
↓ 2 callersFunctionisGhostRunning
isGhostRunning checks if ghost is running by calling the RPC GetStatus method
overlord/utils.go:92
↓ 2 callersFunctionremoveRecord
(id)
apps/dashboard/src/stores/uploadProgressStore.js:20
↓ 2 callersMethodserveFileHTTP
Helper function for serving file and write it into response body.
overlord/overlord.go:661
↓ 2 callersFunctionsetVhVariable
()
apps/dashboard/src/main.js:13
↓ 2 callersMethodspawnAgentCommand
spawnAgentCommand is a helper function to eliminate duplicate code between terminal and shell handlers
overlord/overlord.go:571
↓ 2 callersMethodtlsEnabled
(addr string)
overlord/ghost.go:371
↓ 2 callersFunctionusage
()
cmd/overlordd/main.go:43
↓ 2 callersMethodwriteLogToWS
writeWebsocket is a helper function for written text to websocket in the correct format.
overlord/conn_server.go:125
↓ 1 callersMethodAddForward
(self, mid, remote, local, pid)
py/ovl.py:572
↓ 1 callersMethodAddToDownloadQueue
(self, ttyname, filename)
py/ghost.py:1342
↓ 1 callersMethodAddToDownloadQueue
AddToDownloadQueue adds a downloadInfo to the download queue
overlord/ghost.go:1743
↓ 1 callersMethodAdmin
Manage users and groups using the Overlord API.
py/ovl.py:2168
↓ 1 callersMethodAuthenticate
Authenticate authenticates a user with the provided username and password
overlord/auth.go:91
↓ 1 callersMethodCheckDaemon
(self)
py/ovl.py:1118
↓ 1 callersMethodClearRequests
ClearRequests clear all the requests.
overlord/rpc.go:322
↓ 1 callersMethodCloseWrite
()
overlord/conn_server.go:22
↓ 1 callersMethodConnect
(self, args)
py/ovl.py:1286
↓ 1 callersMethodCreateSymlink
CreateSymlink handles a request to create a symlink.
overlord/conn_server.go:533
↓ 1 callersFunctionDownloadFile
Initiate a client-initiated file download.
py/ghost.py:1477
↓ 1 callersFunctionDownloadFile
DownloadFile adds a file to the download queue, which would be pickup by the ghost control channel instance and perform download.
overlord/ghost.go:1939
↓ 1 callersFunctionForkToBackground
Fork process to run in background.
py/ghost.py:1469
↓ 1 callersMethodForward
(self, args)
py/ovl.py:2009
↓ 1 callersMethodFstat
Fstat handles a request to get the stat of a file.
overlord/conn_server.go:523
↓ 1 callersMethodGetCurrentUser
Gets the current user's username.
py/ghost.py:432
↓ 1 callersMethodGetFileSha1
(self, filename)
py/ghost.py:295
↓ 1 callersFunctionGetGateWayIP
GetGateWayIP return the IPs of the gateways.
overlord/sysutils_linux.go:20
↓ 1 callersFunctionGetIPs
Prepare interface IPs required for the RelayOverlordDiscoveryPacket function. Returns: A tuple where the first element is a list of IPs for *
py/relay_overlord_discovery_packet.py:28
↓ 1 callersMethodGetJWTToken
Get JWT token from server. Returns: JWT token string or None if authentication fails.
py/ovl.py:489
↓ 1 callersFunctionGetPlatformString
GetPlatformString returns machine platform string. Platform stream has the format of GOOS.GOARCH
overlord/utils.go:28
↓ 1 callersMethodGetProcessWorkingDirectory
(self, pid)
py/ghost.py:585
↓ 1 callersMethodGetSSHControlFile
(self, host)
py/ovl.py:1133
↓ 1 callersFunctionGetTLSCertificateSHA1Fingerprint
(cert_pem)
py/ovl.py:160
↓ 1 callersMethodHandleCreateSymlinkRequest
Handle create_symlink request.
py/ghost.py:1077
↓ 1 callersMethodHandleFileDownloadRequest
(self, msg)
py/ghost.py:1013
↓ 1 callersMethodHandleFileUploadRequest
(self, msg)
py/ghost.py:1029
↓ 1 callersMethodHandleFstatRequest
Handle a request to get file/directory status. Args: msg: The request message.
py/ghost.py:994
↓ 1 callersMethodHandleListTreeRequest
Handle a request to list directory contents recursively.
py/ghost.py:959
↓ 1 callersMethodHandleMkdirRequest
Handle mkdir request.
py/ghost.py:1097
↓ 1 callersMethodHandleRequest
Handle request from overlord.
py/ghost.py:1110
↓ 1 callersMethodHandleResizeSequence
Handle terminal resize sequence. Args: fd: File descriptor of the terminal rows: Number of rows cols: Number of columns
py/ghost.py:639
↓ 1 callersMethodHandleResponse
(self, response)
py/ghost.py:1146
↓ 1 callersMethodInitiateDownload
(self)
py/ghost.py:1200
↓ 1 callersMethodInitiateDownload
InitiateDownload initiates a client-initiated download request.
overlord/ghost.go:1613
↓ 1 callersFunctionInstall
Install installs and configures the ghost service for automatic startup on Linux
overlord/sysutils_linux.go:159
↓ 1 callersMethodIsBlocked
IsBlocked returns true if the given IP is blocked.
overlord/auth.go:253
↓ 1 callersMethodKillServer
(self)
py/ovl.py:1361
↓ 1 callersMethodListClients
(self, args)
py/ovl.py:1443
↓ 1 callersMethodListTree
ListTree returns a recursive list of all files and directories under the given path
overlord/ghost.go:1748
↓ 1 callersMethodListTree
ListTree handles a request to list directory contents recursively
overlord/conn_server.go:512
↓ 1 callersMethodListen
(self)
py/ghost.py:1205
↓ 1 callersMethodListen
()
overlord/ghost.go:1692
← previousnext →101–200 of 651, ranked by callers