Put certificates list in certs.txt and run:
awk '{ print $3 }' certs.txt | while read d; do bash check_sha256.sh $d 2>/dev/null; done | grep OK
#!/bin/bash | |
httpdconfdir=/etc/httpd/conf | |
[ -e /etc/apache2 ] && httpdconfdir=/etc/apache2 | |
is_wildcard="n" | |
domainname="" | |
keyfile="" | |
certfile="" | |
csrfile="" | |
conffile=".sslconf" |
[Definition] | |
failregex = <HOST>.*] "POST /wp-login.php | |
ignoreregex = |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !\.(png|css)$ | |
RewriteRule (.*) n.php [L,QSA] |
IPRANGE=10.10.10.0/24 | |
nmap -sU -pU:123 -Pn -n --script=ntp-monlist $IPRANGE | grep -B 4 ntp-monlist | grep report | awk '{ print $5 }' |
#!/bin/bash | |
# | |
# Author: Abdallah Deeb <abdallah@deeb.me> | |
# Requirements: python, pip, virtualenv, virutalenvwrapper, git | |
# | |
# Edit the following 2 lines | |
PROJECTNAME=proj | |
APPNAME=myapp | |
if [ -n "$2" ] | |
then |
iptables -I INPUT 1 -p tcp --dport 80 -m string --string "HTTP/1.0" --algo bm -j DROP |
files in /etc/monit/conf.d/ |
<?php | |
function other_languages_switcher(){ | |
$languages = icl_get_languages('skip_missing=1'); | |
foreach($languages as $l){ | |
if(!$l['active']) { | |
$langs[] = '<a href="'.$l['url'].'">'.$l['language_code'].'</a>'; | |
} | |
} | |
echo join(', ', $langs); | |
} |
<?php | |
/* | |
Plugin Name: My Plugin | |
Plugin URI: https://deeb.me | |
Description: 10 ways to peel an orange | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; | |
} |