Skip to content

SecCoreGmbH/svgpoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SVG PoC from our DeepSec / BSidesVienna talk

This is just a simple PoC for embedding an HTML file inside an SVG using JavaScript and base64 encoding with XOR obfuscation. The SVG file contains JS that decodes and downloads the HTML file when the SVG is opened in a browser.

Usage

  • Prepare your HTML file (phish.html as an example)
    • Make sure to POST to the right address (127.0.0.1 is just a placeholder!)
  • Prepare your SVG template (dropper.svg as an example)
    • Change XOR key if you want to or feel free to implement better obfuscation mechanism
    • Variable "LeberkasSorte" is the embedded HTML (will be created using the python script)
    • You can change everything after the </script> tag as you wish.
  • Run the embed_html.py script to create the SVG with embedded HTML:
    python3 embed_html.py phish.html dropper.svg
  • There should now be a working dropper svg in the output folder.

Disclaimer

Always use for educational purposes. We are not responsible for what you do with it. This PoC is meant to educate blue teamers!

About

Just our PoC for generating SVG files that contain malicous JS code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors