मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी6.5k · #14032

crypto-decode

यह क्या करती है

यह गाइड अज्ञात टेक्स्ट को पहचानने और डिकोड करने में मदद करती है, जैसे एन्कोडेड मान या पासवर्ड hash। यह सीखने वालों, पहेली हल करने वालों और उस डेटा के विश्लेषकों के लिए है जिसे देखने का उनका अधिकार है।

कब इस्तेमाल करें

  • ✓जब आपके पास कोई एन्कोडेड स्ट्रिंग हो और जानना हो कि उसमें कौन-सी एन्कोडिंग है।
  • ✓जब आपको कोई पासवर्ड hash मिला हो और उसका प्रकार पहचानना हो।
  • ✓जब कोई CTF चुनौती अज्ञात ciphertext दे और उसे हल करना हो।

Skill का लिंक

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/crypto/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/crypto/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मुझे एक फ़ाइल में एक लंबी स्ट्रिंग मिली है जो एन्कोडेड लगती है। क्या आप पता लगा सकते हैं कि यह क्या है और उसे डिकोड कर सकते हैं?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट एन्कोडिंग का अनुमान लगाने के लिए स्ट्रिंग का अक्षर-पैटर्न जाँचता है, मेल खाने वाले decoders आज़माता है, और जब नतीजा सामान्य टेक्स्ट जैसा पढ़ा जाए तब रुक जाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Crypto / Decode Playbook

When you have unknown ciphertext (CTF flag, leaked DB field, captured token, encoded payload), the right tool depends on the cipher class.

1. Identify FIRST

Unknown text → automated cracker

# Ciphey — original (Python, slowed maintenance)
ciphey -t "$CIPHERTEXT"

# Ares — Rust rewrite (faster, current)
ares -t "$CIPHERTEXT"

A*-search across 16+ decoders (base64, base85, hex, Caesar, ROT-N, Atbash, Vigenere, XOR-known-plaintext, URL encoding, binary, morse, brainfuck, esolang, leetspeak, etc.) + BERT plaintext detector to know when to stop.

Hash → identify type

hashid -m '$2a$12$....'             # bcrypt 12 rounds
hashid -m '5f4dcc3b5aa765d61d8327deb882cf99'  # MD5
hash-identifier

Specific format checks

# JWT
echo $TOKEN | cut -d. -f1-2 | tr '_-' '/+' | base64 -d 2>/dev/null

# Hex → bytes
echo "$HEX" | xxd -r -p

# Base64 → bytes (handle URL-safe)
echo "$B64" | tr '_-' '/+' | base64 -d 2>/dev/null

# Multi-encoded (unwind layers)
echo "$BLOB" | base64 -d | base64 -d | xxd -r -p

2. Classical cipher quick-checks

Cipher Signature
Base64 [A-Za-z0-9+/=]+, len multiple of 4
Base32 [A-Z2-7=]+
Hex [0-9a-fA-F]+, even length
Caesar/ROT only A-Z + spaces, freq-attack ready
Vigenere A-Z, multiple-of-key-length repeating bigrams
Substitution A-Z, IC ≈ 0.066 (English)
Vernam/OTP random-looking bytes, no statistical signal
XOR fixed-key bytes w/ printable XOR'd against pattern (file headers leak)
Hill small block size, matrix-based

3. CyberChef recipe library

CyberChef (gchq.github.io/CyberChef) is the GUI workhorse but recipes can be exported as JSON and chained programmatically:

# Common chains
"From Base64 / Magic / To Hex"
"From Hex / XOR (Brute) / Magic"
"AES Decrypt(KEY) / From Hex / Strings"

CLI version: cyberchef-cli (community port).

4. Hash cracking quick-ref

Mode Hash type
0 MD5
100 SHA-1
1400 SHA-256
1700 SHA-512
1000 NTLM
13100 Kerberos TGS-REP (etype 23)
19700 Kerberos TGS-REP (etype 18)
18200 Kerberos AS-REP
16500 JWT (HS256)
3200 bcrypt
7400 sha256crypt $5$
1800 sha512crypt $6$
22000 WPA-EAPOL+PMKID
7100 macOS v10.8+ (PBKDF2-SHA512)
8200 1Password Cloud Keychain
hashcat -m <mode> hashes.txt rockyou.txt -r best64.rule
john --format=<format> hashes.txt --wordlist=rockyou.txt

