keklick1337 3e5ad3972d first commit
2025-03-02 13:16:37 +04:00
2025-03-02 13:16:37 +04:00
2025-03-02 13:16:37 +04:00
2025-03-02 13:16:37 +04:00
2025-03-02 13:16:37 +04:00

StealthHTML

Hey, welcome to StealthHTML! This little tool is all about scrambling your HTML code to make it a bit more... sneaky. Want to keep your code under wraps or just throw off anyone trying to peek under the hood? StealthHTMLs here to help you turn your HTML into a cryptic masterpiece, all while keeping it looking normal on the surface.

Whats This All About?

HTML obfuscation is like putting your code through a blender—it still works and looks the same, but good luck to anyone trying to figure it out. Whether youre hiding something clever or just having a laugh, StealthHTML throws in tricks like invisible characters, random junk, and shuffled styles to keep things interesting.

Cool Stuff It Does

StealthHTMLs got a bunch of neat features to play with:

  • Random Text: Generates innocent-looking filler text from safe word lists.
  • Invisible Characters: Slips in zero-width characters to spice things up without changing the look.
  • CSS Shuffle: Jumbles your CSS properties so its a total guessing game.
  • Extra Bits: Adds random classes, IDs, and hidden elements to throw people off.
  • Link & Image Twists: Tosses in random link parameters and sneaky invisible images.
  • Word Lists: Pick from general, technical, or marketing dictionaries to match your style.
  • Your Rules: Tweak how wild you want the obfuscation to get.

How to Get It Running

Setting up is super simple:

  1. Grab the Code:

    git clone https://github.com/keklick1337/StealthHTML.git
    
  2. Jump In:

    cd StealthHTML
    
  3. Load It Up:

    pip install -r requirements.txt
    

How to Use It

Once youre good to go, its a piece of cake:

  • Make a Sneaky File:

    python stealthhtml.py input.html -o output.html
    

    This spits out a scrambled output.html from your input.html.

  • Quick Peek:

    python stealthhtml.py input.html
    

    See the magic right in your terminal.

Tweak It Your Way

Youve got options to mess with the obfuscation:

  • --min_words: Shortest random text length. (Default: 2 words)
  • --max_words: Longest random text length. (Default: 5 words)
  • --invisible_char_prob: Chance of sneaking in invisible characters. (Default: 15%)
  • --span_prob: Odds of tossing in a hidden <span>. (Default: 40%)
  • --comment_count: How many random comments to add. (Default: 1)
  • --meta_count: Number of extra meta tags. (Default: 1)
  • --table_count: How many hidden tables to sneak in. (Default: 1)
  • --style_count: Number of random style tags. (Default: 1)
  • --image_count: How many invisible images to drop. (Default: 1)
  • --script_count: Number of random script tags. (Default: 1)
  • --rare_tag_count: How many weird tags (like <article>) to throw in. (Default: 1)
  • --header_count: Number of hidden headers (like <h1>) to add. (Default: 1)
  • --dictionary: Word list to use: general, technical, or marketing. (Default: general)

Some Fun Examples

Heres how you might play around with it:

  1. Basic Scramble:

    python stealthhtml.py template.html -o obfuscated.html
    

    Turns template.html into a sneaky obfuscated.html.

  2. Custom Chaos:

    python stealthhtml.py template.html -o obfuscated.html --comment_count 3 --dictionary technical --invisible_char_prob 0.2
    

    Adds 3 comments, uses techy words, and ups the invisible character chance to 20%.

  3. Terminal Teaser:

    python stealthhtml.py template.html
    

    Shows off the scrambled HTML in your console.

Wanna Chip In?

Love to have you onboard! Heres how to contribute:

  1. Fork the repo.
  2. Start a new branch (git checkout -b cool-idea).
  3. Make your tweaks and commit (git commit -m 'Added something awesome').
  4. Push it up (git push origin cool-idea).
  5. Open a pull request.

Just keep it clean and maybe toss in some tests if you can.

License

This is under the MIT License. Use it, tweak it, share it—just give a nod back to us.

Description
HTML obfuscation tool
Readme MIT 99 KiB
Languages
Python 100%