Sydney court hears terror details