lainchan / sec

Perl or python

Lain Iwakura · 2018-08-16 22:12
I was thinking of getting to learn more about /sec/. I know that Perl used to be the way to go 10 years ago. How is the situation now? Should i go for Perl or python? I know C and C++
Ivan Petrov · 2018-08-16 23:46
There's a lot of exploits written in python, so its very good to know. C is also useful for this. If you're going to be blue teaming some might argue perl is good to know for writing scripts on servers. But it seems to be going out of favor, so other than that a use case does not come to mind.
Donna Hawthorne · 2018-08-17 02:02
>>5600 Python would give you the greater coverage.
Agent Richard Gill · 2018-08-18 13:27
>>5600 It doesn't really matter what language you learn. Most infosec people use python, because it's a very easy-to-learn language with a lot of modules (read: makes coding tools trivial). If you know C/C++ learning a higher-level scripting language should be easy for you.
Koichiro · 2018-08-19 05:57
I personally really like Perl5, just in terms of syntax. It's decently fast and has a smaller community. But the latest Perl, Perl6 seriously cannot be called Perl. They changed all kinds of soykaf and even though I haven't personally tried it for anything serious, I'm not really a huge fan of it. It's an entirely new language, and I'm disappointed that the devs allowed all this to happen. Python has a giant community, is still pretty fast and support will always be super easy. Lots of libraries too. But the coredev/founder of CPython (the official python builds) just stepped down, appointing no one to fill him in the role, so there may be new changes coming soon as well. But yeah, Python might still give you better insight into the world of security since you can just get down and dirty and pull a script out of your ass extremely quickly.