Skip to content

Instantly share code, notes, and snippets.

@jgajek
jgajek / cb-response-netconn-util.py
Created October 12, 2016 16:26
Cb Enterprise Response network data extraction utility
#!/usr/bin/env python
"""
OVERVIEW
Extract network connection data from Cb Enterprise Response (CbER) based on
one or more criteria:
- Time (past N minutes, days)
- CbER query match
@jgajek
jgajek / deltaswap.c
Last active August 29, 2015 14:01
Delta Swap
#define DELTA_SWAP(a, b, delta, mask) \
b = (a ^ (a >> delta)) & mask; \
a = a ^ b ^ (b << delta);