Skip to content

Instantly share code, notes, and snippets.

View ftpmorph's full-sized avatar

FTP ftpmorph

  • LDN
View GitHub Profile
@X448NAX
X448NAX / hide-modify-nginx-server-string.md
Created December 25, 2021 08:20
How to hide and customise the server info in the HTTP header for Nginx on Ubuntu server (good security practice and a bit of fun)

How to hide and customise the Nginx server string in the HTTP header on Ubuntu

Note: only tested on Ubuntu 20.04.3 LTS. Should work with other versions of Ubuntu Server as well as distros based on Ubuntu or Debian.

Based on reading it seems to not be so easy for other distros however. If you use a distro not derived from Ubuntu or Debian you may need to compile Nginx yourself.

But assuming you're running an Ubuntu server, all you need to do is run this command:

sudo apt install libnginx-mod-http-headers-more-filter

@iosecure
iosecure / iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment.md
Last active April 4, 2024 23:50
iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment

iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment

This post by a security researcher who prefers to remain anonymous will elucidate concerns about certain problematic decisions Apple has made and caution about future decisions made in the name of “security” while potentially hiding questionable motives. The content of this article represents only the opinion of the researcher. The researcher apologises if any content is seen to be inaccurate, and is open to comments or questions through PGP-encrypted mail.



TL;DR

@davidzou2131
davidzou2131 / README.md
Created April 23, 2016 07:22
iTunes m4a Personal Information Remover

What this script does

This script removes all the personal information linked to the iTunes account which purchased the song. This includes your full name and email address. This script losslessly remuxes the mp4 (m4a) into a new mp4 container. avconv is used because a file stripped of all personal information tags with AtomicParsley will still contain the owner's full name if the file is viewed with a hex editor. avconv will only preserve standard metadata tags, thus removing all personal information plus some iTunes specific information.

Requirements/Dependencies

  • Python 3 (compatible with v2)
  • avconv (Successor to ffmpeg)
  • AtomicParsley

Setup

  • Linux packages
@noqqe
noqqe / nacl-encryption.py
Last active January 18, 2022 15:43
An example code for pynacl encryption and decryption (Salsa20+poly1305)
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import nacl.secret
import nacl.utils
import base64
from pyblake2 import blake2b
import getpass
@natelandau
natelandau / .bash_profile
Last active March 20, 2024 22:19
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management