Notes
  • πŸ‘€About me
  • ℹ️Good Reads
  • 🌐Web
    • Web Pentesting Checklist
    • Insecure Deserialization
    • Blind XPath Injection
    • GraphQL
    • Reverse Shells
      • IIS
    • Content-Security-Policy
      • XSS (Static Nonce in CSP)
    • LLM (Large Language Models)
  • πŸ“˜Windows API
    • C# - P/Invoke
  • β˜•Miscellaneous Topics
    • Phishing with Gophish
    • Pentest Diaries
      • SQL Queries via Grafana
      • LDAP Pass Back Attack
      • Misconfigured File Upload to RCE
  • πŸ§ƒHack The Box
    • Intelligence
    • Seal
    • Under Construction
    • Previse
    • Return
    • Sauna
    • Nest
  • πŸ“•TryHackMe
    • Wordpress CVE-2021-29447
    • Attacktiv
    • Fortress
    • internal
  • πŸ› οΈCheatsheet
    • Anti-Forensic Techniques
    • JSON - jq
    • Docker
    • Hidden Secrets
    • Database Exploitation
      • PostgreSQL
        • Blind SQLi script
      • SQL Server
    • C Sharp
    • Reversing
      • Windows
    • SSH
    • Python
      • Miscellaneous Scripts
        • Credential Bruteforcing a CLI service
    • Privilege Escalation
      • Windows
    • socat
    • OSINT
      • Shodan
    • Installation
Powered by GitBook
On this page

Was this helpful?

  1. Cheatsheet

Hidden Secrets

PreviousDockerNextDatabase Exploitation

Last updated 2 years ago

Was this helpful?

1. Base64 Encoded String

This is by far the best tool as compared to detect-secrets('yelp') or trufflehog('trufflesecurity') when finding base64 encoded strings in a text file(such as .html).

base64dump.py -u -s a -S <file>

-u, --unique

-s select item nr for dumping (a for all)

-S, --strings perform strings dump

Have converted three example strings to base64:

echo 'secret affairs.....in 8-bit amigo!' | base64
echo 'FLAG<123456789>' | base64
echo '<secret>12345</secret>' | base64

and hid them in an html file downloaded from a random website such as 'Lorem Ipsum'. Then, ran the tool:

β”Œβ”€β”€(rootπŸ’€kali)-[/home/kali/]
└─# base64dump.py -u -s a -S index.html 
FLAG<123456789>
<secret>12345</secret>
secret affairs.....in 8-bit amigo!
+-jG
*'jYr
^v+Z
bz{^
{kji

πŸ› οΈ
Update: base64dump.py Version 0.0.12Didier Stevens
Tool
Logo