Skip to content

Instantly share code, notes, and snippets.

View aizuddin85's full-sized avatar
🎯
Focusing

Aizuddin Zali aizuddin85

🎯
Focusing
View GitHub Profile

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@aizuddin85
aizuddin85 / tcp_flags.txt
Created May 28, 2018 13:45 — forked from tuxfight3r/tcp_flags.txt
tcpdump - reading tcp flags
##TCP FLAGS##
Unskilled Attackers Pester Real Security Folks
==============================================
TCPDUMP FLAGS
Unskilled = URG = (Not Displayed in Flag Field, Displayed elsewhere)
Attackers = ACK = (Not Displayed in Flag Field, Displayed elsewhere)
Pester = PSH = [P] (Push Data)
Real = RST = [R] (Reset Connection)
Security = SYN = [S] (Start Connection)
@aizuddin85
aizuddin85 / complex_ldap_query.py
Created September 21, 2016 06:39 — forked from futureimperfect/complex_ldap_query.py
Complex LDAP Queries with python-ldap
import ldap
import sys
LDAP_URI = 'ldap://ldap.example.com'
SEARCH_BASE = 'ou=Example,dc=example,dc=com'
QUERY = '(&(nickname=M*)(employeeType=fulltime)(|(!(departmentNumber=5*))(loginShell=/bin/bash)))'
def ldap_search(ldap_uri, base, query):
'''
@aizuddin85
aizuddin85 / OracleWrapper.py
Created September 26, 2015 18:19 — forked from cemremengu/OracleWrapper.py
cx_Oracle Wrapper
import cx_Oracle
class OracleWrapper(object):
"""
A class for handling db operations
"""
def __init__(self, constring):
self.constring = constring.strip()
self.db_connection = cx_Oracle.connect(constring)