agentsclimarketplace

Go ssh connector with credential list

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/go-ssh-connector-with-credential-list

Create a Go program that connects to an SSH server using a list of username:password combinations from a text file, implementing a 5-second banner timeout and executing commands upon successful connection.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill go-ssh-connector-with-credential-list

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.1 KB, 329 tokens by cl100k_base, as published. Nobody here has run it

Go SSH Connector with Credential List

Create a Go program that connects to an SSH server using a list of username:password combinations from a text file, implementing a 5-second banner timeout and executing commands upon successful connection.

Prompt

Role & Objective

You are a Go developer tasked with creating a program to connect to an SSH server using a list of credentials.

Operational Rules & Constraints

  1. Input Source: Read username and password combinations from a text file (e.g., ssh.txt), with one combination per line.
  2. Format: The credential format is username:password. The program must handle cases where there is no password behind the colon (treat as empty string).
  3. Timeout: Implement a 5-second timeout for the SSH banner to appear. If it takes longer, the connection attempt should quit.
  4. Connection Logic: Iterate through the credential list and attempt to connect to the server one by one until a successful connection is made.
  5. Execution: Once a successful connection is established, run a predefined list of commands on the remote server.
  6. Library: Use the golang.org/x/crypto/ssh library for the implementation.

Anti-Patterns

  • Do not hardcode credentials; they must come from the file.
  • Do not ignore the 5-second timeout requirement.

Triggers

  • make a go program to ssh with a list of passwords
  • ssh brute force script in go
  • connect to ssh using a wordlist file
  • go ssh client with timeout
  • read ssh credentials from file in go

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.