Skip to content

Instantly share code, notes, and snippets.

View ashishsecdev's full-sized avatar
💭
Learning!

Ashish Bansal ashishsecdev

💭
Learning!
View GitHub Profile
@ashishsecdev
ashishsecdev / 18.04-openscap.md
Created October 18, 2021 14:50 — forked from CalvinHartwell/18.04-openscap.md
Using OpenSCAP on Ubuntu 18.04 LTS

Using OpenSCAP on Ubuntu 18.04 LTS

Installation Instructions

First we install the following packages to use the openscap command-line tool: sudo apt-get install libopenscap8 python-openscap

We will also install the SCAP security guide: sudo apt install ssg-base ssg-debderived ssg-debian ssg-nondebian ssg-applications

Retrieves all of the trust relationships for this domain - Does not Grab Forest Trusts
([System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()).GetAllTrustRelationships()
Grab Forest Trusts.
([System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()).GetAllTrustRelationships()