make sure to set execution policy
C:> powershell.exe -ExecutionPolicy Unrestricted -File c:\Win_10_decrap.ps1
C:> powershell.exe -ExecutionPolicy Unrestricted -File c:\remove_default_apps.ps1
#!/bin/bash | |
#set -x | |
# source common function and variables | |
source "$(readlink -f $0 | xargs dirname)/shared" | |
REPO_DIR="${HOME}/NewDeploy/Repositories/Config_$(date +%Y%m%d%H%M%S)" | |
# check if another instance of this deployment is in progress | |
check_another_instance $(basename -- "$0") |
sshuttle: | |
pkg.installed: [] | |
group.present: | |
- gid: 2024 | |
user.present: | |
- fullname: sshuttle | |
- uid: 2024 | |
- gid: 2024 | |
- allow_uid_change: True |
make sure to set execution policy
C:> powershell.exe -ExecutionPolicy Unrestricted -File c:\Win_10_decrap.ps1
C:> powershell.exe -ExecutionPolicy Unrestricted -File c:\remove_default_apps.ps1
#!/bin/bash | |
### This script reads in a file in /etc/hosts format <ip> <hostname>, then attempts to netcat to the host using provided port | |
### if no port is provided, it will attempt to connect via port 22 | |
### if no file is provided, it will use /etc/hosts to read in IPs | |
### Usage: ./netcat.sh <port> <file> | |
### Example: ./netcat.sh <- this will try scanning /etc/hosts and connect to each IP via port 22 | |
### Example: ./netcat.sh 21500 /home/user/testfile | |
#!/usr/bin/env python | |
import gnupg | |
from pprint import pprint | |
gpg_home = '/home/user/.gnupg' | |
def show_keys(): | |
gpg = gnupg.GPG(gnupghome=gpg_home) | |
public_keys = gpg.list_keys() | |
private_keys = gpg.list_keys(True) |
[Unit] | |
Description=sshuttle service | |
After=network.target | |
[Service] | |
User=sshuttle | |
Restart=always | |
Type=forking | |
WorkingDirectory=/home/sshuttle | |
ExecStart=/home/sshuttle/sshuttle.sh start |
install-pygtk=yes | |
email-address=admin@company.com | |
install-python-ldap=yes | |
setup-firewall=yes | |
setup-selinux=yes | |
setup-web-integration=yes | |
setup-apparmor=yes | |
server-type=master | |
missing-answer=abort | |
install-nfs=yes |
#!py | |
import yaml | |
import salt | |
import logging | |
log = logging.getLogger(__name__) | |
def configure_user(host_users, all_users, config, host): | |
''' configure a User - add Group, Home Dir, SSH keys, etc ''' |
--- | |
pvespa: | |
uid: 5037 | |
fullname: Princess Vespa | |
groups: ['users'] | |
ssh_keys: | |
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDWuwV75hyhECKpIXeu2w7hb6FpfiP2Nwap46i6ohPPj9Uqx6efCUE0xTS/7AtIYRaCL97k9mUEGvqsx6ZoLfa/QzV8LcxtVmvYa9IMyVKddiSEys7Ngh5hS+J5ZHJegQC4fD6DdUG+6XYT7Vfh6XblSQ8Tjg25nuvDrv/ObwYS8vgef9EnO3nooqiVYq0PuLb+ZLM15TE1bXVBh5P5lhr8aJDpsjBuB0FFGjCFN7fPSTmw8/oyp4lRPQ/vYNheyqBEZmyJceMT15SvVgyCLkTJCy2cpXxALjh56WCfKadx0JfwRwFUvERMQ+ZUKEMTqW3cAPkn6vX2xYMXa5WuN6G1mB vespa@imac | |
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABACCdTgFK5fB4mkuIRcLAGfPPn6WDWZBH3Ew8hCCL26KCkuiitjdZbLospuBk6BAAZfWCaGzZN04bveLP48cTd5JZ/PMcaPytJ23oEpvobl99tHG6L/Q/XQs6jDIB3ex0YByh70Cic7oBSMFaidDmm4VPl5DVKBeLrcuaIE1PgDvFlb/bk+sHCb+93CZDbOxU3WNKYubDKQEIOZcuYPsW1vyVSFnBb9O8F1x2g3YtOWxI42qq/4LbqiJbRwRlzrKAId73azgX/0o97CffKYr8DPBqykTA5FBABQSY376zcgkfQbJD8wnAxyssTPiOEiWRYJ8hDg3P5ZUUBfd0S5PnvE9z pvespa@mac2 | |
lstar: |