Introduction
In the previous chapter, we learned about several powerful meterpreter commands which can be very helpful in post-exploitation. Meterpreter adds a lot of flexibility to the post-exploitation process by providing a very interactive and useful command interpreter. It not only eases the task, but also makes it more powerful and comprehensive.
In this chapter, we will take meterpreter a step ahead by learning some advanced concepts. So far, we have been using various commands and scripts that Metasploit provides to us, but during the process of penetration testing, a situation may arise when you will have to add your own scripts to meterpreter. The modular architecture of the platform makes it very easy to develop and integrate your own scripts and modules.
We will start this chapter by learning some advanced meterpreter functionalities such as passing the hash, pivoting, port forwarding, and so on. Then, we will move to developing our own meterpreter scripts. In order to understand...