@ ECHO off & PUSHD %tmp%
SETlocal ENABLEDELAYEDEXPANSION
SET rand=!ranDOm!
IF not exist "%~1" (
SET/P"=%~1"<nul >$_!rand!
SET FilePATh=$_!rand!
) ELSE SET "FilePATh=%~1"
DEL /F $_!rand!_ 2>nul
FOR %%a IN ("!FilePath!") DO ^
Fsutil file creATenew $_!rand!_ %%~za >nul
SET Alphabet=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
SET /A Counter=0
DEL /F $_!rand!_$ 2>nul
(FOR /F "Tokens=2" %%. IN (
'Fc /b "!FilePath!" $_!rand!_ ^| Findstr /R /C:"[0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F][0-9A-F]: [0-9A-F][0-9A-F] 00"'
) DO (
SET /A Counter+=1
SET/P"=%%. "
IF !Counter! EQU 3 (
SET /A Counter=0
ECHO.
)
))<nul >$_!rand!_$
DEL /F $_!rand! $_!rand!_ 2>nul
SET Endstr=
(FOR /F "Tokens=1-3" %%A IN ($_!rand!_$) DO (
IF "%%C" EQU "" (
IF "%%B" EQU "" (
SET /A "Bse1=0x%%A>>2,Bse2=(0x%%A&0x3)<<4,Bse3=Bse4=64"
) ELSE SET /A "Bse1=0x%%A>>2,Bse2=((0x%%A&0x3)<<4)|(0x%%B>>4),Bse3=(0x%%B&0xf)<<2,Bse4=64"
) ELSE SET /A "Bse1=0x%%A>>2,Bse2=((0x%%A&0x3)<<4)|(0x%%B>>4),Bse3=((0x%%B&0xf)<<2)|(0x%%C>>6),Bse4=0x%%C&0x3f"
FOR /L %%. IN (1 1 4) DO FOR %%' IN (!Bse%%.!) DO (
IF "!Alphabet:~%%',1!" EQU "=" (
SET "Endstr=!Endstr!="
) ELSE SET/P"=!Alphabet:~%%',1!"
)
))<nul
ECHO.%Endstr%
DEL /F $_!rand!_$ 2>nul