Skip to content

Instantly share code, notes, and snippets.

James Preston jamesfed

Block or report user

Report or block jamesfed

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View settings.json
{
"powershell.powerShellExePath": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"files.defaultLanguage": "powershell"
}
View 5400R Reboot
boot standby
show redundancy
redundancy switchover
View WSUS-ServerCore
#Install WSUS and the IIS Web Management Service
Install-WindowsFeature -Name UpdateServices, Web-Mgmt-Service
#Create a new directory to store Updates in
New-Item -Path C: -Name WSUS -ItemType Directory
#Run the post install tasks
cd "C:\Program Files\Update Services\Tools"
.\wsusutil.exe postinstall CONTENT_DIR=C:\WSUS
@jamesfed
jamesfed / OpenVAS-2
Last active Aug 15, 2017
OpenVAS on Ubuntu Install (Part 2)
View OpenVAS-2
sudo add-apt-repository ppa:mrazavi/openvas
sudo apt-get update
sudo apt-get install redis-server nmap sqlite3 nsis rpm alien python-software-properties software-properties-common
sudo apt-get install openvas9
sudo greenbone-nvt-sync
sudo greenbone-scapdata-sync
sudo greenbone-certdata-sync
View OpenVAS-Simple-Example.ps1
#Needed for the full example
$Source = "C:\Program Files (x86)\OpenVAS-OMP"
#Use this section for the Creating a Target Section
#Create a target from a Subnet
$Subnet = "10.128.16.0/21"
$Name = "VLAN4 - Wired Clients"
& $Source\omp.exe -X "<create_target><name>$Name</name><hosts>$Subnet</hosts></create_target>"
@jamesfed
jamesfed / omp.config
Created Jul 26, 2017
Example OMP Config file for Greenbone OMP
View omp.config
[Connection]
host=hostnameorIP
port=9390
username=admin
password=ExamplePassw0rd
You can’t perform that action at this time.