Migration of Persistence to Local Exploit

As requested by Sinn3r re-summiting pull request with return value handling as pointed out by him. Migration of Persistence from a post module to a local exploit module.