Imaging the internal structure of comets and asteroids is an important way to provide information about their formation process. In this paper, we investigate the possibility to image the interior of such structures with electromagnetic wave in the microwave domain (radar system) using an inverse we have shown that it is possible to detect the presence of a core in both cases.