> Skip to content
  • Published: 4 February 2020
  • ISBN: 9781593278656
  • Imprint: No Starch
  • Format: Paperback
  • Pages: 368
  • RRP: $67.99

Black Hat Go



Like the best-selling Black Hat Python, Black Hat Go explores the darker side of the popular Go programming language. This collection of short scripts will help you test your systems, build and automate tools to fit your needs, and improve your offensive security skillset.

Black Hat Go explores the darker side of Go, the popular programming language revered by hackers for its simplicity, efficiency, and reliability. It provides an arsenal of practical tactics from the perspective of security practitioners and hackers to help you test your systems, build and automate tools to fit your needs, and improve your offensive security skillset, all using the power of Go.

You'll begin your journey with a basic overview of Go's syntax and philosophy and then start to explore examples that you can leverage for tool development, including common network protocols like HTTP, DNS, and SMB. You'll then dig into various tactics and problems that penetration testers encounter, addressing things like data pilfering, packet sniffing, and exploit development. You'll create dynamic, pluggable tools before diving into cryptography, attacking Microsoft Windows, and implementing steganography.

You'll learn how to:
• Make performant tools that can be used for your own security projects
• Create usable tools that interact with remote APIs
• Scrape arbitrary HTML data
• Use Go's standard package, net/http, for building HTTP servers
• Write your own DNS server and proxy
• Use DNS tunneling to establish a C2 channel out of a restrictive network
• Create a vulnerability fuzzer to discover an application's security weaknesses
• Use plug-ins and extensions to future-proof productsBuild an RC2 symmetric-key brute-forcer
• Implant data within a Portable Network Graphics (PNG) image.

Are you ready to add to your arsenal of security tools? Then let's Go!

  • Published: 4 February 2020
  • ISBN: 9781593278656
  • Imprint: No Starch
  • Format: Paperback
  • Pages: 368
  • RRP: $67.99

About the authors

Chris Patten

Chris Patten is currently Co-Chair of the International Crisis Group and of the Anglo-Indian Round Table, and is Chancellor of Oxford and Newcastle universities. As a British MP from 1979 to 1992 he served as Minister for Overseas Development, Secretary of State for the Environment and Chairman of the Conservative Party, being described afterwards as 'the best Tory Prime Minister we never had' (Observer). In 1998-9 he chaired the Independent Commission for Policing in Northern Ireland, and from 1999 to 2004 he was European Commissioner for External Relations. He is probably best known for being the last Governor of Hong Kong (1992-7), about which he wrote in East and West (1998). Both that and his most recent book, Not Quite the Diplomat: Home Truths about World Affairs (2005), were No. 1 international bestsellers. He was made a Companion of Honour in 1998 and a life peer in 2005.

Related titles