Squats primarily work the quads, but also activate the hamstrings. The more upright you stay in your squat, the more you will activate your quads, especially if you keep your chest high and push through your quads correctly when standing.