The lust of the flesh is a powerful and terrible thing God will work it out in his time.
I remember my granddad at the age of 80 after smoking all his life told me one day he quite, I ask how'd you do it, he said I just through them down, if you don't go to them they can't come to you he said he lived 3 more yrs. never smoked again.
once when in my 30's I was addicted to cocaine for like 3 yrs I almost lost everything, I knew I had to do something or I would lose my wife, kids, home, everything, the craving for it was insane especially on Friday afternoon, so one Friday afternoon I took a small bible and headed to the mountains found me a place to sit and read the bible a little and just watched nature, squirrels, deer, turkeys what ever, I knew I was so weak that I had to give up my friends who used it I couldn't be around it just to weak.
Its been so long now i don't remember how long it took but I stuck with it and each week it got easier never went back thank God.
Been down the porn road too, porn is like cancer it will eat you alive it will take you places you don't won't to go, I thank God he took my desire away, I was going to take that part out but that wouldn't be really true, I should say God gave me strength to over come my desire to watch porn and it didn't happen over night, i'm 64 and if I could just say to anyone do what ever you can from letting your eyes see porn, I haven't watch porn in years but what I did watch still burns in my flesh its something satan will use against you longer than you will want.
I had to go to the mountains, stay away from old friends and find new ones and with the help from God I made it through, you might want to get all excess to porn out of reach, the flesh is weak, the farther and longer you can stay away from porn the stronger the spirit will get, I know what you are going through and I say these things to you in Love
Terry