I'm basing this tab off of this video:
Rory Gallagher - Bad Penny - (1987) - YouTube
I love this song but couldn't find any tabs online, so I'm going to post what I have (it might not be exactly correct).
Guitar plays main riff two times before bass comes in
Then the main riff: (repeat for most of the whole song)
G||--------------------------------------------||
D||------------3--------0h2h3- 0----------||
A||--5-5-------------3-----------------0-3--||
E||--------1-1--------------------------------||
Then the slower part:
G||------------------------------------------------------------||
D||------------------------------------------------------------||
A||--3---3-3-3----------3--3--3----------1--1--1--------||
E||----------------3--------3--3--3-----------1--1--1-----||
Then you go back to the main riff all the way through the guitar solo.
In the live version after the guitar solo is a bass solo which I haven't figured out but in the video it looks like he's messing around in a scale based around the D on the A string (5th fret). I'm going to assume a blues scale but I don't know.
Would anyone want to look into that, because it seriously kicks ass.