A friend of mine came up behind me out of nowhere and stuck his knees into the back of my legs and made them buckle.
この場合、次のような言い方ができますよ。
ーA friend of mine came up behind me out of nowhere and stuck his knees into the back of my legs and made them buckle.
「友達がいつの間にか私の後ろにやって来て、彼の膝を私の足の後ろに突っ込んみ、私の膝がガクンとなった」=「友達に不意に膝カックンされた」
ご参考まで!