sagemath
Auth/lab ref: Computer algebra and number-theory environment for cryptanalysis scripting.
v2026.11.13-21cd5683 instalações+3 em 7 dias39 EstrelasGPL-3.0sincronizado há 10 horas
Instalar
Ainda não tem a CLI da NotHoly? Instale primeiro.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install aeondave/sagemathGrava em ~/.notholy/skills depois de conferir a assinatura e o SHA-256.
AssinaturaAssinado, ed25519
Pacote4cfb0bdd…8e4bfd8d
4cfb0bdde4c7…73868e4bfd8d3 arquivos · 4.3 KBVarreduraBaixonenhum achado
Fontegithub.com/AeonDave/malskill/tree/main/offensive-tools/cryptography/sagemath@21cd568
Este item ainda não foi escrito no seu idioma, então aparece em English.
Nesta página
Sage is the go-to environment for mathematical cryptanalysis and attack modeling. Use it when standard scripting is not enough for algebraic structures and lattice workflows.
Typical use cases
- Finite field computations (
GF, extension fields). - Polynomial rings and elimination/resultants.
- Elliptic curve arithmetic and discrete-log style tasks.
- Lattice modeling (
matrix,LLL) for partial leakage recovery. - Fast prototyping of attack math before operationalizing in Python.
Invocation modes
# REPL
sage
# Run .sage script
sage solver.sage
# Run Python file with Sage runtime
sage -python solver.py
# Jupyter with Sage kernel
sage -n jupyterPractical workflow
- Parse input values (files, network output, pubkeys).
- Model algebra in Sage-native structures (
GF, rings, curves, matrices). - Validate with small synthetic tests.
- Execute full solve, export recovered secrets to plain Python bytes/ints.
- Integrate with
pwntoolsor service scripts for secret recovery.
Common cryptanalysis patterns
From real-world cryptanalysis work, common patterns include:
from sage.all import *alongsidepwntoolsremote interaction.- Factoring and formatting factorization answers for oracle protocols.
- Elliptic curve order / point lifting / discrete-log solves.
- Lattice assembly via identity/augment/stack +
LLL(). - Finite-field polynomial construction and resultant-based elimination.
.sagesolvers combining bitwise transforms, polynomial operations overGF(2^N), and iterative remote interaction rounds.
Output hygiene
- Convert Sage integers to Python ints before serialization.
- Convert numeric secrets to bytes with explicit endianness/length handling.
- Keep deterministic seeds/options when random components appear.
Resources
references/python-sage-scripts.md— authoritative patterns for.sageandsage -pythonworkflows, imports, interoperability, and pitfalls.references/cryptanalysis-patterns.md— practical cryptanalysis templates (GF, EC, lattice, polynomial elimination) grounded in real solver style.
Arquivos desta versão
references/27.3 KB
- cryptanalysis-patterns.md5.3 KB
- python-sage-scripts.md2.0 KB
- SKILL.md2.3 KB
Permissões
| Permissão | Declarada | Encontrada na varredura |
|---|---|---|
| Lê arquivos | Não | Não |
| Grava arquivos | Não | Não |
| Roda comandos no shell | Sim | Sim |
| Usa a rede | Não | Não |
| Usa conectores | Não | Não |
| Controla um navegador | Não | Não |
Achados da varredura
Revisado em 13 de nov. de 2026
A varredura não encontrou nada para apontar nesta versão.
Uma varredura limpa reduz o risco, mas não prova que o pacote é seguro. Leia o que você instala.
| Versão | Publicada em | Commit | SHA-256 | Assinatura | Mudança de permissão |
|---|---|---|---|---|---|
| v2026.11.13-21cd568 | 13 de nov. de 2026 | 21cd568 | 4cfb0bdd | Assinada | – |
Mais de AeonDave
Tudo deste publicadorMais em Criptografia e Web3
Ver a categoriaPergunte tudo o que o seu escopo permite.
Crie a conta, adicione créditos e faça a primeira pergunta no chat ou no terminal.
- 1/3
Crie a conta
Individual ou empresa. Dá para virar empresa depois sem perder saldo nem chaves.
Pessoa físicaEmpresa - 2/3
Adicione créditos
No cartão. Você paga por token, sem assinatura.
$5.00recarga mínima - 3/3
Pergunte
No chat, ou instale o CLI e rode notholy login no terminal.
$ notholy login