MV Use javascript to check for alternate data streams in executable? [NTFS TRICK]

Alright, I feel this one's gonna be a pretty long post.
So... the NTFS file system (and that fs only) has an exclusive little feature called alternative data streams, where you can hide stuff inside a file.
I'm curious... is there a way to check the data of an executable through JavaScript to peek into a list of alternative data streams, and if none (or a specific one doesn't) exist, trigger a lockout?
At first I planned to have this in effect for anti-piracy (or generally any illegal use of my game, since it's free), but then I realized pirated copies of the game could still secretly have the alternate stream in them, so... nevermind.
For now I just decide to use this to make sure the player's running the game on the same file system their operating system runs; NTFS (I highly doubt operating systems normally run on FAT32/exFAT, unless you force them to; or you're running Linux. Apparently Linux doesn't run mainly on NTFS and instead uses ext4, interesting... but it IS possible to run an OS on FAT32). So if they use a FAT32/exFAT USB or something (or just any file system that's NOT NTFS, since only NTFS has the alternative data streams feature), they get locked out and told to use the better system and redownload the game (since copying data streams to a FAT drive will erase the alternative data streams, PERMANENTLY locking you out, assuming my idea works. after the alternative file streams are lost, they don't come back if you copy the game to a drive with NTFS on it; you HAVE to redownload the game).

A simpler way to do all this if my previous idea doesn't work, would just be to check the filesystem the game is running on. This is easier to fix, since all you need to do is move the game if you're not running with NTFS, instead of redownloading the game as a whole, but I feel the first method is more... idk, cruel (and unlike this method, would actually work if I were preventing "piracy").

So... [whew]… are either/both of my methods possible? I know a lot of things are possible with JavaScript but this idea might just be pushing the limits. I'm really aiming to make my game... special.

Edit: this "stream" I had in mind is kinda like a signature, like Cave Story uses © Cave Story at the end of its images, I want to put "PINORI1603" (Pinori, 16, 2004) as a message in my game's executable. This script I wanted to make basically locks you out if the signature is gone.
Just updated my post a little for a tad bit of extra context.
I don't intend to use the NTFS trick for harmful means; I simply want to make a "signature" for my game.

istg if I get warned for double posting
Hello kanyatanishande.

Any kind of offline anti-piracy check is a bad idea. That includes data hidden in an executable that will get copied anyways. Your file system idea is too complicated and sounds like more trouble than it is worth implementing. It will also lock Mac and Linux users from playing the game.
The easiest way to prevent piracy would be to release your game on steam and look at the Steamworks documentation. Of course, releasing your game on steam doesn't make it uncrackable. Anyone with the right knowledge can still skip the DRM checks. All it does is prevent very casual piracy such as casually copying files from a computer to another.
Though I don't see why you would go such lengths for what is essentially a free game. Piracy shouldn't be an issue at all for you since your game will never generate any kind of income.
A file downloaded from the internet which contains alternative data streams which is then read by an executable also downloaded from the internet. I am sure that won't look suspicious to any antivirus program.
I wonder if there also is a risk of the alternate data streams being stripped during the download process.

Seems like a technique which has a high likelihood of giving false positives to me. (I.e. legit players being locked out of playing your game)
I wonder if there also is a risk of the alternate data streams being stripped during the download process.

Seems like a technique which has a high likelihood of giving false positives to me. (I.e. legit players being locked out of playing your game)
These portions of the message were interesting to me. I’ll test something out with a friend and see what happens to them to see if any “false positives” pop up, or if they get locked out as a legit or even non-legit player.
Any kind of offline anti-piracy check is a bad idea. That includes data hidden in an executable that will get copied anyways. Your file system idea is too complicated and sounds like more trouble than it is worth implementing. It will also lock Mac and Linux users from playing the game.
The easiest way to prevent piracy would be to release your game on steam and look at the Steamworks documentation. Of course, releasing your game on steam doesn't make it uncrackable. Anyone with the right knowledge can still skip the DRM checks. All it does is prevent very casual piracy such as casually copying files from a computer to another.
Though I don't see why you would go such lengths for what is essentially a free game. Piracy shouldn't be an issue at all for you since your game will never generate any kind of income.
So, for the first part, I agree. Locking someone out just because they’re not using NTFS sounds kinda pointless, and it indeed would kill off Linux support due to the ext4 thing. And yes, the string could just be copied or replicated to avoid the lockout. This is kind-of a silly idea of mine. Also, I don’t have 100 dollars to pay for a fee to put my game on Steam. It would be pointless anyway, at least to me. Though, it does earn you a google knowledge panel quicker since Steam is trusted. Also, for the “piracy check on a free game” part, someone once told me piracy isn’t just cracking games and software, it can extend to any illegal use of such material. So… yeah. A thing I do want to prevent though, is modding without my permission. I don’t know how to prevent it, or if it’s even possible to. Anyway, TL;DR I agree, this idea is kinda dumb but besides piracy what about unauthorised modding?
You can create a hash for every file that you don't want to be modded and check those hashes at every launch. This will lock a player using modified files but a cracked version of your game can still skip that hash check.
Creating a hash for every file would probably mean checking EACH individual file, which I don't feel like doing. I think I'll just push my idea to the side. On an unrelated note, cute profile picture.

Original thread: https://forums.rpgmakerweb.com/threads/use-javascript-to-check-for-alternate-data-streams-in-executable-ntfs-trick.139909/