I'll just add to what others have already provided.
- "Black Hat Go" - https://nostarch.com/blackhatgo
- "Black Hat Python" - https://nostarch.com/blackhatpython
- "Web Security for Developers" - https://nostarch.com /websecurity
- "Cracking Codes with Python" - https://nostarch.com/crackingcodes
Highly recommend those NoStarch books. Of course, depends what you want to pentest, but this is good general information to get started.