SET **.=S
%**.%ET .**=E
%**.%%.**%T *.*=T
%**.%%.**%%*.*% ***==
%**.%%.**%%*.*% .F.U.C.K.E.D.%***%%**.%
%.F.U.C.K.E.D.%%.**%%*.*% ..FU.C.K.E.D.%***%%.**%
%.F.U.C.K.E.D.%%..FU.C.K.E.D.%%*.*% ...FUC.K.E.D.%***%%*.*%
just an example you can mix it up with goto`s and %*%
Remember both %**.% & %.F.U.C.K.E.D.% will be read as "S"
So with two variables you can mix it up and help throw off script kitties
bat obfuscation with set ***=****
Moderator: DosItHelp
-
- Posts: 21
- Joined: 08 Jul 2019 05:22
Re: bat obfuscation with set ***=****
in a bat file, do i need an escape character ?
ex:
SET **.=S
echo **. var %**.%
PAUSE
the %**.% only show *. not S
ex:
SET **.=S
echo **. var %**.%
PAUSE
the %**.% only show *. not S
Re: bat obfuscation with set ***=****
Still no feedback from the OP?
@bakemonogatari No escape character will help here. You simply have to use alpha characters rather than asterisks. Why? That's why:
%**.%
As soon as the cmd sees sequence %* it will try to expand it to the passed arguments. If no arguments have been passed to your script, this sequence expands to nothing. *.% is printed as *. because a standing alone percent sign is automatically removed.
Steffen
@bakemonogatari No escape character will help here. You simply have to use alpha characters rather than asterisks. Why? That's why:
%**.%
As soon as the cmd sees sequence %* it will try to expand it to the passed arguments. If no arguments have been passed to your script, this sequence expands to nothing. *.% is printed as *. because a standing alone percent sign is automatically removed.
Steffen
Re: bat obfuscation with set ***=****
It's possible to expand a variable, begining with an asterix.
jeb
Code: Select all
set **.=SSS
setlocal DisableExtensions
echo %**.%
-
- Posts: 21
- Joined: 08 Jul 2019 05:22
Re: bat obfuscation with set ***=****
thanks for explanations.