Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>launch-terminal-cmdNew to Visual Studio Code? Get it now.
launch-terminal-cmd

launch-terminal-cmd

ohk990102

|
2,869 installs
| (0) | Free
Launch terminal with given cmd by cmdline.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

launch-terminal-cmd

Features

Opens a named socket that recv command and execute in new terminal. Environment variable with name VSCODE_TERMINAL_SOCKET will be set to the listening socket.

Extension Settings

This extension contributes the following settings:

  • launch-terminal-cmd.defaultLaunchType: Defines way to open up a terminal.
    • split: Opens a terminal by splitting active terminal window.
    • new: Opens a new terminal.

Release Notes

0.0.1

initial release

0.0.2

fix bug

Working with pwntools

I made this extension to use pwntools gdb.attach feature with vscode terminal.

For this, you can use following shell script.

#! /bin/bash

if [ -z "${VSCODE_TERMINAL_SOCKET}" ]
then
    echo "Extension not installed"
    exit 1;
fi

echo "$*" | nc -U ${VSCODE_TERMINAL_SOCKET}

Put this file on somewhere (ex: ~/vscode-terminal), and change your exploit code like this.

from pwn import *

context.terminal = ["/home/ohk990102/vscode-terminal"]

p = process('vm')
gdb.attach(p)

# ...

Happy pwning!!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft