This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modify /etc/yum.repos.d/epel.repo. Under the section marked [epel], change enabled=0 to enabled=1. | |
sudo yum install erlang --enablerepo=epel | |
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.1/rabbitmq-server-3.1.1-1.noarch.rpm | |
sudo rpm -Uvh rabbitmq-server-3.1.1-1.noarch.rpm | |
# Enable managament plugin | |
sudo rabbitmq-plugins enable rabbitmq_management |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following is a powershell script to get all previously joined wifi networks and passwords for windows systems | |
# The number of lines skipped in the following command may need to be altered if "Group policy profiles" are available | |
$profiles = $(netsh wlan show profiles) -split "\n" | Select-Object -Skip 9 | Select -SkipLast 1 | |
foreach($profile in $profiles) | |
{ | |
$network = $profile.Split(":")[1].Replace(" ", "") | |
$info = $(netsh wlan show profile $network key=clear) | |
$key = $info | Select-String -Pattern "Key Content" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$reader = [System.IO.File]::OpenText("path/to/log") | |
$ConnectedIPs = New-Object System.Collections.ArrayList | |
$RejectedConnections = New-Object System.Collections.ArrayList | |
$RSTScans = New-Object System.Collections.ArrayList | |
$ACKScans = New-Object System.Collections.ArrayList | |
while($null -ne ($line = $reader.ReadLine())) { | |
if ($line.StartsWith('[Internet connected]')) { | |
$cip = $ConnectedIPs.Add($line.Split('IP address: ').Split(',')[1]) | |
} |