Anyone know what this is?

image

i have this bump under my nail, its been hurting if i put pressure on it. looked like a pimple before it popped and yellowish pus came out!

image
heres a better picture