Legacy is windows based machine. The IP address of Legacy is 10.10.10.4
By, using nmap I had found some ports open.
These ports are 139,445,3389. By looking at this scan result it is clear that it is windows XP machine and there is a service running SMB2.
After, that I googled that its exploit is available or not.
And, by luck we directly got the cve number, so, after that, I just open msfconsole.
And exploit it and directly got the root access