How can I know where the TARGETURL

Hi there I’m in metaspoit-framework secion and particular is post exploition, so how can I know what the exactly url which I should to used it when I exploit the target in both web page and operating systeam