Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Antonlovesdnb/TTPRunner
/ functions
Functions
192 in github.com/Antonlovesdnb/TTPRunner
⨍
Functions
192
◇
Types & classes
38
↓ 1 callers
Function
extractTechniqueContext
(content: string, techniqueId: string)
packages/api/src/parser/markdown.ts:82
↓ 1 callers
Method
extractUrlFromCommand
* Extract a URL from a download command (Invoke-WebRequest, wget, curl).
packages/api/src/executor/agent.ts:1565
↓ 1 callers
Function
findAvailableIp
(config: any)
packages/api/src/routes/vectr.ts:995
↓ 1 callers
Function
findDownloadButton
* Find a "download" button in a page snapshot.
packages/api/src/executor/browser.ts:350
↓ 1 callers
Function
findRelatedTools
( objects: StixObject[], attackPatternId: string, allTools: string[] )
packages/api/src/parser/stix.ts:135
↓ 1 callers
Function
findTarget
(text: string)
packages/api/src/routes/analyze.ts:410
↓ 1 callers
Function
getAllowedOrigins
()
packages/api/src/index.ts:16
↓ 1 callers
Function
getImageDimensions
* Extract width/height from a PNG or PPM image buffer.
packages/api/src/executor/qmp-input.ts:336
↓ 1 callers
Function
getImageWidth
* Get image width using ImageMagick identify.
packages/api/src/proxmox/screenshot.ts:273
↓ 1 callers
Function
getPngDimensions
(buffer: Buffer)
packages/api/src/executor/qmp-input.ts:351
↓ 1 callers
Function
getPpmDimensions
(header: string)
packages/api/src/executor/qmp-input.ts:360
↓ 1 callers
Method
getSshConnectOptions
Build SSH connection options from config (supports key or password)
packages/api/src/proxmox/client.ts:314
↓ 1 callers
Function
getTacticForTechnique
(techniqueId: string)
packages/api/src/lib/mitre.ts:145
↓ 1 callers
Function
getTechniqueName
(techniqueId: string)
packages/api/src/parser/markdown.ts:243
↓ 1 callers
Method
inferExecutor
* Infer whether a Windows command should run in cmd or powershell. * Commands using cmd-style syntax (slashes for flags, native cmd builtins) use c
packages/api/src/executor/agent.ts:1412
↓ 1 callers
Function
initDatabase
()
packages/api/src/db.ts:9
↓ 1 callers
Method
installDesktopEnvironment
* Install a lightweight desktop environment (XFCE + LightDM + xterm) on a * headless Linux VM so QMP screenshots can capture GUI evidence. * Use
packages/api/src/executor/agent.ts:467
↓ 1 callers
Method
installMissingTool
* Attempt to install a missing CLI tool on a Linux target. * Only installs tools on an allowlist to prevent arbitrary package installation. * Wi
packages/api/src/executor/agent.ts:1772
↓ 1 callers
Function
isDirWritable
Check if a directory is writable by attempting a temp file write
packages/api/src/routes/notes.ts:9
↓ 1 callers
Method
isMissingTool
* Detect "command not found" errors and extract the missing tool name.
packages/api/src/executor/agent.ts:1745
↓ 1 callers
Function
launchBrowserOnVM
(target: Target)
packages/api/src/executor/browser.ts:48
↓ 1 callers
Method
linkArtifactToTestCase
(db: string, testCaseId: string, artifactId: number)
packages/api/src/output/vectr.ts:368
↓ 1 callers
Method
listCampaigns
(db: string, assessmentId: string)
packages/api/src/output/vectr.ts:163
↓ 1 callers
Function
normalizeModeValue
(mode: string | undefined)
packages/api/src/routes/analyze.ts:165
↓ 1 callers
Function
parseGitHubUrl
* Parse a GitHub URL to extract owner/repo for navigating to releases. * Handles patterns like: * https://github.com/owner/repo/releases/download/
packages/api/src/executor/browser.ts:155
↓ 1 callers
Function
parseMarkdown
(content: string)
packages/api/src/parser/markdown.ts:35
↓ 1 callers
Function
parseOutputSteps
(output: string)
packages/api/src/routes/execution.ts:281
↓ 1 callers
Function
parsePdf
(buffer: Buffer, llmConfig: LlmConfig)
packages/api/src/parser/pdf.ts:18
↓ 1 callers
Function
parseStix
(content: string)
packages/api/src/parser/stix.ts:44
↓ 1 callers
Method
planExecution
( ttp: { technique: string; name: string; context: string; commands?: string[]; tools_mentioned?: string[]
packages/api/src/executor/agent.ts:1449
↓ 1 callers
Function
ppmToPng
* Convert PPM P6 binary format to PNG using ImageMagick's `convert` command. * Falls back to raw PPM-to-PNG conversion if ImageMagick is not availabl
packages/api/src/proxmox/screenshot.ts:120
↓ 1 callers
Function
replaceEnvVars
(obj: any)
packages/api/src/config.ts:142
↓ 1 callers
Function
resolveKeyPath
(keyPath: string)
packages/api/src/routes/setup.ts:196
↓ 1 callers
Function
resolveKeyPath
(keyPath: string)
packages/api/src/proxmox/bootstrap.ts:35
↓ 1 callers
Function
runDeploy
(config: any, ip: string)
packages/api/src/routes/vectr.ts:601
↓ 1 callers
Function
runStartVectr
(config: any)
packages/api/src/routes/vectr.ts:927
↓ 1 callers
Function
sendSingleKey
* Send a single key press (down+up) via QMP send-key.
packages/api/src/executor/qmp-input.ts:296
↓ 1 callers
Function
setupRoutes
(app: Hono)
packages/api/src/routes/index.ts:13
↓ 1 callers
Function
setupWireguardNat
* Detect WireGuard on Proxmox and add NAT masquerade so VPN clients * can reach lab VMs. Without this, responses from lab VMs to the WG * subnet get
packages/api/src/proxmox/bootstrap.ts:319
↓ 1 callers
Method
showResultOnVM
* Run the actual command in a visible terminal on the VM desktop. * * Opens a real terminal (cmd/PowerShell/xterm) and types the command directl
packages/api/src/executor/agent.ts:1080
↓ 1 callers
Function
simpleAnalysis
(content: string, targets: any[])
packages/api/src/routes/analyze.ts:394
↓ 1 callers
Method
startVM
(vmid: number, type: 'qemu' | 'lxc' = 'qemu')
packages/api/src/proxmox/client.ts:199
↓ 1 callers
Method
stop
()
packages/api/src/executor/agent.ts:68
↓ 1 callers
Function
stripShellBanner
* Strip shell banners and prompt noise from QMP command output. * PowerShell via QMP stdin includes the full banner + prompt on every command.
packages/api/src/proxmox/screenshot.ts:252
↓ 1 callers
Method
subscribe
(callback: EventCallback)
packages/api/src/events.ts:10
↓ 1 callers
Method
takeScreenshot
( target: Target, technique: string, cmdContext?: { command: string; stdout: string; stderr: strin
packages/api/src/executor/agent.ts:377
↓ 1 callers
Function
tcpCheck
Fast TCP port probe — resolves true/false, never throws
packages/api/src/routes/environment.ts:44
↓ 1 callers
Method
testConnection
()
packages/api/src/output/vectr.ts:81
↓ 1 callers
Function
testLlmConnection
(provider: string, apiKey?: string, endpoint?: string, model?: string)
packages/api/src/routes/setup.ts:256
↓ 1 callers
Function
testLlmQuick
Quick LLM API test — similar to setup.ts testLlmConnection but lightweight
packages/api/src/routes/environment.ts:253
↓ 1 callers
Function
testSSH
(target: Target)
packages/api/src/executor/ssh.ts:15
↓ 1 callers
Function
testSshConnection
(host: string, username: string, password?: string, keyPath?: string)
packages/api/src/routes/setup.ts:203
↓ 1 callers
Function
testWinRM
(target: Target)
packages/api/src/executor/winrm.ts:13
↓ 1 callers
Function
timingSafeEqual
(a: string, b: string)
packages/api/src/middleware/auth.ts:38
↓ 1 callers
Method
troubleshootDownload
* Diagnose and attempt to fix a failed download. * * Strategy: * 1. Quick CLI alternatives (certutil, BitsTransfer, TLS 1.2, wget/curl swap)
packages/api/src/executor/agent.ts:1605
↓ 1 callers
Method
unlockScreen
* Unlock a locked screen on the target.
packages/api/src/executor/agent.ts:700
↓ 1 callers
Method
uploadScreenshot
* Upload a screenshot as an execution artifact to VECTR, then link it to a test case. * VECTR encrypts files with libsodium before storage.
packages/api/src/output/vectr.ts:255
↓ 1 callers
Method
waitForSession
* Poll for a desktop session to become active after DM restart. * Returns true if session detected within maxSeconds.
packages/api/src/executor/agent.ts:945
↓ 1 callers
Method
wakeDisplay
* Wake the display and reset screensaver. Uses broad XAUTHORITY search.
packages/api/src/executor/agent.ts:960
Function
callLLM
(messages: LlmMessage[], options?: LlmOptions)
packages/api/src/llm/provider.ts:21
Function
close
(ws)
packages/api/src/index.ts:116
Method
constructor
(baseUrl: string, apiKey: string)
packages/api/src/output/vectr.ts:50
Method
constructor
( executionId: string, context: TTPContext, config: Config, selectedTtps: string[] | null,
packages/api/src/executor/agent.ts:54
Method
constructor
(config: ProxmoxConfig)
packages/api/src/proxmox/client.ts:33
Method
deployVectr
(options: { bridge: string; gateway: string; ip: string; })
packages/api/src/proxmox/client.ts:209
Function
dismiss
(id: number)
packages/ui/src/composables/useToast.ts:25
Function
downloadOnTarget
( target: Target, url: string, remotePath: string )
packages/api/src/executor/winrm.ts:165
Function
downloadOnTarget
( target: Target, url: string, remotePath: string )
packages/api/src/executor/ssh.ts:194
Method
emit
(data: any)
packages/api/src/events.ts:15
Function
error
(message: string)
packages/ui/src/composables/useToast.ts:22
Function
info
(message: string)
packages/ui/src/composables/useToast.ts:23
Method
isLastCmd
(i: number)
packages/api/src/executor/agent.ts:224
Function
message
(ws, message)
packages/api/src/index.ts:112
Function
open
(ws)
packages/api/src/index.ts:96
Function
overlayCommandOutput
( pngData: Buffer, command: string, output: string, exitCode: number, )
packages/api/src/proxmox/screenshot.ts:168
Function
qmpDoubleClick
( host: string, vmid: number, x: number, y: number, sshUser = 'root', keyPath = '~/.ssh/id_rsa', )
packages/api/src/executor/qmp-input.ts:200
Function
requireAuth
(c: Context, next: Next)
packages/api/src/middleware/auth.ts:10
Function
setupRoutes
(app: Hono)
packages/api/src/routes/environment.ts:53
Function
setupRoutes
(app: Hono)
packages/api/src/routes/targets.ts:20
Function
setupRoutes
(app: Hono)
packages/api/src/routes/vectr.ts:47
Function
setupRoutes
(app: Hono)
packages/api/src/routes/reports.ts:9
Function
setupRoutes
(app: Hono)
packages/api/src/routes/analyze.ts:172
Function
setupRoutes
(app: Hono)
packages/api/src/routes/setup.ts:73
Function
setupRoutes
(app: Hono)
packages/api/src/routes/execution.ts:11
Function
setupRoutes
(app: Hono)
packages/api/src/routes/notes.ts:35
Method
stopVM
(vmid: number, type: 'qemu' | 'lxc' = 'qemu')
packages/api/src/proxmox/client.ts:204
Method
stripShellBanner
* Strip PowerShell/bash banner noise from QMP command output.
packages/api/src/executor/agent.ts:1182
Function
success
(message: string)
packages/ui/src/composables/useToast.ts:21
Function
testQMP
(target: Target, proxmoxConfig?: ProxmoxConfig)
packages/api/src/executor/qmp.ts:85
Function
transferFileSCP
( target: Target, localPath: string, remotePath: string )
packages/api/src/executor/ssh.ts:125
Function
transferFileWinRM
( target: Target, localPath: string, remotePath: string )
packages/api/src/executor/winrm.ts:138
Function
useToast
()
packages/ui/src/composables/useToast.ts:12
← previous
101–192 of 192, ranked by callers