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
######################################################### ##################### | |
# | |
# EXAMPLE.conf: | |
# An example configuration file for configuring the ucd-snmp snmpd agent. | |
# | |
########################################################## ##################### | |
# | |
# This file is intended to only be an example. If, however, you want | |
# to use it, it should be placed in /usr/share/snmp/snmpd.conf. | |
# When the snmpd agent starts up, this is where it will look for it. |
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
#!/bin/bash | |
DOMAINARRAY=`cat /mnt/samba/winnt/system32/dns/domainlist` | |
for domainname in $DOMAINARRAY | |
do | |
echo " " | |
echo "$domainname being imported" | |
zone2sql --zone=$domainname.dns --gmysql --zone-name=$domainname | mysql -h | |
10.10.1.1 -D pdns -u pdns | |
echo "$domainname done!" |
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
#!/bin/bash | |
/usr/sbin/unbound-control stats|grep -E '^total\.|^num\.' | sed 's/=/\t/' | gawk 'BEGIN{"hostname -f" | getline hstnm ; }; {print "unbound." hstnm "." $0"\t" strftime("%s")}' |
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
#!/bin/bash | |
# | |
# This file is part of the UniCloud project | |
# | |
# Copyright (C) 2013 Unidata S.p.A. (Davide Guerri - d.guerri@rd.unidata.it) | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
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
#Based on <http://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542> | |
function Test-RebootRequired | |
{ | |
$result = @{ | |
CBSRebootPending =$false | |
WindowsUpdateRebootRequired = $false | |
FileRenamePending = $false | |
SCCMRebootPending = $false | |
} |
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
#!/usr/bin/python | |
import subprocess | |
import os | |
import sys | |
#res = subprocess.Popen(['ls','-al','/ahome'],stdout=subprocess.PIPE,stderr=subprocess.PIPE); | |
#output,error = res.communicate() | |
#if res.returncode: | |
# #raise Exception(error) |
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
### http://www.hass.de/content/setup-your-iis-ssl-perfect-forward-secrecy-and-tls-12 | |
# Add and Enable SSL 3.0 for client and server SCHANNEL communications | |
md 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0' -Force | |
md 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server' -Force | |
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server' -name 'Enabled' -value '0xffffffff' -PropertyType 'DWord' -Force | |
New-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server' -name 'DisabledByDefault' -value 0 -PropertyType 'DWord' -Force | |
# Add and Enable TLS 1.0 for client and server SCHANNEL communications | |
md 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0' -Force |
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
# These rules are designed to be effective versus /distributed/ brute force | |
# attacks. While they will function just as well against attacks which are | |
# /not distributed/ they will deny access to all XML-RPC method calls | |
# namespaced with the prefix "wp." | |
# | |
# An IP-based version of these rules may be more appropriate for sites which | |
# attacked from just a few distinct IP addresses. | |
# | |
# See http://alzabo.io/modsecurity/2014/09/15/wordpress-xml-rpc-brute-force.html | |
# for additional information |
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
<# | |
.SYNOPSIS | |
Performs a SQL query and returns an array of PSObjects. | |
.NOTES | |
Author: Jourdan Templeton - hello@jourdant.me | |
.LINK | |
https://blog.jourdant.me/post/simple-sql-in-powershell | |
#> | |
function Invoke-SqlCommand() { | |
[cmdletbinding(DefaultParameterSetName="integrated")]Param ( |
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
# Make sure you have these installed | |
yum install -y make gcc perl pcre-devel zlib-devel | |
# Download/Extract source | |
wget -O /tmp/openssl.tgz https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz | |
tar -zxf /tmp/openssl.tgz -C /tmp | |
cd /tmp/openssl-* | |
# Optional: Patch chacha20 | |
# https://github.com/cloudflare/sslconfig/tree/master/patches | |
wget https://raw.githubusercontent.com/cloudflare/sslconfig/master/patches/openssl__chacha20_poly1305_draft_and_rfc_ossl102j.patch | |
patch -p1 < openssl__chacha20_poly1305_draft_and_rfc_ossl102j.patch |
OlderNewer