South Korea beat El Salvador 1-0 in their last friendly before the World Cup, with Lee Dong-gyeong scoring in the second half.