P
P
PavelVlas2019-09-12 16:51:26
Antivirus
PavelVlas, 2019-09-12 16:51:26

How to remove antivirus swearing on a small line in C# code?

if (!useer.IsMatch(ctb)) return false;
My ESET antivirus swears at this line ... some kind of madhouse, because it's just a regular check, what can I do?
Obfuscation doesn't help. Tried different obfuscators.
And even like this:
(!他.IsMatch (能能能能能能能能能能能))

Answer the question

In order to leave comments, you need to log in

3 answer(s)
#
#, 2019-09-13
@mindtester

remove "Eset". native Windows antiviral is more than enough for a quiet life. if you have a "windows assembly", I recommend a clean distribution

O
One Miay, 2019-09-13
@Miay

if user.IsMatch(ctb) != true return false;
or
var res = user.IsMatch(ctb)
if (!res) return false;
:)))
In general, I have a strange antivirus that reacts to the source code, ReSharper needs to get such a function

T
Timur Yakubov, 2019-09-13
@Kaidoz

Try adding meaningless checks "string".Contains("string") to the condition.
You can also move the check into a separate function, perhaps a certain code sequence creates a suspicious signature for av.
Obfuscation is more likely to help if you use a non-public obfuscator (Eazfuscator, AppFuscator).
If it does not help, then you have to put up with it. In 2k19, antiviruses swear at everything they can.
And why did you decide that the antivirus swears at this code?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question