def list_shares(con):
    """
    Extracts a list of shares from the SMB connection and returns them

    Args:
        con: (SMBConnection) The SMB connection object

    Returns:
        A list of share objects
    """

    shares = [share["shi1_netname"][:-1] for share in con.listShares()]

    return shares