# installed by winget
winget install PowerShell-Preview
winget install git
git config --global user.name "Eric Baranowski"
git config --global user.email eric@kulado.com
winget install rstudio
winget install vscode
winget install -e R
winget install Github.GithubDesktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
set -u | |
set -x | |
if [[ -f $HOME/.zshrc ]]; then | |
mv $HOME/.zshrc $HOME/.zshrc.bak | |
fi | |
if [[ -f $HOME/.zhistory ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Plots The Majority of Moving Averages | |
//Defaults to Current Chart Time Frame --- But Can Be Changed to Higher Or Lower Time Frames | |
//2nd MA Capability with Show Crosses Feature | |
study(title="CM_Ultimate_MA_MTF", shorttitle="CM_Ultimate_MA_MTF", overlay=true) | |
//inputs | |
src = close | |
useCurrentRes = input(true, title="Use Current Chart Resolution?") | |
resCustom = input(title="Use Different Timeframe? Uncheck Box Above", type=resolution, defval="D") | |
len = input(20, title="Moving Average Length - LookBack Period") | |
atype = input(1,minval=1,maxval=7,title="1=SMA, 2=EMA, 3=WMA, 4=HullMA, 5=VWMA, 6=RMA, 7=TEMA") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenVPN 2.4.3 x86_64-apple-darwin16.6.0 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [MH/RECVDA] [AEAD] built on Jun 21 2017 | |
# Local host name or ip address. | |
# Implies --bind. | |
local <hostname> | |
# Remote host name or ip address. | |
remote <hostname> [port] | |
# If multiple --remote options specified, choose one randomly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
If you’re lucky enough to find a command execution vulnerability during a penetration test, pretty soon afterwards you’ll probably want an interactive shell.
If it’s not possible to add a new account / SSH key / .rhosts file and just log in, your next step is likely to be either trowing back a reverse shell or binding a shell to a TCP port. This page deals with the former.
Your options for creating a reverse shell are limited by the scripting languages installed on the target system – though you could probably upload a binary program too if you’re suitably well prepared.
The examples shown are tailored to Unix-like systems. Some of the examples below should also work on Windows if you use substitute “/bin/sh -i” with “cmd.exe”.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo systemctl --no-ask-password try-restart containerd.service | |
sudo systemctl --no-ask-password try-restart systemd-networkd.service | |
sudo systemctl --no-ask-password try-restart kvp.service | |
sudo systemctl --no-ask-password try-restart kubelet.service | |
sudo systemctl --no-ask-password try-restart libvirtd.service | |
sudo systemctl --no-ask-password try-restart vss.service | |
sudo systemctl --no-ask-password try-restart systemd-machined.service | |
sudo systemctl --no-ask-password try-restart waagent.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.10.16.0/20 | |
1.32.128.0/18 | |
5.8.37.0/24 | |
5.34.242.0/23 | |
5.101.218.0/24 | |
5.101.221.0/24 | |
5.134.128.0/19 | |
5.157.0.0/18 | |
14.4.0.0/14 | |
23.226.48.0/20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "192.168.27.100 master.cfc mycluster.icp" | sudo tee /etc/hosts | |
if [[ $(uname -s) == 'Linux' ]]; then | |
# ubuntu | |
scp -r vagrant@mycluster.icp:/etc/docker/certs.d/mycluster.icp\:8500 /usr/local/share/ca-certificates | |
sudo cp -r /usr/local/share/ca-certificates/mycluster.icp\:8500 /etc/docker/certs.d | |
sudo update-ca-certificates | |
elif [[ $(uname -s) == 'Darwin' ]]; then |
NewerOlder