The man tried to cash in on the boy's ignorance.
Cash in on; means take advantage of or exploit (a situation).