Idapython
idaapi.get_imagebase() # Gets image base