Good exercises for injured knees?

I injured both my knees before, so I can't bend as much as I used to.

Lunges are a big no, squats can be okay but not too many.

Jumping and kneeling hurts too after a while.

What are some good leg and butt exercises I can do without straining my knees?