anne O'nymous just confirm for me that one can make a virus in python, or for that matter in any coding language.
I confirm
You must be registered to see the links
, like it's possible
You must be registered to see the links
by example.
The Python example is of course limited, because intended as educational, but the Perl one is more evolved, and totally feasible in Python.
The instant it's a coding language that handle disk access, it's possible to make
You must be registered to see the links
, or
You must be registered to see the links
, and even to make
You must be registered to see the links
or
You must be registered to see the links
if the language also have network capabilities. Both Ptyhon and Perl provide an interface to the OS and, at least for Perl, I'm not 100% sure for Python, with a bit of knowledge it's perfectly possible to do it without the need of an external package/module. What mean that both permit to deeply mess with a computer.
The fact that they are script languages do not prevent them to be used that way. This especially since, unlike most script language, Python also works with pre-"compiled" scripts. This while there's at least one software that permit to have Perl scripts distributed as exe files, and so purely binary versions. Both mean that, by default, the user can perfectly not have access to the sources.
It's possible, and relatively easy to "uncompile" the pyo/pyc files, not to do the same with Perl pre-compiled code turned into exe. But in the same time, it's also possible to strongly complicate this task even for Python. un.rpyc, by example, use a magic method to embed the different python modules it need inside a rpyc file, and the same kind of method can be used to embed modules into a pyo/pyc file.
And, of course, once the source in front of you, you'll still need to understand them. While being mostly focused on readability, contrarily to Perl, Python style have enough obfuscation capabilities to make someone struggle to see that a malicious code hide in between something that seem innocent.
I talked only about Python and Perl, because it's the languages I know the most, and because initially the question is about Python. But, as I said above, it apply to
every single coding languages. Even the different forms of BASIC permit to make viruses, this whatever if it's
You must be registered to see the links
, or
You must be registered to see the links
(yeah, TI stand for Texas Instrument, and the viruses are for a calculator).