# Steal MSSQL Linked Server Passwords

> Capture a linked-server credential with OPENQUERY and a Responder LDAP listener.

Steal MSSQL Linked Server Passwords is a paid AI agent skill on Agensi by NZ1Labs, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $4 (one-time purchase)
- Creator: [NZ1Labs](https://www.agensi.io/creators/nz1labs)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/steal-mssql-linked-server-passwords
- Tags: security, mssql, active-directory, pentesting

## About this skill

An MSSQL `ADsDSOObject` linked server with an explicit linked login keeps that account's password and spends it on any LDAP URL you supply. You do not need sysadmin — `guest` is enough to read `sys.linked_logins` and run `OPENQUERY`.

This skill covers the enumeration, the exact doubled-quote syntax, the Responder configuration (LDAP only, no poisoners), why the *query preparation failed* error is expected, and how to validate the captured credential before you build on it. It also documents the ccache etype bug that makes impacket print `[-] 1` for a perfectly good ticket.

## Requires

- Python 3.10+
- impacket
- Responder
- any MSSQL login

## Known limitations

The linked server must already exist with an explicit linked login; changing server options needs sysadmin.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Steal MSSQL Linked Server Passwords skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Do I need sysadmin?

No. guest can read the linked-server metadata and execute OPENQUERY on an existing server.

### Do I need name poisoning?

No. You control the LDAP URL inside the query, so you point it at your own address.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
