something something systems :wq

Quick tip: Upgrade to the latest Fedora version

sudo dnf upgrade --refresh
sudo dnf install dnf-plugin-system-upgrade
# ex. new version is 24
sudo dnf system-upgrade download --refresh --releasever=24
sudo dnf system-upgrade reboot
Source: https://fedoraproject.org/wiki/DNF_system_upgrade

One-liner: get to terminal from meterpreter

python -c 'import pty; pty.spawn("/bin/sh")'

Resolve Event ID 6104 DFSR

Issue: Event ID 6104 DFSR - The DFS Replication service failed to register the WMI providers. Replication is disabled until the problem is resolved. Fix: Restart the "Windows Management Instrumentation" service either through the gui or command line to see if this resolves the issue. If not, you will need to reregister all the Windows Management Instrumentation (WMI) DLLs. On the problem server:

[CentOS 7] Installing Ruby on Rails

I've been playing around with Ruby on Rails recently and have grown to appreciate the framework and the MVC Paradigm. I've been playing around with various cloud IDEs like Cloud9 and Nitrous, but nothing beats a local dev server and Vim.

CentOS 7: install and configure openVPN server

DigitalOcean has a good tutorial on how to set up an OpenVPN server on CentOS 7. I was not able to follow step-by-step since the tutorial goes into setting up routing using iptables, instead of using the builtin firewall-cmd. Later, I had issues connecting to the server from a Windows machine, but was able to resolve that (included below).

Here's an abriged version of the DigitalOcean tutorial, with the fixes.

[Cisco] Quick gotcha: multiple ospf procs and passive interfaces

When running multiple OSPF processes, the passive-interface is not respected per process and is applied globally. So the following config is invalid:

Dirty trick - quick fixes on your dev server

On my local dev server, I have the following setup:

  • CentOS 7
  • httpd
  • mariadb
  • All dev sites located in a subdirectory in /var/www/html/

Occasionally things will break, or permissions need to be reset on new dev sites. Here's a quick fix that I use to get all the usual troubleshooting steps out of the way. Note that this is on a local dev server, you'd never blindly do this on a prod server.

Insert the following into your .bashrc file: vim ~/.bashrc

The Drupal intranet: Creating a helpdesk part 1

With Drupal, you are able to create large sites with complex models and relations with barely any coding.

I've provided this as a Feature you can download and install on your site.


In this example, we need to create a helpdesk with the following specifications:

[Powershell] Run a remote command throughout your /24 network

This script template will help you create a script that runs a command on remote computers in parrallel on your /24 network, or a range within that network. To speed things up even more, the script will not attempt to run the commands if the remote computer is not pingable. You can add extra lines to check if the remote computer is a Window's system or not.

[Powershell] Quickly move FSMO Roles using PowerShell

Transfer roles without having to hunt down which mmc's to open, turning a 20-click process into a simple command.

Requires Powershell v4:

Move-ADDirectoryServerOperationMasterRole -Identity "Target-DC" -OperationMasterRole SchemaMaster,RIDMaster,InfrastructureMaster,DomainNamingMaster,PDCEmulator