+------------------+ +----------------------+
| Local host | tcpdump over ssh | Remote Host |
| |--------------------| |\ eth0
| +--------------+ |--------------------| |/
| | Wireshark | | | tcpdump -i eth0... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl delete "$(kubectl api-resources --namespaced=true --verbs=delete -o name | tr "\n" "," | sed -e 's/,$//')" --all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"apigateway:*", | |
"cloudformation:CancelUpdateStack", | |
"cloudformation:ContinueUpdateRollback", | |
"cloudformation:CreateChangeSet", | |
"cloudformation:CreateStack", | |
"cloudformation:CreateUploadBucket", |
I really like the Tilix terminal emulator, but I hate how much space the default chrome takes up:
Those tabs are enormous! But did you know that this is user-configurable? GTK3
widgets are styled using CSS, and you can override the rules in
~/.config/gtk-3.0/gtk.css
. Add the following rules to this file:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh /etc/rc.common | |
START=99 | |
USE_PROCD=1 | |
start_service() { | |
if [ -e /root/.upgrade ] | |
then exit | |
else touch /root/.upgrade | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Snort & Suricata signatures for: | |
# https://blog.fox-it.com/2018/01/11/mitm6-compromising-ipv4-networks-via-ipv6 | |
alert udp fe80::/12 [546,547] -> fe80::/12 [546,547] (msg:"FOX-SRT - Policy - DHCPv6 advertise"; content:"|02|"; offset:48; depth:1; reference:url,blog.fox-it.com/2018/01/11/mitm6-compromising-ipv4-networks-via-ipv6/; threshold:type limit, track by_src, count 1, seconds 3600; classtype:policy-violation; sid:21002327; rev:2;) | |
alert udp ::/0 53 -> any any (msg:"FOX-SRT - Suspicious - WPAD DNS reponse over IPv6"; byte_test:1,&,0x7F,2; byte_test:2,>,0,6; content:"|00 04|wpad"; nocase; fast_pattern; threshold: type limit, track by_src, count 1, seconds 1800; reference:url,blog.fox-it.com/2018/01/11/mitm6-compromising-ipv4-networks-via-ipv6/; classtype:attempted-admin; priority:1; sid:21002330; rev:1;) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const waitFor = (ms) => new Promise(r => setTimeout(r, ms)) | |
const asyncForEach = async (array, callback) => { | |
for (let index = 0; index < array.length; index++) { | |
await callback(array[index], index, array) | |
} | |
} | |
const start = async () => { | |
await asyncForEach([1, 2, 3], async (num) => { | |
await waitFor(50) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
import fileinput | |
import re | |
import binascii | |
for line in fileinput.input(inplace = 1): | |
if re.search('X\'([a-fA-F0-9]+)\'', line) is not None: | |
unhexed_string = binascii.unhexlify(re.search('X\'([a-fA-F0-9]+)\'', line).group(1)) | |
unhexed_string = unhexed_string.replace("'", "''") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1m [32m"Bee" careful [34m__ | |
[32mwith sudo! [34m// \ | |
\\_/ [33m// | |
[35m''-.._.-''-.._.. [33m-(||)(') | |
'''[0m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2a04:4e42::1 5742636757417984-fe1.pantheonsite.io | |
2a04:4e42::2 5724160613416960-fe2.pantheonsite.io | |
2a04:4e42::3 5746821397741568-fe3.pantheonsite.io | |
2a04:4e42::4 5714315743068160-fe4.pantheonsite.io | |
2a04:4e42::72 *.avvosites.com | |
2a04:4e42::74 www.aclu.org | |
2a04:4e42::78 *.twimg.com | |
2a04:4e42::79 *.wixstatic.com | |
2a04:4e42::80 admin.wes.bibbed.org | |
2a04:4e42::81 www.bbc.com |