This question already has an answer here:
I purchased a 2008 Mac from a friend. It's now formatted and internet recovery option is not working for a fresh install. I want to create a bootable USB drive in a Windows machine. I am unable to download El Capitan without the Mac App Store. How do I install a fresh copy?