weasel-poc

Generate proof-of-concept exploit tests for Solidity vulnerabilities in Foundry or Hardhat.

30|2|Updated Nov 8, 2025
One-click install
npx skills add https://github.com/slvDev/weasel --skill weasel-poc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: weasel-poc
Source: https://github.com/slvDev/weasel/tree/main/weasel/skills/weasel-poc
Command: npx skills add https://github.com/slvDev/weasel --skill weasel-poc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables rapid generation of proof-of-concept exploits for Solidity vulnerabilities, allowing teams to demonstrate security issues with deterministic tests rather than descriptive reports.

Core Features & Use Cases

  • PoC writing: generate testable Solidity PoCs that prove a vulnerability and can be integrated into existing test suites.
  • Demonstration-ready outputs: produces reproducible PoC code that can be executed in controlled environments.
  • Use Case: auditors can add a minimal PoC to test files to illustrate an attack scenario and verify impact.

Quick Start

Provide the vulnerability type and target contract details to generate a ready-to-run PoC. Place the new test in test/Vault.t.sol or an equivalent file and run your project's standard test command (e.g., forge test or npx hardhat test).

Frequently Asked Questions about weasel-poc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a proof-of-concept exploit for a Solidity smart contract vulnerability?

To write a proof-of-concept exploit, you provide the vulnerability type and target contract details to generate testable Solidity PoC code. This produces reproducible PoC code that proves a vulnerability and integrates into existing test suites.

Can I generate PoC exploit tests that work with Foundry or Hardhat?

Yes, you can generate PoC exploit tests that work with Foundry or Hardhat. The generated PoC tests are placed in standard project test files and executed using your project's standard test command like forge test or npx hardhat test.

What do I need to provide to generate a smart contract PoC for a security audit?

You need to provide a Solidity project with a test harness, a vulnerability description, and an existing repository structure. These inputs allow the tool to place and run the PoC tests deterministically within your current development environment.

What is the best way to demonstrate smart contract security issues during an audit?

The best way to demonstrate smart contract security issues is by generating testable proof-of-concept exploits. This approach demonstrates security issues with deterministic tests rather than descriptive reports, allowing auditors to verify impact directly.

How do I add a minimal PoC to my Solidity test files to illustrate an attack scenario?

You add a minimal PoC by generating ready-to-run exploit code and placing the new test in a file like test/Vault.t.sol. Running your project's standard test command then executes the PoC to illustrate and verify the attack scenario.

Does generating PoC exploits for Solidity vulnerabilities require an existing repository structure?

Yes, generating PoC exploits requires an existing repository structure along with a Solidity project and test harness. The tool places and runs the PoC tests within this existing structure to ensure deterministic and reproducible outputs.