conversations
listlengths
2
2
[ { "from": "human", "value": "Append file content to the source file via the `sponge` command" }, { "from": "gpt", "value": "`cat {{path/to/file}} | sponge -a {{path/to/file}}`" } ]
[ { "from": "human", "value": "Remove all lines starting with # in a file via the `sponge` command" }, { "from": "gpt", "value": "`grep -v '^{{#}}' {{path/to/file}} | sponge {{path/to/file}}`" } ]
[ { "from": "human", "value": "Tell me about `spotdl`." }, { "from": "gpt", "value": "Download Spotify playlists and songs along with metadata.\nMore information: <https://github.com/spotDL/spotify-downloader>.\n" } ]
[ { "from": "human", "value": "Download songs from the provided URLs and embed metadata via the `spotdl` command" }, { "from": "gpt", "value": "`spotdl {{open.spotify.com/playlist/playlistId open.spotify.com/track/trackId ...}}`" } ]
[ { "from": "human", "value": "Start a web interface to download individual songs via the `spotdl` command" }, { "from": "gpt", "value": "`spotdl web`" } ]
[ { "from": "human", "value": "Save only the metadata without downloading anything via the `spotdl` command" }, { "from": "gpt", "value": "`spotdl save {{open.spotify.com/playlist/playlistId ...}} --save-file {{path/to/save_file.spotdl}}`" } ]
[ { "from": "human", "value": "Tell me about `spottopgm`." }, { "from": "gpt", "value": "Convert a SPOT satellite image to PGM format.\nMore information: <https://netpbm.sourceforge.net/doc/spottopgm.html>.\n" } ]
[ { "from": "human", "value": "Convert the specified SPOT image to PGM format via the `spottopgm` command" }, { "from": "gpt", "value": "`spottopgm {{path/to/file.spot}} > {{path/to/output.pgm}}`" } ]
[ { "from": "human", "value": "Extract the specified color channel via the `spottopgm` command" }, { "from": "gpt", "value": "`spottopgm -{{1|2|3}} {{path/to/file.spot}} > {{path/to/output.pgm}}`" } ]
[ { "from": "human", "value": "Extract the specified rectangle from the input image via the `spottopgm` command" }, { "from": "gpt", "value": "`spottopgm {{first_col first_row last_col last_row}} {{path/to/file.spot}} > {{path/to/output.pgm}}`" } ]
[ { "from": "human", "value": "Tell me about `sputoppm`." }, { "from": "gpt", "value": "Convert an Atari uncompressed Spectrum image to a PPM image.\nMore information: <https://netpbm.sourceforge.net/doc/sputoppm.html>.\n" } ]
[ { "from": "human", "value": "Convert an SPU file to a PPM image via the `sputoppm` command" }, { "from": "gpt", "value": "`sputoppm {{path/to/input.spu}} > {{path/to/output.ppm}}`" } ]
[ { "from": "human", "value": "Tell me about `sqlite3`." }, { "from": "gpt", "value": "The command-line interface to SQLite 3, which is a self-contained file-based embedded SQL engine.\nMore information: <https://sqlite.org>.\n" } ]
[ { "from": "human", "value": "Start an interactive shell with a new database via the `sqlite3` command" }, { "from": "gpt", "value": "`sqlite3`" } ]
[ { "from": "human", "value": "Open an interactive shell against an existing database via the `sqlite3` command" }, { "from": "gpt", "value": "`sqlite3 {{path/to/database.sqlite3}}`" } ]
[ { "from": "human", "value": "Execute an SQL statement against a database and then exit via the `sqlite3` command" }, { "from": "gpt", "value": "`sqlite3 {{path/to/database.sqlite3}} '{{SELECT * FROM some_table;}}'`" } ]
[ { "from": "human", "value": "Tell me about `sqlite-utils`." }, { "from": "gpt", "value": "Command-line tool used to manipulate SQLite databases in a number of different ways.\nMore information: <https://sqlite-utils.datasette.io/en/stable/cli.html>.\n" } ]
[ { "from": "human", "value": "Create a database via the `sqlite-utils` command" }, { "from": "gpt", "value": "`sqlite-utils create-database {{path/to/database.db}}`" } ]
[ { "from": "human", "value": "Create a table via the `sqlite-utils` command" }, { "from": "gpt", "value": "`sqlite-utils create-table {{path/to/database.db}} {{table_name}} {{id integer name text height float photo blob --pk id}}`" } ]
[ { "from": "human", "value": "List tables via the `sqlite-utils` command" }, { "from": "gpt", "value": "`sqlite-utils tables {{path/to/database.db}}`" } ]
[ { "from": "human", "value": "Upsert a record via the `sqlite-utils` command" }, { "from": "gpt", "value": "`{{echo '[ {\"id\": 1, \"name\": \"Linus Torvalds\"}, {\"id\": 2, \"name\": \"Steve Wozniak\"}, {\"id\": 3, \"name\": \"Tony Hoare\"} ]'}} | sqlite-utils upsert {{path/to/database.db}} {{ta...
[ { "from": "human", "value": "Select records via the `sqlite-utils` command" }, { "from": "gpt", "value": "`sqlite-utils rows {{path/to/database.db}} {{table_name}}`" } ]
[ { "from": "human", "value": "Delete a record via the `sqlite-utils` command" }, { "from": "gpt", "value": "`sqlite-utils query {{path/to/database.db}} \"{{delete from table_name where name = 'Tony Hoare'}}\"`" } ]
[ { "from": "human", "value": "Drop a table via the `sqlite-utils` command" }, { "from": "gpt", "value": "`sqlite-utils drop-table {{path/to/database.db}} {{table_name}}`" } ]
[ { "from": "human", "value": "Display help via the `sqlite-utils` command" }, { "from": "gpt", "value": "`sqlite-utils -h`" } ]
[ { "from": "human", "value": "Tell me about `sqlmap`." }, { "from": "gpt", "value": "Detect and exploit SQL injection flaws.\nMore information: <https://sqlmap.org>.\n" } ]
[ { "from": "human", "value": "Run sqlmap against a single target URL via the `sqlmap` command" }, { "from": "gpt", "value": "`python sqlmap.py -u \"{{http://www.target.com/vuln.php?id=1}}\"`" } ]
[ { "from": "human", "value": "Send data in a POST request (`--data` implies POST request) via the `sqlmap` command" }, { "from": "gpt", "value": "`python sqlmap.py -u \"{{http://www.target.com/vuln.php}}\" --data=\"{{id=1}}\"`" } ]
[ { "from": "human", "value": "Change the parameter delimiter (& is the default) via the `sqlmap` command" }, { "from": "gpt", "value": "`python sqlmap.py -u \"{{http://www.target.com/vuln.php}}\" --data=\"{{query=foobar;id=1}}\" --param-del=\"{{;}}\"`" } ]
[ { "from": "human", "value": "Select a random `User-Agent` from `./txt/user-agents.txt` and use it via the `sqlmap` command" }, { "from": "gpt", "value": "`python sqlmap.py -u \"{{http://www.target.com/vuln.php}}\" --random-agent`" } ]
[ { "from": "human", "value": "Provide user credentials for HTTP protocol authentication via the `sqlmap` command" }, { "from": "gpt", "value": "`python sqlmap.py -u \"{{http://www.target.com/vuln.php}}\" --auth-type {{Basic}} --auth-cred \"{{testuser:testpass}}\"`" } ]
[ { "from": "human", "value": "Tell me about `sqsc`." }, { "from": "gpt", "value": "A command-line AWS Simple Queue Service client.\nMore information: <https://github.com/yongfei25/sqsc>.\n" } ]
[ { "from": "human", "value": "List all queues via the `sqsc` command" }, { "from": "gpt", "value": "`sqsc lq {{queue_prefix}}`" } ]
[ { "from": "human", "value": "List all messages in a queue via the `sqsc` command" }, { "from": "gpt", "value": "`sqsc ls {{queue_name}}`" } ]
[ { "from": "human", "value": "Copy all messages from one queue to another via the `sqsc` command" }, { "from": "gpt", "value": "`sqsc cp {{source_queue}} {{destination_queue}}`" } ]
[ { "from": "human", "value": "Move all messages from one queue to another via the `sqsc` command" }, { "from": "gpt", "value": "`sqsc mv {{source_queue}} {{destination_queue}}`" } ]
[ { "from": "human", "value": "Describe a queue via the `sqsc` command" }, { "from": "gpt", "value": "`sqsc describe {{queue_name}}`" } ]
[ { "from": "human", "value": "Query a queue with SQL syntax via the `sqsc` command" }, { "from": "gpt", "value": "`sqsc query \"SELECT body FROM {{queue_name}} WHERE body LIKE '%user%'\"`" } ]
[ { "from": "human", "value": "Pull all messages from a queue into a local SQLite database in your present working directory via the `sqsc` command" }, { "from": "gpt", "value": "`sqsc pull {{queue_name}}`" } ]
[ { "from": "human", "value": "Tell me about `srftopam`." }, { "from": "gpt", "value": "Convert an SRF file to Netpbm format.\nSee also: `pamtosrf`.\nMore information: <https://netpbm.sourceforge.net/doc/srftopam.html>.\n" } ]
[ { "from": "human", "value": "Convert an SRF file to Netpbm format via the `srftopam` command" }, { "from": "gpt", "value": "`srftopam {{path/to/file.srf}} > {{path/to/output.pam}}`" } ]
[ { "from": "human", "value": "Tell me about `srm`." }, { "from": "gpt", "value": "Securely remove files or directories.\nOverwrites the existing data one or multiple times. Drop in replacement for rm.\nMore information: <https://srm.sourceforge.net/srm.html>.\n" } ]
[ { "from": "human", "value": "Remove a file after a single-pass overwriting with random data via the `srm` command" }, { "from": "gpt", "value": "`srm -s {{path/to/file}}`" } ]
[ { "from": "human", "value": "Remove a file after seven passes of overwriting with random data via the `srm` command" }, { "from": "gpt", "value": "`srm -m {{path/to/file}}`" } ]
[ { "from": "human", "value": "Recursively remove a directory and its contents overwriting each file with a single-pass of random data via the `srm` command" }, { "from": "gpt", "value": "`srm -r -s {{path/to/directory}}`" } ]
[ { "from": "human", "value": "Prompt before every removal via the `srm` command" }, { "from": "gpt", "value": "`srm -i {{\\*}}`" } ]
[ { "from": "human", "value": "Tell me about `ssh-add`." }, { "from": "gpt", "value": "Manage loaded SSH keys in the `ssh-agent`.\nEnsure that `ssh-agent` is up and running for the keys to be loaded in it.\nMore information: <https://man.openbsd.org/ssh-add>.\n" } ]
[ { "from": "human", "value": "Add the default SSH keys in `~/.ssh` to the ssh-agent via the `ssh-add` command" }, { "from": "gpt", "value": "`ssh-add`" } ]
[ { "from": "human", "value": "Add a specific key to the ssh-agent via the `ssh-add` command" }, { "from": "gpt", "value": "`ssh-add {{path/to/private_key}}`" } ]
[ { "from": "human", "value": "List fingerprints of currently loaded keys via the `ssh-add` command" }, { "from": "gpt", "value": "`ssh-add -l`" } ]
[ { "from": "human", "value": "Delete a key from the ssh-agent via the `ssh-add` command" }, { "from": "gpt", "value": "`ssh-add -d {{path/to/private_key}}`" } ]
[ { "from": "human", "value": "Delete all currently loaded keys from the ssh-agent via the `ssh-add` command" }, { "from": "gpt", "value": "`ssh-add -D`" } ]
[ { "from": "human", "value": "Add a key to the ssh-agent and the keychain via the `ssh-add` command" }, { "from": "gpt", "value": "`ssh-add -K {{path/to/private_key}}`" } ]
[ { "from": "human", "value": "Tell me about `ssh-agent`." }, { "from": "gpt", "value": "Spawn an SSH Agent process.\nAn SSH Agent holds SSH keys decrypted in memory until removed or the process is killed.\nSee also `ssh-add`, which can add and manage keys held by an SSH Agent.\nMore information: ...
[ { "from": "human", "value": "Start an SSH Agent for the current shell via the `ssh-agent` command" }, { "from": "gpt", "value": "`eval $(ssh-agent)`" } ]
[ { "from": "human", "value": "Kill the currently running agent via the `ssh-agent` command" }, { "from": "gpt", "value": "`ssh-agent -k`" } ]
[ { "from": "human", "value": "Tell me about `ssh-copy-id`." }, { "from": "gpt", "value": "Install your public key in a remote machine's authorized_keys.\nMore information: <https://manned.org/ssh-copy-id>.\n" } ]
[ { "from": "human", "value": "Copy your keys to the remote machine via the `ssh-copy-id` command" }, { "from": "gpt", "value": "`ssh-copy-id {{username}}@{{remote_host}}`" } ]
[ { "from": "human", "value": "Copy the given public key to the remote via the `ssh-copy-id` command" }, { "from": "gpt", "value": "`ssh-copy-id -i {{path/to/certificate}} {{username}}@{{remote_host}}`" } ]
[ { "from": "human", "value": "Copy the given public key to the remote with specific port via the `ssh-copy-id` command" }, { "from": "gpt", "value": "`ssh-copy-id -i {{path/to/certificate}} -p {{port}} {{username}}@{{remote_host}}`" } ]
[ { "from": "human", "value": "Tell me about `sshd`." }, { "from": "gpt", "value": "Secure Shell Daemon - allows remote machines to securely log in to the current machine.\nRemote machines can execute commands as it is executed at this machine.\nMore information: <https://man.openbsd.org/sshd>.\n"...
[ { "from": "human", "value": "Start daemon in the background via the `sshd` command" }, { "from": "gpt", "value": "`sshd`" } ]
[ { "from": "human", "value": "Run sshd in the foreground via the `sshd` command" }, { "from": "gpt", "value": "`sshd -D`" } ]
[ { "from": "human", "value": "Run with verbose output (for debugging) via the `sshd` command" }, { "from": "gpt", "value": "`sshd -D -d`" } ]
[ { "from": "human", "value": "Run on a specific port via the `sshd` command" }, { "from": "gpt", "value": "`sshd -p {{port}}`" } ]
[ { "from": "human", "value": "Tell me about `sshfs`." }, { "from": "gpt", "value": "Filesystem client based on SSH.\nMore information: <https://github.com/libfuse/sshfs>.\n" } ]
[ { "from": "human", "value": "Mount remote directory via the `sshfs` command" }, { "from": "gpt", "value": "`sshfs {{username}}@{{remote_host}}:{{remote_directory}} {{mountpoint}}`" } ]
[ { "from": "human", "value": "Unmount remote directory via the `sshfs` command" }, { "from": "gpt", "value": "`umount {{mountpoint}}`" } ]
[ { "from": "human", "value": "Mount remote directory from server with specific port via the `sshfs` command" }, { "from": "gpt", "value": "`sshfs {{username}}@{{remote_host}}:{{remote_directory}} -p {{2222}}`" } ]
[ { "from": "human", "value": "Use compression via the `sshfs` command" }, { "from": "gpt", "value": "`sshfs {{username}}@{{remote_host}}:{{remote_directory}} -C`" } ]
[ { "from": "human", "value": "Follow symbolic links via the `sshfs` command" }, { "from": "gpt", "value": "`sshfs -o follow_symlinks {{username}}@{{remote_host}}:{{remote_directory}} {{mountpoint}}`" } ]
[ { "from": "human", "value": "Tell me about `ssh-keygen`." }, { "from": "gpt", "value": "Generate SSH keys used for authentication, password-less logins, and other things.\nMore information: <https://man.openbsd.org/ssh-keygen>.\n" } ]
[ { "from": "human", "value": "Generate a key interactively via the `ssh-keygen` command" }, { "from": "gpt", "value": "`ssh-keygen`" } ]
[ { "from": "human", "value": "Generate an ed25519 key with 32 key derivation function rounds and save the key to a specific file via the `ssh-keygen` command" }, { "from": "gpt", "value": "`ssh-keygen -t {{ed25519}} -a {{32}} -f {{~/.ssh/filename}}`" } ]
[ { "from": "human", "value": "Generate an RSA 4096-bit key with email as a comment via the `ssh-keygen` command" }, { "from": "gpt", "value": "`ssh-keygen -t {{rsa}} -b {{4096}} -C \"{{comment|email}}\"`" } ]
[ { "from": "human", "value": "Remove the keys of a host from the known_hosts file (useful when a known host has a new key) via the `ssh-keygen` command" }, { "from": "gpt", "value": "`ssh-keygen -R {{remote_host}}`" } ]
[ { "from": "human", "value": "Retrieve the fingerprint of a key in MD5 Hex via the `ssh-keygen` command" }, { "from": "gpt", "value": "`ssh-keygen -l -E {{md5}} -f {{~/.ssh/filename}}`" } ]
[ { "from": "human", "value": "Change the password of a key via the `ssh-keygen` command" }, { "from": "gpt", "value": "`ssh-keygen -p -f {{~/.ssh/filename}}`" } ]
[ { "from": "human", "value": "Change the type of the key format (for example from OPENSSH format to PEM), the file will be rewritten in-place via the `ssh-keygen` command" }, { "from": "gpt", "value": "`ssh-keygen -p -N \"\" -m {{PEM}} -f {{~/.ssh/OpenSSH_private_key}}`" } ]
[ { "from": "human", "value": "Retrieve public key from secret key via the `ssh-keygen` command" }, { "from": "gpt", "value": "`ssh-keygen -y -f {{~/.ssh/OpenSSH_private_key}}`" } ]
[ { "from": "human", "value": "Tell me about `ssh-keyscan`." }, { "from": "gpt", "value": "Get the public SSH keys of remote hosts.\nMore information: <https://man.openbsd.org/ssh-keyscan>.\n" } ]
[ { "from": "human", "value": "Retrieve all public SSH keys of a remote host via the `ssh-keyscan` command" }, { "from": "gpt", "value": "`ssh-keyscan {{host}}`" } ]
[ { "from": "human", "value": "Retrieve all public SSH keys of a remote host listening on a specific port via the `ssh-keyscan` command" }, { "from": "gpt", "value": "`ssh-keyscan -p {{port}} {{host}}`" } ]
[ { "from": "human", "value": "Retrieve certain types of public SSH keys of a remote host via the `ssh-keyscan` command" }, { "from": "gpt", "value": "`ssh-keyscan -t {{rsa,dsa,ecdsa,ed25519}} {{host}}`" } ]
[ { "from": "human", "value": "Manually update the SSH known_hosts file with the fingerprint of a given host via the `ssh-keyscan` command" }, { "from": "gpt", "value": "`ssh-keyscan -H {{host}} >> ~/.ssh/known_hosts`" } ]
[ { "from": "human", "value": "Tell me about `ssh`." }, { "from": "gpt", "value": "Secure Shell is a protocol used to securely log onto remote systems.\nIt can be used for logging or executing commands on a remote server.\nMore information: <https://man.openbsd.org/ssh>.\n" } ]
[ { "from": "human", "value": "Connect to a remote server via the `ssh` command" }, { "from": "gpt", "value": "`ssh {{username}}@{{remote_host}}`" } ]
[ { "from": "human", "value": "Connect to a remote server with a specific identity (private key) via the `ssh` command" }, { "from": "gpt", "value": "`ssh -i {{path/to/key_file}} {{username}}@{{remote_host}}`" } ]
[ { "from": "human", "value": "Connect to a remote server using a specific [p]ort via the `ssh` command" }, { "from": "gpt", "value": "`ssh {{username}}@{{remote_host}} -p {{2222}}`" } ]
[ { "from": "human", "value": "Run a command on a remote server with a [t]ty allocation allowing interaction with the remote command via the `ssh` command" }, { "from": "gpt", "value": "`ssh {{username}}@{{remote_host}} -t {{command}} {{command_arguments}}`" } ]
[ { "from": "human", "value": "SSH tunneling: [D]ynamic port forwarding (SOCKS proxy on `localhost:1080`) via the `ssh` command" }, { "from": "gpt", "value": "`ssh -D {{1080}} {{username}}@{{remote_host}}`" } ]
[ { "from": "human", "value": "SSH tunneling: Forward a specific port (`localhost:9999` to `example.org:80`) along with disabling pseudo-[T]ty allocation and executio[N] of remote commands via the `ssh` command" }, { "from": "gpt", "value": "`ssh -L {{9999}}:{{example.org}}:{{80}} -N -T {{username...
[ { "from": "human", "value": "SSH [J]umping: Connect through a jumphost to a remote server (Multiple jump hops may be specified separated by comma characters) via the `ssh` command" }, { "from": "gpt", "value": "`ssh -J {{username}}@{{jump_host}} {{username}}@{{remote_host}}`" } ]
[ { "from": "human", "value": "Close a hanged session via the `ssh` command" }, { "from": "gpt", "value": "`<Enter><~><.>`" } ]
[ { "from": "human", "value": "Tell me about `sshpass`." }, { "from": "gpt", "value": "An SSH password provider.\nIt works by creating a TTY, feeding the password into it, and then redirecting `stdin` to the SSH session.\nMore information: <https://manned.org/sshpass>.\n" } ]
[ { "from": "human", "value": "Connect to a remote server using a password supplied on a file descriptor (in this case, `stdin`) via the `sshpass` command" }, { "from": "gpt", "value": "`sshpass -d {{0}} ssh {{user}}@{{hostname}}`" } ]
[ { "from": "human", "value": "Connect to a remote server with the password supplied as an option, and automatically accept unknown SSH keys via the `sshpass` command" }, { "from": "gpt", "value": "`sshpass -p {{password}} ssh -o StrictHostKeyChecking=no {{user}}@{{hostname}}`" } ]
[ { "from": "human", "value": "Connect to a remote server using the first line of a file as the password, automatically accept unknown SSH keys, and launch a command via the `sshpass` command" }, { "from": "gpt", "value": "`sshpass -f {{path/to/file}} ssh -o StrictHostKeyChecking=no {{user}}@{{hos...
[ { "from": "human", "value": "Tell me about `sshuttle`." }, { "from": "gpt", "value": "Transparent proxy server that tunnels traffic over an SSH connection.\nDoesn't require root or any special setup on the remote SSH server, though root access on the local machine is prompted for.\nMore informat...
[ { "from": "human", "value": "Forward all IPv4 TCP traffic via a remote SSH server via the `sshuttle` command" }, { "from": "gpt", "value": "`sshuttle --remote={{username}}@{{sshserver}} {{0.0.0.0/0}}`" } ]