I hereby claim:
- I am bahorn on github.
- I am bahorn (https://keybase.io/bahorn) on keybase.
- I have a public key whose fingerprint is 8109 2732 6173 4511 5F4A 7A54 5D62 4999 8486 EE8F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
""" | |
A POC for the user readable pty allowing you to capture your password, | |
but with sudo. You might need to press enter once at the password prompt | |
to get this to work, bit of a race condition there. Should be noted that | |
a root owned tty only starts after a correct password, but you can still | |
log keys after that with this (but it will break the terminal and will | |
need to be killed). | |
The only advantage to targeting systemd-run --pty is that you don't seem to | |
need to kill -9 the targeted session afterwards so it behaves a bit better. |
#!/usr/bin/env python3 | |
""" | |
So... I got nerd snipped by someone talking about a fake bug. | |
But in the process I got to learn a bit about an old trick and convert it into | |
a mildly interesting backdoor that lets you misuse a sudo session if started | |
from one the basic user you owned. | |
Run like: | |
python3 this.py & |
import colorsys | |
import random | |
import string | |
import sys | |
import multiprocessing | |
import time | |
import os | |
sys.path.append(os.path.realpath('openrgb')) | |
import openrgb | |
from openrgb.utils import DeviceType, ModeData, RGBColor, ZoneType |
# Cloud mixed with evan. | |
if [[ -z $ZSH_THEME_CLOUD_PREFIX ]]; then | |
ZSH_THEME_CLOUD_PREFIX=$(hostname | cut -c1) | |
fi | |
PROMPT='%{$fg_bold[cyan]%}$ZSH_THEME_CLOUD_PREFIX %{$fg_bold[green]%}%p%{$fg[green]%}%2~%{$fg_bold[cyan]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}»%b ' | |
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}[%{$fg[cyan]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" |
grep "^mem" UCD-SNMP-MIB.txt | cut -f 1 -d ' ' | xargs -n 1 -I {} printf "[[inputs.snmp.field]]\nname = \"{}\"\noid = \"UCD-SNMP-MIB:::{}\"\n\n" | clip | |
opkg update; opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade |
<script> | |
const count = 500; | |
function timeFunction(fun, arg) { | |
var start = new Date().getTime(); | |
fun(arg); | |
var end = new Date().getTime(); | |
return (end - start); | |
} | |
version: '3' | |
services: | |
minio: | |
image: 'bahorn/minio:latest' | |
command: minio server /data | |
restart: always | |
ports: | |
- '9000:9000' | |
volumes: |
from encoder.params_model import model_embedding_size as speaker_embedding_size | |
from utils.argutils import print_args | |
from synthesizer.inference import Synthesizer | |
from encoder import inference as encoder | |
from vocoder import inference as vocoder | |
from pathlib import Path | |
import numpy as np | |
import librosa | |
import argparse | |
import torch |