It is only later that the term is used on Korean, during the Korean War; but the original Gooks are the Filipino who were under the US occupation, it is a basstizied term from the Filipino Tribes called Goo-Goo Tribe!
http://en.wikipedia.org/wiki/Ethnic_slur