Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Cybersecurity Attacks – Red Team Strategies

You're reading from  Cybersecurity Attacks ‚Äì Red Team Strategies

Product type Book
Published in Mar 2020
Publisher Packt
ISBN-13 9781838828868
Pages 524 pages
Edition 1st Edition
Languages
Author (1):
Johann Rehberger Johann Rehberger
Profile icon Johann Rehberger

Table of Contents (17) Chapters

Preface 1. Section 1: Embracing the Red
2. Chapter 1: Establishing an Offensive Security Program 3. Chapter 2: Managing an Offensive Security Team 4. Chapter 3: Measuring an Offensive Security Program 5. Chapter 4: Progressive Red Teaming Operations 6. Section 2: Tactics and Techniques
7. Chapter 5: Situational Awareness – Mapping Out the Homefield Using Graph Databases 8. Chapter 6: Building a Comprehensive Knowledge Graph 9. Chapter 7: Hunting for Credentials 10. Chapter 8: Advanced Credential Hunting 11. Chapter 9: Powerful Automation 12. Chapter 10: Protecting the Pen Tester 13. Chapter 11: Traps, Deceptions, and Honeypots 14. Chapter 12: Blue Team Tactics for the Red Team 15. Assessments 16. Another Book You May Enjoy

Loading CSV data into the graph database

In most cases, you should be able to gather data in CSV format. This is also possible for any Nmap or Nessus results that you might want to import. Luckily, Neo4j makes it extremely straightforward to load CSV data.

If you are dealing with Nmap, then there is a nifty tool to allow you to convert results to a CSV file, which you can then import into Neo4j.

Let's walk through this scenario. Let's say you scanned the network with something such as this:

$ sudo nmap -sS -Pn -A 192.168.0.1/24 -oA results

Notice the -oA option, which outputs a variety of formats. If you don't have pip, go install it, as we will use it to install the nmaptocsv Python script from https://pypi.org/project/nmaptocsv:

$ sudo apt install python-pip

Then install the conversion tool, nmaptocsv:

$ sudo pip install nmaptocsv
Collecting nmaptocsv
  Downloading https://files.pythonhosted.org/packages/0d/3d/c81189e3408f4d54de99e83a20624c98188fe9c94a9714a643311695f4fc...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}