Logo : Screenshot

Screenshot

Communauté
Encod3d-Sec
screenshot

Capturez des captures d’écran de pages web et de PoC pour les ajouter aux preuves de l’engagement (targets/<eng>/poc/) et les intégrer à walkthrough.md. Pages en ligne et états authentifiés ou exploités (tableau de bord après connexion, page du flag, rendu SSTI/cmdi). S’exécute sur Chromium sur l’hôte Kali de l’outillage (connexion VPN aux cibles) ; transmet les éléments à la compétence evidence pour les expurger avant la rédaction d’un véritable rapport. À utiliser pour constituer des preuves de PoC ou si l’on vous demande de « prendre une capture d’écran / capturer le PoC ».

Add to TypingMind

Présentation

ÉditeurEncod3d-Sec
DépôtTORCH
Nom de la compétencescreenshot
Étoiles
334
Forks
48
Fichiers inclus
Instructions uniquement
LicenceMIT
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Tout dans les instructions

    Tout ce dont le modèle a besoin se trouve dans les instructions : aucun fichier supplémentaire à synchroniser.

  • Open source

    Publiée par Encod3d-Sec sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Screenshot dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/Encod3d-Sec/TORCH/tree/main/skills/workflow/screenshot
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Encod3d-Sec/TORCH.git /tmp/TORCH
mkdir -p .claude/skills
cp -r /tmp/TORCH/skills/workflow/screenshot .claude/skills/screenshot
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Screenshot dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Screenshot dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Screenshot n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

Screenshot: visual PoC capture

Turn the text walkthrough into evidence. Capture runs on the Kali tooling host (it has the VPN route to in-scope targets); the PNG is then pulled into the vault under targets/<eng>/poc/. Driver: scripts/shot.py (chromium headless). For redaction-before-report use Skill(evidence).

One evidence dir, captured by hand. poc/ = the curated story you choose to show (login, the exploited state, the flag). ALL PoC evidence is now captured MANUALLY and LIVE via capture.sh straight into poc/ the moment a step lands - there is no auto-capture net.

Scope check

