Check when an SSL certificate expires:
echo | openssl s_client -connect site:port 2>/dev/null | openssl x509 -noout -dates
We'll check this and the next example using google.com :
#!/usr/bin/perl -w | |
############################################################################## | |
## | |
## Written by: Jared Cheney <[email protected]> | |
## | |
## Original Template written by: | |
## Brandon Zehm <[email protected]> and Jared Cheney <[email protected]> | |
## | |
## License: | |
## |
#!/bin/bash | |
# goes in /sbin !!! | |
nohup sh -c "sleep 1 ; /usr/local/sbin/update-issue.sh" & |
#!/usr/bin/python | |
# | |
# HD44780 LCD Test Script for | |
# Raspberry Pi | |
# | |
# Author : Matt Hawkins | |
# Site : http://www.raspberrypi-spy.co.uk | |
# | |
# Date : 26/07/2012 | |
# |
#!/bin/bash | |
# | |
# Calomel.org | |
# https://calomel.org/zfs_health_check_script.html | |
# FreeBSD 9.1 ZFS Health Check script | |
# zfs_health.sh @ Version 0.15 | |
# Check health of ZFS volumes and drives. On any faults send email. In FreeBSD | |
# 10 there is supposed to be a ZFSd daemon to monitor the health of the ZFS | |
# pools. For now, in FreeBSD 9, we will make our own checks and run this script |
<?php | |
$file = 'somefile.txt'; | |
header("Content-Description: File Transfer"); | |
header("Content-Type: application/octet-stream"); | |
header('Content-Disposition: attachment; filename="'.basename($file).'"'); | |
readfile($file); | |
?> |
# | |
# ESE Key Deamon 1.2.7 config file | |
# | |
# | |
# example 1: to run mutt in xterm we must set DISPLAY | |
# so the command line will be as follows: | |
#MAIL:/bin/sh -c "DISPLAY=:0 xterm -e mutt" | |
# | |
# example 2: turn on/off GPS reciever when lid is open/closed |
# check site for poodle | |
nmap --script ssl-enum-ciphers -p 443 twitter.com |grep "SSLv3: No supported" ||echo "Site vulnerable to poodle" |
until /opt/Nagstamon/Nagstamon/nagstamon.py; do | |
echo "Nagstatmon crashed; respawing..." | |
sleep 1 | |
done | |
#!/bin/bash | |
type iconv >/dev/null 2>&1 || { echo >&2 "iconv has to be installed. Aborting."; exit 1; } | |
find . -type f | while read FILE; do | |
if [ -f "$(echo "$FILE" | iconv -f utf8 -t ascii//TRANSLIT)" ]; then | |
echo "No rename required: $FILE" | |
else | |
mv -v "$FILE" "$(echo "$FILE" | iconv -f utf8 -t ascii//TRANSLIT)" | |
fi | |
done |