攀龍附鳳

Idiom

 * 1) to ingratiate oneself with powerful or influential people so as to acquire benefits