Only screenshot in-scope hosts (read targets/<eng>/scope.md). On passive_only RoE a screenshot is fine (it's a GET you already make). Never screenshot a host you would not curl.

What to capture: EVERY breakthrough, as it happens (with retries)

Screenshot the moment each step LANDS, not at the end - the box may expire. A breakthrough = anything you'd put in the report: the entry page, a leaked secret / useful source (deobfuscated JS, a config, an app.log), the cipher / decrypt response, the vuln firing, the authed/exploited state, the flag. Tell the arc (Entry -> Trigger -> Impact) AND capture the intermediate proofs (the leak, the crypto response) - those are exactly what a reviewer disbelieves without a picture.

  • Always show the URL. Every web/source capture must carry its address bar so the image is self-identifying - which page/path it is (https://T/folder/folder/log.md), not an anonymous blob. Live <url> mode adds it automatically; for --html/--term of a fetched resource pass --url-bar "<full URL>".
  • Retry (box is up). Renders fail transiently (nav timeout, cold chromium). Retry 2-3x and confirm the PNG is non-empty ([ -s out.png ]) before moving on; while the box is up, go back and re-capture anything you missed rather than shipping evidence with gaps. Name NN-slug.png (NN = step order) so the evidence reads top-to-bottom.

Fastest path: capture.sh ev (one call, live - USE THIS by default)

Batching captures at the end of a box is the failure mode: you lose transient state AND the live situational awareness that helps pick the next move when stuck. The ev mode of scripts/capture.sh collapses the whole capture (render a card showing command + request URL, pull the PNG into poc/, print the md ref) into ONE call, so live capture has no friction. cmd and url are REQUIRED args - no anonymous card.

bash
# 1) tee the step's output on the VM as you run it (safe for stateful exploits - no re-run needed):
bash /root/vm.sh 'python3 /tmp/exploit.py 2>&1 | tee /tmp/poc/flag3.log'
# 2) card it the MOMENT it lands:
scripts/capture.sh ev <eng> flag3-contract "POST http://T:8545 eth_sendTransaction" "reset()+transferDeposit()"
#   args: <eng> <slug> <request-url> <cmd-label> [logfile=/tmp/poc/<slug>.log]
#   -> saves targets/<eng>/poc/NN-flag3-contract.png (NN auto-numbered), prints the ![]() ref

The card shows $ <cmd-label> in the title bar AND <request-url> in a browser address bar (both required) so every image says what was run and where. Use the manual shot.py calls below only for the modes capture.sh does not wrap (a GUI --window/--screen, an authed --html render).

Rendered web page: capture.sh web

The most operator-legible shot is the target as a browser renders it - the actual page, not a curl card. capture.sh web <eng> <slug> <url> renders the live URL through chromium on the VM (browser-chrome frame + address bar) and pulls the PNG into poc/. This is the FIRST evidence to grab on any web target (capture-as-is before poking), and again at each rendered exploit state (an SSTI/cmdi output page, the flag page):

bash
scripts/capture.sh web <eng> home http://T:PORT/            # the landing page, as seen in a browser
scripts/capture.sh web <eng> flag http://T:PORT/admin       # a rendered exploited/authed state
# opts: --no-bar (drop the address-bar frame), trailing `W H` to resize (default 1440 900)

A dead target makes it fail loud (chromium net::ERR -> non-zero exit, no error-page PNG pulled). For an authed page (needs a session cookie), curl-save the HTML and render it with the manual shot.py --html --url-bar call below; web is for GET-able live pages.

Request/response leads: capture.sh req

The highest-value CTF/pentest evidence is the real curl request and response for a lead (creds, a flag, a leaked source) - presentable as full-file PoC. Capture it deliberately, the moment the lead lands:

Full fidelity (capture.sh req): for a request you want as a clean PoC (request line + headers + body, response status + headers + body), run it through the req mode - it runs curl -sS -iv, colors the request(>)/response(<) Burp-style, and pulls the PNG into poc/:

bash
scripts/capture.sh req <eng> <slug> -- -sk -X POST https://T:5000/login --data @/tmp/body.txt

For a crypto-forged request (envelope/signature), give the exploit script a --curl mode: it writes the forged body to a file and prints the capture.sh req args, so the PoC is a reproducible curl, not "run my python". Never settle for a script-summary card (POST https://T/login + python output) when the real curl request/response is the artifact a client / writeup needs.

Real tmux-session cards: capture.sh tmux

When the evidence should look like an ACTUAL Kali terminal session (real commands + real output, the way recon scans are captured), run the proof in a real tmux pane and screenshot the pane: scripts/capture.sh tmux <eng> <slug> <script.sh> runs the script in a wide tmux pane, waits for its echo POC-DONE, --tmux-captures the pane (FULL scrollback), colors it, and pulls the PNG into poc/. Write the script to echo "# comment" and echo "$ <command>" then run the real curl -i/exploit command. The card colors comment (green) / command (cyan) / response (default) so the three are visually distinct (shot.py --reqresp, works on --term and --tmux).

NEVER truncate or abbreviate evidence. Show the FULL command, FULL request, FULL response - no ..., no <result=...> placeholder, no eliding a base64 blob or a long body. A reviewer must verify/reproduce from the image ALONE. The tooling enforces this (capture.sh tmux captures full pane scrollback via --history and never caps rendered lines); keep the same discipline in the script content - paste the real value, never summarize it.

Capture (run on Kali via vm.sh)

Push the script once, then shoot. T = target host, PORT = web port, <eng> = engagement dir.

bash
# 0) push shot.py to Kali (once per session). vm.sh does NOT forward local stdin, so base64 the
#    file INTO the command (a `... | vm.sh 'cat > file'` pipe silently writes an EMPTY file):
B64=$(base64 -w0 scripts/shot.py); bash /root/vm.sh "mkdir -p /tmp/poc; echo $B64 | base64 -d > /tmp/shot.py"

# 1) LIVE page (unauth / GET-able): the URL address bar is added AUTOMATICALLY
bash /root/vm.sh 'python3 /tmp/shot.py http://T:PORT/internal --step 1 --slug login --dir /tmp/poc --caption "NOC login"'

# 2) AUTHED / exploited state: curl WITH the session, save HTML, render it. Pass --url-bar so the
#    image shows WHICH URL produced it (the authed path, or the exact exploit request); --base loads
#    /static from the target; the cookie stays in curl, never in the browser.
bash /root/vm.sh 'curl -s -b "session=VAL" http://T:PORT/internal/dashboard > /tmp/d.html;
  python3 /tmp/shot.py --html /tmp/d.html --base http://T:PORT --url-bar "http://T:PORT/internal/dashboard" --step 3 --slug dashboard --dir /tmp/poc --caption "Dashboard via SQLi"'

shot.py prints saved <path> + a ready md: ![caption](poc/NN-slug.png) line - keep that line.

Terminal-tool + source/log capture (--term)

Render console output OR a fetched source/log/config file as a clean colored card (ANSI converted, never shown raw). The fancy 2-line shell prompt is auto-stripped so a tmux grab is not a fused rootnmap -p- mess (--raw keeps prompts if you need them). For a fetched web resource, add --url-bar so the card shows its URL - a leaked source file is evidence only if you can see where it lives.

bash
bash /root/vm.sh 'nmap -sV T | tee /tmp/o.txt;
  python3 /tmp/shot.py --term /tmp/o.txt --cmd "nmap -sV T" --step 1 --slug nmap --dir /tmp/poc'
# a leaked source / log / config, WITH its URL in the address bar:
bash /root/vm.sh 'curl -s http://T/logs/app.log > /tmp/l.txt;
  python3 /tmp/shot.py --term /tmp/l.txt --url-bar http://T/logs/app.log --cmd "GET /logs/app.log" -o /tmp/poc/app-log.png'

--maxlines (default 120) caps long output (linpeas); the card auto-sizes to wrapped rows so a long obfuscated-JS line does not crop the reveal. Then pull the PNG into poc/ like the web shots above.

No auto catch-all: scan output is NOT auto-captured - screenshot the scans worth showing yourself, and they land in poc/ like every other deliberate story shot (the box's arc). Scans you run detached in a tmux tab (vm-scan.sh) don't return output to the response, so capture those live with --tmux <eng>:<tab> once the pane has output.

Run scans in tmux + capture them (nmap/ffuf/nuclei live)

Run each scan in a named tmux tab on the VM (root, persistent - survives the vm.sh call), one tab per target; multi-web targets get one tab per endpoint:

bash
bash scripts/vm-scan.sh <eng> T 'nmap -sV -Pn T'                 # tab: T
bash scripts/vm-scan.sh <eng> T-web-192.0.2.10 'ffuf -u http://192.0.2.10/FUZZ -w wl'

Tab name correlates to the target; dots/colons/spaces become - (tmux target syntax). Screenshot a live/finished tab as a clean colored card (no display needed):

bash
bash /root/vm.sh 'python3 /tmp/shot.py --tmux <eng>:T --step 2 --slug nmap --dir /tmp/poc'

Target the tab by the @NN window id or the sanitized name (dots/colons became -) that vm-scan.sh printed, not the raw dotted target. then pull the PNG into poc/ as usual.

GUI / desktop capture (scrot)

For real GUI apps with no text stream (Burp, Wireshark, a browser rendering an exploit) or the whole desktop:

bash
bash /root/vm.sh 'python3 /tmp/shot.py --window "Burp Suite" --step 3 --slug burp --dir /tmp/poc'
bash /root/vm.sh 'python3 /tmp/shot.py --screen --step 4 --slug desktop --dir /tmp/poc'

shot.py wakes + unlocks the seat session and grabs as the desktop user (root-over-SSH has no X authority, so a bare scrot fails with "Can't open X display :0"). --window grabs the named app (even behind a lock); it falls back to full screen if the name is not found. Use --term for tool STDOUT text, --tmux for a live tmux scan tab, --screen/--window for GUI windows.

Pull into the vault (Kali -> WSL, base64 over the channel)

The PNG is born on Kali; the vault is on WSL. Transfer each:

bash
mkdir -p targets/<eng>/poc
bash /root/vm.sh 'base64 -w0 /tmp/poc/03-dashboard-after-sqli.png' | base64 -d > targets/<eng>/poc/03-dashboard-after-sqli.png

Embed in the walkthrough

  • Drop the printed ![caption](poc/NN-slug.png) ref inline at the matching step in walkthrough.md.
  • Maintain a ## Evidence appendix (one row per shot) so the gallery is browsable:
markdown
## Evidence
| shot | caption |
|------|---------|
| ![](poc/01-login.png) | NOC login (/internal) |
| ![](poc/03-dashboard-after-sqli.png) | Dashboard reached via SQLi bypass |

Images live only under targets/<eng>/ (gitignored) - never embed images in wiki/ (image-free rule).

Lesson: capture live, not at the end

The whole box was solved (3 flags: supply-chain cred intercept -> OTP crypto crack -> smart-contract reset()), and only THEN screenshotted by re-running the commands. Two real costs: (1) no mid-engagement evidence to reason from while stuck - the long dead-end hunting the login username would have been easier to unstick with the intercepted-creds card and the cipher-response card already in hand; (2) re-running is unsafe for stateful steps (a spent padding-oracle or a contract transferDeposit() that zeroes a balance cannot be re-fired for a clean card). Fix: capture.sh ev after EACH landing step, not at the end. Also banked into shot.py: --term cards budget generous bottom headroom so the last line (usually the flag/cred) never clips, and every card carries BOTH the command and the request URL.

Preserve the exploit code too, not just the screenshot. When you write an exploit script (a payload HTML, an escape/forge script, a webshell) or read a target's source, copy it into targets/<eng>/poc/scripts/ alongside its card, so the reviewer has the code and the state together, not just a screenshot. Save it as <name>.md with the code in a ```py/```sh/```js/```html fence, NOT a bare .py/.sh/.js/.html - Obsidian only previews .md/images in the GUI, so a raw-extension file is invisible to the operator (same reason capture.sh log writes .md and saved source is -source.md).

Redaction (real engagements only)

Before a client report, run Skill(evidence): black-bar session cookies / PII, strip metadata. The authed-via-curl-to-HTML flow already keeps the session token out of the image (it's in curl, not the URL bar). CTF/lab: skip redaction.

Output

Report: shots saved (paths under poc/), the ![]() refs added to walkthrough.md, any blocker (nav timeout -> raise --wait; missing styles -> set --base).

Foire aux questions

À quoi sert la compétence IA Screenshot ?

Capturez des captures d’écran de pages web et de PoC pour les ajouter aux preuves de l’engagement (targets/<eng>/poc/) et les intégrer à walkthrough.md. Pages en ligne et états authentifiés ou exploités (tableau de bord après connexion, page du flag, rendu SSTI/cmdi). S’exécute sur Chromium sur l’hôte Kali de l’outillage (connexion VPN aux cibles) ; transmet les éléments à la compétence evidence pour les expurger avant la rédaction d’un véritable rapport. À utiliser pour constituer des preuves de PoC ou si l’on vous demande de « prendre une capture d’écran / capturer le PoC ».

Pourquoi utiliser Screenshot sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Screenshot se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Screenshot dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/Encod3d-Sec/TORCH/tree/main/skills/workflow/screenshot. TypingMind lit le fichier SKILL.md et l’installe sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Screenshot ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Screenshot ?

Autant que vous le souhaitez. Vous pouvez utiliser Screenshot avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Screenshot est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par Encod3d-Sec sous licence MIT. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