Skip to content

Instantly share code, notes, and snippets.

@linickx
linickx / README.md
Created Apr 5, 2020
Python Test DNS XFER
View README.md

Testing for DNS Zone Transfers

A simple script to check if a DNS server will zone transfer.

Setup.

  1. Update domains.txt with the domain names (zones) you want to try and transfer
  2. Update servers.txt with the DNS Servers you want to run the script against
  3. Either install Docker/Docker-Compose or Python with dnspython
View cisco_decrypt.py
#!/usr/bin/env python
# coding=utf-8
"""
My version of cisco_decrypt.py
Version 1.0 - Nick Bettison - linickx.com
USAGE:
------
View keybase.md

Keybase proof

I hereby claim:

  • I am linickx on github.
  • I am linickx (https://keybase.io/linickx) on keybase.
  • I have a public key ASDk_u6nQodqu08rbgg5QjQaZ4YAFh5ArJ8aJxYtIYoZMAo

To claim this, I am signing this object:

@linickx
linickx / example_fail_output.txt
Last active Aug 29, 2015
Provides Custom URLs for FEEDS #1625
View example_fail_output.txt
(pelican-dev)linickx:1625 nick$ pelican ./content/
ERROR: Skipping pages/jinja2_template.html: could not find information about 'title'
CRITICAL: [Errno 21] Is a directory: '/Users/nick/Documents/Temp/1625/output/feed'
(pelican-dev)linickx:1625 nick$
@linickx
linickx / atom.xml
Last active Aug 29, 2015
The first few lines of feeds
View atom.xml
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>LINICKX.com</title><link href="http://www.linickx.com/" rel="alternate"></link><link href="http://www.linickx.com/feed/atom" rel="self"></link><id>http://www.linickx.com/</id><updated>2015-02-15T18:22:00+00:00</updated><entry><title>CSS Styling Nginx Directory Listings</title><link href="http://www.linickx.com/css-styling-nginx-directory-listings" rel="alternate"></link><updated>2015-02-15T18:22:00+00:00</upda
@linickx
linickx / convertmac.py
Last active Aug 29, 2015
Python and MAC addresses
View convertmac.py
#!/usr/bin/env python
# My Post: http://www.linickx.com/3970/python-and-mac-addresses
# REF: http://craigbalfour.blogspot.co.uk/2008/10/normalizing-mac-address-string.html
# REF http://www.cyberciti.biz/faq/python-command-line-arguments-argv-example/
# Lib
import sys, getopt
@linickx
linickx / broken1.xml
Last active Dec 31, 2015
Playing is syslog-ng patterns (quotes and bluecoat)
View broken1.xml
<patterndb version='4' pub_date='2013-12-17'>
<ruleset name='bluecoat' id='dd001'>
<pattern>bluecoat</pattern>
<rules>
<rule provider='linickx' id='nbdd001' class='system'>
<patterns>
<pattern>@NUMBER:BC_HOUR:@:@NUMBER:BC_MIN:@:@NUMBER:BC_SEC:@ @NUMBER:BC_TIME_TAKEN:@ @IPv4:BC_CLIENT_ADDRESS:@ - - - @ESTRING:BC_ACTION: @ "</pattern>
</patterns>
<examples>
<example>
@linickx
linickx / example.xml
Last active Aug 21, 2016
learning syslog-ng patterndb
View example.xml
<patterndb version='4' pub_date='2010-10-17'>
<ruleset name='ssh' id='123456678'>
<pattern>ssh</pattern>
<rules>
<rule provider='me' id='182437592347598' class='system'>
<patterns>
<pattern>Accepted @ESTRING:SSH.AUTH_METHOD: @for @ESTRING:SSH_USERNAME: @from @ESTRING:SSH_CLIENT_ADDRESS: @port @NUMBER:SSH_PORT_NUMBER:@ ssh2</pattern>
</patterns>
<examples>
<example>
@linickx
linickx / rktest.php
Created Jul 24, 2013
example wordpress_logged_in for root-cookie
View rktest.php
<?php
# Either load WordPress : http://codex.wordpress.org/Integrating_WordPress_with_Your_Website
# or Manually define your url like...
$siteurl = "http://www.linickx.com/wordpress";
define( 'COOKIEHASH', md5( $siteurl ) );
$cookiename = "wordpress_logged_in_" . COOKIEHASH;
@linickx
linickx / MBP
Last active Dec 14, 2015
Post the brew --config and brew doctor for those machines.
View MBP
[w:11] homebrew $brew --config
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: 3531460825aed558858ad6b6d2aa82e0da315ed3
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.8.2-x86_64
Xcode: 4.6
CLT: 4.6.0.0.1.1358221012
You can’t perform that action at this time.