A woman was swimming with friends off Sydney, when she was attacked by an 11-foot shark and suffered serious leg and arm injuries.