This is the verse riff to "Pretty Fly For A White Guy"
by The Offspring
The 2 note chords follow an across and up the neck then across and down the neck pattern.
I use 1st and 4th fingers for the chords but you could use 1st and 3rd.
Once you have the pattern established this is fairly easy to play - start slowly till you've got it then speed up