definitely the EQ on the amp combined with mic-placement.
I can recommend Tritone ClassicTone for agressive guitars! (I tend to set up it usually like reverse smile curve) Also sometimes Tritone ValveTone is very nice on guitars! (but it is so special case that maybe it cannot be called EQ, it is more like some kind of "warmer" IMHO...)
Don't rely on post EQ. Try your best to get the sound right as you record, = EQ on the amp and mic placement before you record.