JavaScript / Bat File Polyglot Malware Dropper @0xdf
JavaScript / Bat File Polyglot Malware Dropper  @0xdf
Uploaded May 2024 | Updated November 2026, 3 hours ago
I've got a `unc.js` file that is actually a polyglot, a file that meets the specs of two different languages / formats. It's not only JavaScript, but a valid Windows bat file. I'll show how to deobfuscate both the JS and the bat to see how it drops and runs a Windows binary. This malware comes from HackTheBox's Einladen Sherlock.

HackTheBox Einladen Blog post: 0xdf.gitlab.io/2024/05/02/htb-sherlock-einladen.html
HackTheBox Einladen: app.hackthebox.com/sherlocks/Einladen
Any.Run sandbox of this malware: https://app.any.run/tasks/7f7626b2-1354-440f-b94e-1e8b270de4f3/
Other examples of ployglots: 0xdf.gitlab.io/tags#polyglot

☕ Buy Me A Coffee: buymeacoffee.com/0xdf

[00:00] Introduction
[00:42] VSCode file overview
[01:24] Any.Run run
[02:05] Analysis as bat
[03:28] Replacing vars with chars
[04:56] Deobfuscated bat
[05:53] Strategy
[06:32] Conclusion

#pentest #ctf #bugbounty #golang #go #elastic
JavaScript / Bat File Polyglot Malware DropperNoSQL Injection Analysis [Shoppy - HackTheBox]Print Queue [Day 5 - Advent of Code 2024 - Python]Hacking Reportinator [Sans Holiday Hack 2023]Python UV for HackersDay 25 - Clock Signal [Revival of Code 2023 - Advent of Code 2016]Reading 700 QRs with Python [Quilt - Hacky Easter 2023]Day 17: Clumsy Crucible [AOC2023 Python]Creating a SSH Honeypot with PythonLinen Layout [Day 19 - Advent of Code 2024 - Python]Race Condition [Day 20 - Advent of Code 2024 - Python]Brute-Forcing File Read with MD5s [HackTheBox Intentions]
0xdf |

JavaScript / Bat File Polyglot Malware Dropper

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER