Python is the easiest one to learn. It is the most used language for exploit
writing as Python is the easiest programming language to write automation
scripts because of pre-bult libraries with some powerful functionality.
Python has some important features that make it particularly useful for
hacking, but probably most importantly, it has some pre-built libraries that
provide some powerful functionality. Python ships with over 1,000 modules
and many more are available in various other repositories. This isn’t to say
that scripting languages like BASH, Perl, and Ruby can’t do the same things
as Python, but building those capabilities are much easier using Python