Bump on shaft of penis? Please help!

hello everyone and thank you to those that respond to this! I found this bump on the shaft of my penis around 5 to 6 months ago and has stayed there since then. if I squeeze it yellow pus comes out of it like a pimple but it never goes down completely. what is this and must i have surgery to remove it? I will attach pictures. Thanks!

image

image

There are 2 or 3 things this can be, what you need to treat is the yellow pus as that is an infection.
Get yourself some LIQUID antiseptic (dettol or tcp are typical brands) and place a dab of undiluted on a fingertip and apply to the wound 3 or 4 times a day. Apply after you have had a shower or washed your penis.
The wound should begin to heal after 3 or 4 days - if there is no other problem present the bump will reduce in size - but continue to apply the antiseptic until the area returns to normal. If the bump remains then it is possible you also have something like a penile cyst - these are caused by pressure within the penis and are usually linked to sex and masturbation. A penile cyst will slowly reduce in size over a period of 5 to 9 months as long as no further pressure is applied to it