Skip to content

Instantly share code, notes, and snippets.

View jamesfed's full-sized avatar

James Preston jamesfed

View GitHub Profile
#Event
(ISSUE:){1}
#Username, you may need to expand the regex to match your naming patterns
, ([a-zA-Z0-9]+@\.YOUR\.DOMAIN\.COM)
#Address
([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}):
esphome:
name: study_epaper
platform: ESP8266
board: nodemcuv2
wifi:
ssid: "YOURSSIDGOESHERE"
password: "YOURPSKGOESHERE"
# Enable fallback hotspot (captive portal) in case wifi connection fails
esphome:
name: hallway_epaper
platform: ESP32
board: esp32dev
wifi:
ssid: "YOURSSIDGOESHERE"
password: "YOURPSKGOESHERE"
# Enable fallback hotspot (captive portal) in case wifi connection fails
rule "Process CEF"
when
true
then
set_fields(parse_cef(to_string($message.message), false));
end
{
"powershell.powerShellExePath": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"files.defaultLanguage": "powershell"
}
boot standby
show redundancy
redundancy switchover
#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 August 15, 2017 08:41
OpenVAS on Ubuntu Install (Part 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
#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 July 26, 2017 10:55
Example OMP Config file for Greenbone OMP
[Connection]
host=hostnameorIP
port=9390
username=admin
password=ExamplePassw0rd