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
# -r, --system create a system account | |
# -m, --create-home create the user's home directory (by default no home created for system accounts) | |
# -s, --shell SHELL login shell of the new account (Do system accounts get nologin by default anyway?) | |
sudo useradd -r -m -s /usr/sbin/nologin mailhog | |
# https://github.com/mailhog/MailHog/releases | |
wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64 -O /home/mailhog/MailHog_linux_amd64 | |
# make exec. | |
# I like to keep the binary non-writeable by the executing user. |
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/env python3 | |
from datetime import datetime | |
import json | |
import websocket | |
import time | |
from elasticsearch import Elasticsearch | |
from queue import Queue | |
from threading import Thread | |
import threading |
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
# | |
# Debain 10, postgresql, postfix | |
# This servers as a lose lazy refernce, not a turnkey runscript. | |
# See: https://wiki.policyd.org/installing | |
# requirements | |
apt install libnet-server-perl libnet-cidr-perl libnet-dns-perl libmail-spf-perl libtimedate-perl libdbi-perl libdbd-pg-perl | |
# Use 2.1.x snapshot | |
wget https://download.policyd.org/v2.1.x-201310261831/cluebringer-v2.1.x-201310261831.tar.gz |
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
var set = new Set(); | |
x = setInterval(function(){ | |
var allSpans = document.getElementsByTagName('span'); | |
var reg = /@/ | |
for(let item of allSpans ){ | |
if(reg.exec(item.textContent)){ | |
set.add(item.textContent) |
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
server { | |
listen 80; | |
server_name esxi.hackion.com; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name esxi.hackion.com; |
OlderNewer