❔ Is it possible to scan for viruses/abnormal text in .txt using c#?
I have tried to research if it possible but couldnt find any
20 Replies
A text file can't exactly contain a virus
oh
how about scanning for abnormal text in the file
What do you consider "abnormal"?
smth like jumble up words and number
d41d8cd98f0d
What makes that abnormal? What if that's a GUID? What if it's a hash?
Ero#1111
REPL Result: Success
Result: Guid
Compile: 377.411ms | Execution: 28.954ms | React with ❌ to remove this embed.
if not is there any way to scan the txt file
Scan it for what?
You need to have a clear goal
like random hashes that is not suppose to be in the file
as it is a text file
Why not? I can store anything i want in a text file, no?
true
If i choose to store "d41d8cd98f0d" in a file, because that has some significance to me, then i will do that
but what if you dont want that
like in a text from an email
an email can contain keys like that as well. perhaps for verifying timestamps
so basically, what you wanna try and do is check whether a text has only english words, or something?
yes
that's both not easy (as in, incredibly difficult, actually), and perhaps not even possible
man sry for not explaining it well
nvr struck my mind
if we're talking emails: a person's name doesn't need to be an english word
if the person is foreign, for example
just ignore, isolate and delete the file
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.