• Home
  • Resume
  • About
  • Contact
  • PGP Key
Blog Logo

Wylie Bayes

Geek things

OpenBSD Powershell Blog

Fix windows unquoted service path enumeration vulnerabilities with #Powershell

20 Dec 2016 Powershell • Blog
Wylie Bayes Wylie Bayes
Here is a function to fix windows unquoted service path enumeration vulnerabilities automatically with powershell! Cheers! function fix-servicepath { $hosts = get-content C:\Users\*****\Documents\WindowsPowershell\Servers.txt foreach ($box in $hosts) {     $services = $null     $services = get-wmiobject win32_service -computername $box     foreach ($service in $services){ $Displayname = $service.DisplayName        if (($service.PathName -like "* *") -and ($service.Pathname -notlike '"*"*') -and ($service.PathName -like '*.exe')) {         $box         $service.PathName         write-host "Changing Path to be quoted:"         $NewPath = $service.Pathname         $newservicepath…
Continue Read

HP OA, Netapp, and Vmware environment monitoring with #Powershell

20 Dec 2016 Powershell • Blog
Wylie Bayes Wylie Bayes
Here is a custom script I made to check HP Onboard Administrators, Netapp Controllers, and vCenter servers for health issues in Powershell. Cheers! This relies on a few things first: VMWare PowerCLI 5.5+ Netapp DataOnTap 4.0 modules HP OA Powershell Cmdlets to function properly. If you want to capture VM Snapshot alarms you must create an alarm in your vCenters called “VMSnapshot Running” . I personally set mine to if the snapshot is 2GB or larger, trigger the alarm.…
Continue Read

Disable DHCP on Hyper-V created vSwitch Host NICS. #hyperV #dhcp #hosthijack

20 Dec 2016 Powershell • Blog
Wylie Bayes Wylie Bayes
So playing with Hyper-V the past few weeks quite a bit and noticed that when creating a vSwitch, no matter if External and bridged to a real NIC on the host or not, it will create a NIC on the Windows host machine correlating to the vSwitch in Hyper-v. If you create a virtual machine, and attach it to the vSwitch, and this virtual machine is running a DHCP server, your HOST NIC for that vSwitch will pull a DHCP…
Continue Read

VPN Bonding: Pushing through the challenges!

20 Dec 2016 Blog
Wylie Bayes Wylie Bayes
New Foundations #1 – VPN Bonding – Pushing through the challenges. by Wylie Bayes VPN Bonding Hey everyone! Wylie is back in action and this topic is all about VPN bonding and the challenges you can face when coming up with a solution that is right for your organization. I know many organizations are still utilizing private leased lines from phone companies such as Century Link. These private lines can cost a place a fortune, especially with multiple locations involved. Not to…
Continue Read

Network Wide Transparent Proxying with #OpenBSD #Proxy #webfiltering

20 Dec 2016 Blog • OpenBSD
Wylie Bayes Wylie Bayes
Network Wide Transparent Proxying By: Wylie Bayes & Brandon Folchi The purpose of this article is to guide anyone who is interested in setting up their own transparent proxy capable of filtering outbound web-browsing of all devices on a network. While researching options to accomplish this we came across a program called DansGuardian. DansGuardian is an open source web content filter that runs on multiple ‘Unix like’ platforms. The concept behind this application is to truly filter the content the…
Continue Read

Convert most “OVA” virtual machines, to VHD or VHDX with Powershell, for use with Hyper-V.

20 Dec 2016 Powershell • Blog
Wylie Bayes Wylie Bayes
Hey everyone! Just thought I’d post up a quick set of instructions to take a VMware formatted OVA file, extract out the .VMDK file and then convert it to a VHD or VHDX with Powershell. First, you will need the Microsoft Virtual Machine Converter package, and installed it. You can download it here: title Next, fire up powershell as administrator, and run this command to import the virtual machine converter powershell Cmdlets: Import-Module "C:\Program Files\Microsoft Virtual…
Continue Read

VMWare Over-provisioning report with #Powershell

20 Dec 2016 Blog • Powershell
Wylie Bayes Wylie Bayes
Just thought I would put this out here for anyone monitoring a large Vmware environment. Cheers! You would need to change $ss to a remote location you wish the report to be stored, our putting a local location would be fine as well, but then would have to local copies on C:, and wherever you specify. function vmware-provisioning { $viservers = "vcenter1", "vcenter2" $cred = get-credential $date = (Get-Date).tostring("yyyyMMdd") Add-PSSnapin Vmware.VIMAutomation.Core | Out-Null set-PowerCLIConfiguration -invalidCertificateAction…
Continue Read

IPv6 Router / Client Instructions. OpenBSD 5.4 / Comcast native ipv6 connectivity.

20 Dec 2016 Blog • OpenBSD
Wylie Bayes Wylie Bayes
See updated post for OpenBSD 6.1 @ https://wyliebayes.com/openbsd-router-clients/…
Continue Read

OpenBSD and PF – iblocklist.com cheap blacklisting #openbsd #firewall

20 Dec 2016 Blog • OpenBSD
Wylie Bayes Wylie Bayes
You need buy a $10.00 per year subscription from http://iblocklist.com. You will get a “Pin” number for your downloads. Then you plug the pin number into the end of the URL’s from the wget commands in this script: http://wmfb.co/txt/iblocklist.sh.txt You might have to create a few directories, change a few usernames around etc. But it is built exactly like that on my system. (OpenBSD 5.4-STABLE) Then… Once you have…
Continue Read

Fun with Bash. Patch status script for RPM based systems.

20 Dec 2016 Blog • Linux
Wylie Bayes Wylie Bayes
The script below is a Patch Status script for rpm based systems (Redhat, Centos, Fedora, etc.) You must query a known good, fully patched server. Query this server with “rpm -qa” and pipe it to a “current.txt” file. Your servers are pulled from “hosts.txt” file. Each IP address is on it’s own line in this file. Also this will only work (without typing 300 passwords over and over) with Public Key Authentication in place, and NOPASSWD option…
Continue Read
← Newer Posts Page 2 of 3 Older Posts →
All content copyright Wylie Bayes © 2019 • All rights reserved.
Theme By GTheme