the guitar solo shift in tonality to B minor, and the solo is based on B pentatonic minor for the firrst part. the next section is based of D and followed by F#5. D pentatonic major is used over F#5.
the outro is based on A Dorian combined with the A blues scale.