5. Token / blob unfolding workflow

For a mystery token captured in HTTP traffic:

1. ciphey/ares → reveal base layer
2. If structured (JSON / proto3 / msgpack) → parse
3. If still encoded → repeat step 1
4. Look for HMAC / signature suffix → identify symmetric key candidates
5. If symmetric encryption suspected → try AES-CBC/GCM w/ common keys
   (app-name, "secret", env vars exposed elsewhere)

6. Decepticon integration

Wrap as MCP tool:

# decepticon/tools/crypto/decode.py — skeleton
def crypto_decode(ciphertext: str, hint: str = None, timeout: int = 30) -> dict:
    """Try ares first (fast), fallback to ciphey, return best decode."""
    import subprocess
    cmd = ["ares", "-t", ciphertext]
    if hint:
        cmd += ["--language", hint]
    r = subprocess.run(cmd, timeout=timeout, capture_output=True, text=True)
    return {
        "tool": "ares",
        "output": r.stdout,
        "confidence": _parse_ares_confidence(r.stdout),
    }

Promote to KG when classification succeeds:

kg_add_node(kind="artifact", label=f"decoded:{hash}",
            props={"plaintext": result, "encoding_chain": chain})

7. Severity (depends on what was decoded)

Decoded content Severity
Plaintext password Critical (depends on user role)
API key / private key Critical
Internal hostname / IP Medium
Session token High-Critical
Encryption key Critical

Cross-references

Known exemplars

  • CTF flag formats (90% are base64, hex, or rot-N layers)
  • Mobile reverse engineering: API keys often base64-XORed in strings
  • IoT firmware: AES-CBC w/ hardcoded keys recoverable via Ciphey + ghidra
  • Phishing email obfuscation: nested encoding chains common
अक्सर पूछे जाने वाले सवाल

कौन-सी एन्कोडिंग पहचानी जाती हैं?

गाइड base64, base32, hex और सरल substitution ciphers जैसे आम प्रारूप कवर करती है।

hash कैसे पहचाना जाता है?

यह एक hash पहचानने वाला टूल इस्तेमाल करता है, जो hash प्रारूप को संभावित hash प्रकारों से मिलाता है।

क्या यह केवल पहेलियों के लिए है?

यह किसी भी अज्ञात टेक्स्ट के लिए उपयोगी है, जैसे कोई टोकन या एन्कोडेड फ़ील्ड जिसे देखने की अनुमति हो।

जानकारी

लेखक का मूल विवरण

Cipher detection + automated decryption via Ciphey, Cyberchef recipes, hashcat hash-ID, format conversion, common encoding chains.

repo: BitterSecurity/Decepticon

लोकप्रियता

GitHub स्टार
6.5k
रैंकिंग में स्थान
#14032
लाइसेंस
Apache-2.0
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

detector-overview

6.5k

यह आपके एजेंट को स्कैनर से चिह्नित कोड पढ़ने और तय करने में मदद करती है कि कौन सी जगहें असली सुरक्षा बग हैं और कौन सी गलत चेतावनी।

कोडिंगसिक्योरिटी

exploiter-overview

6.5k

यह आपके एजेंट को कई पक्की सुरक्षा कमज़ोरियों को एक परीक्षण श्रृंखला में जोड़ने और जाँचने में मदद करती है कि वह श्रृंखला कितनी दूर तक पहुँच सकती है।

कोडिंगसिक्योरिटी

llm-redteam-overview

6.5k

यह आपके एजेंट को परीक्षण के लिए सही AI रेड-टीम गाइड खोजने में मदद करती है, प्रॉम्प्ट इंजेक्शन से लेकर मॉडल के दुरुपयोग तक 15 रणनीति समूहों में।

कोडिंगसिक्योरिटी

aatmf-t01-prompt-injection

6.5k

समझाती है कि प्रॉम्प्ट इंजेक्शन क्या है, जिसमें छिपे निर्देश AI सिस्टम के नियम बदलने की कोशिश करते हैं, ताकि सुरक्षा परीक्षक उसकी जाँच कर सकें।

कोडिंगसिक्योरिटी

मिलती-जुलती skills