Skip to content

Instantly share code, notes, and snippets.

View phon3's full-sized avatar

phon3

  • MineMark LLC
View GitHub Profile
@phon3
phon3 / windowsdefender.md
Created January 21, 2020 18:22
Leveling up Windows Defender

Leveling up Windows Defender Posted on December 27, 2019 by Jackson Enhancing detection and blocking capabilities with the default Windows anti-virus.

Introduction Windows Defender is commonplace in smaller organisations without AV centralisation, or those that may not wish to purchase enterprise AV subscriptions. However, what is not commonplace is moving beyond the default configuration to provide enhanced protection for endpoints.

Microsoft provides a variety of configuration options via Group Policy, InTune or SCCM which enhance Defender’s detection capabilities; pushing Defender to the forefront of modern threat detection. This article serves to summarise information provided through Microsoft’s latest security baseline for Windows 10 and Windows Server 2016, along with collating information from other security professionals and official Microsoft documentation in an easily digestible format.

We will cover delivering cloud protection, enhancing cloud-based protection, blocking potentially unwanted pro

MailPiler Installation
Enviroment
OS: Ubuntu Server 16.04
Storage: RAID5 Array (ext4 mounted on /mnt/md1
@phon3
phon3 / guac-1.0.0.sh
Created January 5, 2020 17:31
Install script for Guacamole 1.0.0 with MySQL DB support and authentication
#!/usr/bin/env bash
#Usage:
#Must be root or have access to MYSQL root password.
#Name it something like guac-1.0.0.sh
#make note of the dbuser and dbpass [guacadmin]
#Make it executable $chmod 755 guac-1.0.0.sh
#Run it $./guac-1.0.0.sh
@phon3
phon3 / Python_lists.md
Last active February 7, 2019 17:11
python list example input and output

Python Lists and List Manipulation

Defining a List

Lists are written within square brackets []

# Define a list
z = [2, 4, 6, 7, 8, 3]

Lists store an ordered collection of items which can be of different types. The list defined above has items that are all of the same type (int), but all the items of a list do not need to be of the same type as you can see below.

@phon3
phon3 / DynamicArray
Created January 28, 2019 18:45
Example of Dynamic Arrays in python
# Import sys that will allow us to use a get sizeof function which will help us to know the actual size in bytes that computer is holding in the memory.
import sys
#set n
n = 10
# set empty list
data = []
for i in range(n):
# number of elements
a = len(data)
#actual size of bytes
@phon3
phon3 / LinkedLists
Created January 28, 2019 18:26
Basic example of linked list in python
class Node:
def __init__(self,val):
self.val = val
self.next = None # the pointer initially points to nothing
def traverse(self):
node = self
while node != None:
print (node.val)
node = node.next
def master(data):
for user in data:
if user[0] >= 40 and user[1] >= 10:
print("Master")
else:
print("Not a master")
applicants = [[43, 3], [77, 12], [23, 12], [66, 4], [66, 8]]
master(applicants)
@phon3
phon3 / pythonclasses
Created January 25, 2019 17:12
Simple example of defining python classes.
class FooBar(object):
def __init__(self, foo="Foo", bar="Bar"):
if foo is None:
foo = []
self.foo = foo
if bar is None:
bar = []
self.bar = bar
@phon3
phon3 / Python_Flask_Setup.md
Last active February 21, 2025 07:26
Python 2.7 & Flask Install and setup

Python & Flask


Today we will finish up setting the webserver up. We will be using python and flask to server back end authentications and other cool features.

We assume a couple of things

  • You have previously setup a LAMP server
  • You have SSL setup
  • You have root access
@phon3
phon3 / LAMP_webserver.md
Last active March 27, 2018 21:45
Basic LAMP webserver on Ubuntu 16.04

Advanced LAMP webserver Setup


This guide is meant to get a basic webserver up and running with Apache2. We will also get the basic utilities installed to run more advanced back end functions like databases, nodejs, ruby, mail and others. To start we will go over the basic setup including security hardening.

We assume som prerequisites have been met.

  • VPS with 1GB RAM & 5GB HDD Minimum.

  • Root access via SSH