I've decided to learn Python. I've been a Perl hacker for over ten years and, until very recently, scoffed at the notion of the necessity and/or applicability of the object-oriented programming (OOP) model -- that is until I took a formal class on Java programming. But I digress... I like Java, but it is just too heavy for 95% of my programming (or in my case, scripting) needs.
Enter Python. For many years, I've heard and read that people rave about the benefits of Python, but was never interested because of its strong ties to OOP. Now that I have seen firsthand how the OOP model can significantly increase the software design and implementation process (because it's more aligned with the way we naturally think), I thought I'd see if Python could fit comfortably between Perl and Java.
I began simply by directly translating my Perl dnscat script to Python (i.e. keeping the procedural logic the same, just changing it to Python syntax). The direct translation was going quickly and quite well as I began, and I quickly located the parts of the API applicable to the task. It was all going well, that is, until I reached the regular expression searches on CNAME and A records. My forward progress has ceased, and I cannot see how Python can be nearly as powerful as Perl.
To be continued -- maybe...
Enter Python. For many years, I've heard and read that people rave about the benefits of Python, but was never interested because of its strong ties to OOP. Now that I have seen firsthand how the OOP model can significantly increase the software design and implementation process (because it's more aligned with the way we naturally think), I thought I'd see if Python could fit comfortably between Perl and Java.
I began simply by directly translating my Perl dnscat script to Python (i.e. keeping the procedural logic the same, just changing it to Python syntax). The direct translation was going quickly and quite well as I began, and I quickly located the parts of the API applicable to the task. It was all going well, that is, until I reached the regular expression searches on CNAME and A records. My forward progress has ceased, and I cannot see how Python can be nearly as powerful as Perl.
To be continued -- maybe...