K
K
Kaktys_DH2020-07-18 18:47:19
assembler
Kaktys_DH, 2020-07-18 18:47:19

Assembler vs C?

Hello, I would like to know in what language viruses (malvaries) are written. C or assembler? If you write in assembler, and it has a lot of architectures for each processor, that is, the virus will be designed for only one purpose, and in C, any processor is suitable, but in assembler the virus weighs much less and runs much faster, how to decide on language?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
D
Deleting Account, 2020-07-18
@Kaktys_DH

In general, as a rule, they learn C, and then, if necessary, assembler. I would recommend that you first learn C, and then read the book "the art of the exploit", or immediately start with this book, it is for dummies, and it covers both C and assembler, and writing viruses.

D
Dr. Bacon, 2020-07-18
@bacon

With each of your questions, you only confirm the fact that no "hacking" is going to happen to you. PHP or something to start with, maybe you can do something on the web.

V
Vladimir Korotenko, 2020-07-18
@firedragon

There is 1 Windows platform, and they write under it. More precisely under 32/64 bits.
Everything else is vanishingly small.
However, they often write for a specific applied language. For example VBA. And they write very well.

A
Alexander, 2020-07-18
@NeiroNx

Well, the injection code will still have to be written in machine language, since the programs are already in machine language in memory. And the whole hacking goes through various kinds of overflows - when a piece of code (injection) crawls out of the boundaries allotted for any buffer and is eventually executed. Naturally, you need to know both C and ASM and everything else about the target system.

F
freeExec, 2020-07-18
@freeExec

They write a virus not for the processor, but for the operating system, for the most part, even for a specific version.
In assembler, it does not work much faster , but it takes much longer to write.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question