June 6, 2020

Recent Posts

Mubix – Attacker Ghost Stories

This is a great video with some novel out-the-box methods for defending the modern enterprise.  I just had to share it as to date it’s got just over a thousand views and it’s actually got some really good, original content.  It’s hosted on YouTube so I have embedded it below.  Watch, learn and apply and […]

Python :: break a string into lines of Hex

You may have seen output like this in programs such as HxD and it can be really useful.  I forgot the exact reason I needed this script, but it will take a string and output it in definable line lengths of hexidecimal.  It may be easier to see it in the screen below.  If you […]

PowerShell :: export DNS zones to a hosts file

Picture the scene!  Your data centre has caught fire so you grab you disaster recovery jump kit and run off to the standby site to start powering things up.  Whether you are using VMware SRM, Veeam replication or block level SAN replication you are going to need to connect to some servers / appliances right? […]

PowerShell :: output email addresses from Active Directory

Hopefully you’ve landed here from my series on macro malware and you need to output a list of all you users email addresses to send them some dummy phishing emails for educational purposes.  If not and you need to output a list of all your email addresses in Active Directory then you’re still in the […]

Add the email subject to your Postfix logs

To record the email subject in the Postfix logs, simply add the following line to your Postfix header checks file: /^subject:/ INFO With this done, restart the Postfix service.  On Centos that is with the following command: service postfix restart That’s it! Or is it?  If you haven’t enabled header checks yet you need to do […]

BASH :: A quick script to help you search Postfix logs

Have you ever has to grep through mail logs on Postfix?  What you quickly find is there are two problems which quickly become really irritating: You grep based on email address and so only get the lines relevant to that email address.  Sounds obvious but that means if you search for a sender, you won’t […]

BASH :: check the Postfix mail queues for Nagios

Here is a tiny bash script that will check your Postfix mail queue and exit the code dependant on the result.  Often mail relays sit in the background not really ever breaking and therefore never being monitored.  I wrote this little check so the IT team would be the first to know if mail started […]

PowerShell :: check the Exchange 2010 queues for Nagios

I wrote this little script to monitor the Exchange 2010 mail queues and flag up when there is some mail stuck in there.  In most infrastructures your emails will probably move onward to either a relay or AV appliance and a failure of one of these will see mail begin to back up on your […]

PowerShell :: checking VEEAM backups are running for Nagios

This is my second PowerShell script to check VEEAM is happy (the first one is here)and focuses on making sure jobs are still running.  Whilst its rare the job engine will freeze, I used to get this problem all the time with other products and so got used to writing checks for it.  The script is […]

PowerShell :: checking VEEAM backups for Nagios

This little script will check all the configured VEEAM backup jobs (not backup copy jobs) for any that have a last state as FAILED.  It will not check for any jobs that have a last sate of WARNING as these occur too often to make the check useful. If one backup job has failed, it […]
Page 4 of 6« First...«23456 »

Subscribe to SYNACK via Email