D
D
David Park2017-12-03 11:59:44
Python
David Park, 2017-12-03 11:59:44

Is it possible to write an antivirus in python?

Good afternoon, I'm interested in antiviruses.
Running around the expanses of the Toaster, I didn’t really find anything, is it possible to create an antivirus in python.
Since I am learning python and maybe it will become my main language, I want to know if it is possible to make an
antivirus in python? And in general, is it worth climbing into the field of information security with the python language?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ruslan Gilfanov, 2017-12-03
@Xproz

1. Theoretically, you can write an antivirus. But for a more or less sane antivirus, you need performance and access to lower-level things than Python allows out of the box.
Many Python libraries are wrappers for C/C++ libraries. And in C / C ++ code, assembler inserts can generally be used. In this sense, in Python you can throw in a call to any low-level code.
Everything that is necessary for writing an antivirus should have a free implementation in C / C ++ long ago and be in the public domain. A lot of things can already have wrappers or bindings for Python, and what doesn't have - so with knowledge of C / C ++ they can be done.
The final Python program can rely entirely on compiled C code, so the performance is not much lower, but the possibilities are the same.
The main disadvantages of developing desktop programs in Python are:
An information security specialist must know low-level languages ​​\u200b\u200b- assembler and C.
In addition, it is useful to know:

  • computer architecture (especially how the processor and RAM work - the topic intersects with knowledge of assembler),
  • architecture of operating systems (close to computer architecture, but the topic overlaps more with C/C++ programming languages),
  • computer network technology,
  • algorithmization,
  • cryptography.

D
Dimonchik, 2017-12-03
@dimonchik2013

possible
but not very justified: you need to open / scan a bunch of files, the same Go will do it much faster

P
pfg21, 2017-12-03
@pfg21

can.
there will be no problems with the doctor, but in any case, you will have to delve into the work of the wasps with the monitor.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question