This file contains hidden or 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 | |
| PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/snap/bin | |
| log="/var/log/aws_inspector/aws_inspector_export_rep.log" | |
| template_arn='arn:aws:inspector:us-east-1:XXXXXXXXXXXX:target/xxxxxxxxxx/template/xxxxxxxxxx' | |
| wait_sec='5400' | |
| log_out(){ | |
| (($verifymon)) &&\ | |
| echo -e "`date +'%Y-%m-%d %H:%M:%S'` (pid $$) -- $1" >> $log ||\ | |
| echo -e "`date +'%Y-%m-%d %H:%M:%S'` (pid $$) -- $1" | tee -a $log |
This file contains hidden or 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
| --- | |
| # list of node groups | |
| service: | |
| splunk: | |
| config: | |
| verify_tls: False | |
| splunk_cm_api_url: 'https://splunk-cluster-master01.domain.tld:8089' | |
| splunk_status_check_path: 'services/cluster/master/status?output_mode=json' | |
| splunk_set_mm_path: 'services/cluster/master/control/default/maintenance?output_mode=json' | |
| roles: |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| # vim: ft=sls | |
| # Patch and reboot macro | |
| {% macro patch_and_reboot(node, service='salt-minion.service') %} | |
| # Update minion seperately and restart the service | |
| orch-function-update-minion-{{ node }}: | |
| salt.function: | |
| - name: cmd.run | |
| - tgt: {{ node }} |
This file has been truncated, but you can view the full file.
This file contains hidden or 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 python3 | |
| import os | |
| import sys | |
| import json | |
| import csv | |
| import configparser | |
| import datetime | |
| import requests | |
| import urllib |
This file contains hidden or 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 bash | |
| # Modified Bug Bounty Hunting Tools install script for Fedora | |
| # Create this file in ~/scripts and then run | |
| # sudo su <username> -c "~/scripts/install_sectools.sh" | |
| #create a tools folder in ~/ | |
| mkdir ~/tools | |
| cd ~/tools/ |
This file contains hidden or 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 python3 | |
| """ | |
| Script to check redirects and return status of contacted page. | |
| Input file should be one domain per line | |
| """ | |
| import csv | |
| from urllib.parse import urlparse |
This file contains hidden or 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
| # Script created based on info from | |
| # https://lonesysadmin.net/2013/03/26/preparing-linux-template-vms/ | |
| # | |
| # Prepare RHEL/CentOS 7 VM for template creation | |
| #!/bin/bash | |
| # Stop logging services | |
| systemctl stop rsyslog | |
| service auditd stop |
This file contains hidden or 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
| # Linux Audit baseline | |
| # Intended for current 64-bit Debian- and RHEL-family systemd servers. | |
| # Loaded before policy rules to establish a clean audit subsystem state. | |
| ## Reset - start from a known ruleset. | |
| -D | |
| ## Kernel audit queue - tolerate short bursts without silently losing events. | |
| -b 8192 | |
| --backlog_wait_time 60000 |
This file contains hidden or 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
| # | |
| # Generate Groups of VMs from VMware shell | |
| # | |
| #!/bin/ash | |
| usage="\n$(basename "$0") [-h] [-n int] [-b basename] [-t tpl_name] [-p /path/to/datastore] \n | |
| Example usage: $(basename "$0") -n 6 -b node -t CENTOS_TPL -p /vmfs/volumes/Datastore | |
| " | |
| while getopts ":hn:b:t:p:" opt; do |