Skip to content

Instantly share code, notes, and snippets.

@Ainevsia
Created September 5, 2019 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ainevsia/6a888971d9b8606a04aa7ca83a35858d to your computer and use it in GitHub Desktop.
Save Ainevsia/6a888971d9b8606a04aa7ca83a35858d to your computer and use it in GitHub Desktop.
// calculate lotto score
	int match = 0, j = 0;
	for(i=0; i<6; i++){
		for(j=0; j<6; j++){
			if(lotto[i] == submit[j]){
				match++;
			}
		}
	}

This is a fairy simple logical vuln but i didn't figure it out at first glance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment