sudo apt update
sudo apt install xrdp
sudo apt install xfce4
#!/bin/bash | |
# References: | |
# https://www.mysterydata.com/update-apache-2-4-to-latest-version-on-ubuntu-16-04-server-vestacp/ | |
sudo_prefix="sudo " | |
if [[ ${USER} == "root" ]]; then | |
sudo_prefix="" | |
else |
# Copyright 2019-2022 Jonathan S. Katz | |
# | |
# MIT License | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
Source: https://lilleengen.io/blog/index.php/posts/activating-http-public-key-pinning-hpkp-on-lets-encrypt
Since the letsencrypt seems to create a new private key every time the certificate is renewed and Let's Encrypt requires you to renew you certificate once every ~80 days pinning using your certificate's SPKI is probably not the way to go. So, what should we pin then? Let's Encrypt is currently issuing from Authority X3, and using Authority X4 as a backup, so these two is a great place to start. We should also include the ISRG Root so this might support new Authorities with other SPKIs as well.
To generate the hash of the SPKI of these certificates run the following commands
#!/bin/bash | |
# This bash script is referenced by https://www.hostinger.com/tutorials/how-to-install-docker-on-ubuntu | |
# Reference: https://docs.docker.com/engine/install/ubuntu/ | |
echo 'Check your Linux Distribution....' | |
which lsb_release > /dev/null 2>&1 | |
if [[ $? != 0 ]]; then |
Key-Type: 1 | |
Key-Length: 2048 | |
Subkey-Type: 1 | |
Subkey-Length: 2048 | |
Name-Real: Root Superuser | |
Name-Email: root@handbook.westarete.com | |
Expire-Date: 0 |
#!/home/drspock/scripts/FBInvite/bin/python | |
import argparse | |
import requests | |
import pyquery | |
def login(session, email, password): | |
''' | |
Attempt to login to Facebook. Returns user ID, xs token and |
AmbientCapabilities
support (usually kernel >= linux4.3) [Unit]
Description=FRP Server Daemon