Skip to content

Instantly share code, notes, and snippets.

@lesnuages
Last active November 30, 2020 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lesnuages/e40fc62f81a0ed33a35362986a688635 to your computer and use it in GitHub Desktop.
Save lesnuages/e40fc62f81a0ed33a35362986a688635 to your computer and use it in GitHub Desktop.
vscode sliver debug conf
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug Server",
"type": "go",
"request": "attach",
"mode": "remote",
"remotePath": "${workspaceFolder}",
"port": 2345,
"host": "127.0.0.1",
},
]
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build All",
"command": "make",
"args": [
"linux"
]
},
{
"label": "Build and Run",
"dependsOn": [
"Build All"
],
"group": {
"kind": "build",
"isDefault": true
},
"type": "shell",
"command": [
"./sliver-server"
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "shared",
"showReuseMessage": false,
"clear": false
}
},
{
"label": "Run Debug Server",
"type": "shell",
"command": [
"dlv"
],
"args": [
"debug",
"--build-flags=\"-ldflags='-X github.com/bishopfox/sliver/client/version.Version=1.1.2 -X github.com/bishopfox/sliver/client/version.CompiledAt=Never -X github.com/bishopfox/sliver/client/version.GithubReleasesURL=github.com -X github.com/bishopfox/sliver/client/version.GitCommit=aabbcc -X github.com/bishopfox/sliver/client/version.GitDirty=Dirty'\"",
"--headless",
"--listen=:2345",
"--api-version=2",
"--log",
"github.com/bishopfox/sliver/server"
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"showReuseMessage": false,
"clear": true,
"panel": "new",
},
"problemMatcher": [
"$go"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment