Pinworms get inside the body when you swallow their eggs. The eggs may be carried on hands and surfaces such as:  Bed linens. Clothing. Drinking glasses. Toilets.