Skip to content

Instantly share code, notes, and snippets.

@guruevi
guruevi / ldif-to-csv.sh
Created February 6, 2020 15:30 — forked from dansimau/ldif-to-csv.sh
Shell script that reads LDIF data from STDIN and outputs as CSV.
#!/bin/bash
#
# Converts LDIF data to CSV.
# Doesn't handle comments very well. Use -LLL with ldapsearch to remove them.
#
# 2010-03-07
# dsimmons@squiz.co.uk
#
# Show usage if we don't have the right params
@guruevi
guruevi / dnstest.py
Last active August 29, 2015 14:14 — forked from 0x9900/dnstest.py
#!/usr/bin/env python
#
import dns.resolver
import time
import sys
from collections import defaultdict
services = {
#'local': ['192.168.1.1'],