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
# alerts if system file is changed or modified | |
name: File Integrity Changed | |
# Alert on x events in y seconds | |
type: frequency | |
# Alert when this many documents matching the query occur within a timeframe | |
num_events: 1 | |
get_params(){ | |
PARAMS="" | |
while (( "$#" )); do | |
case "$1" in | |
## RESET - boolean | |
-r|--reset) | |
RESET=true | |
shift |
#!/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 protected] | |
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 |