I hereby claim:
- I am raresteak on github.
- I am raresteak (https://keybase.io/raresteak) on keybase.
- I have a public key whose fingerprint is 81D2 1A1A A2F7 779A 462A 7BD3 89E1 606A 4696 9C36
To claim this, I am signing this object:
curl -u elastic:changeme http://`hostname`:9200/_cat | |
=^.^= | |
/_cat/allocation | |
/_cat/shards | |
/_cat/shards/{index} | |
/_cat/master | |
/_cat/nodes | |
/_cat/tasks | |
/_cat/indices | |
/_cat/indices/{index} |
for i in $(cat list.ips);do echo -n $i,;nslookup $i|grep name|awk {'print $4'}; done |
lang en_US | |
keyboard us | |
timezone America/Atlanta | |
#platform x86, AMD64, or Intel EM64T | |
reboot | |
url --url=http://169.254.1.1// | |
bootloader --location=mbr --append="rhgb quiet crashkernel=auto" | |
zerombr | |
clearpart --all --initlabel | |
autopart |
# Create daily nmon performance file | |
# http://nmon.sourceforge.net/pmwiki.php Nigel's | |
0 0 * * * cd /var/log/nmon && /your/path/to/nmon -ft -s 60 -c 1440 |
I hereby claim:
To claim this, I am signing this object:
Copy one directory to another | |
rsync -avxHAX --progress <source> <destination> | |
When transfering sparse files special care is needed. | |
First time transferring sparse files use --sparse. | |
Next time, when the sparse files already exist on destination, don't use --sparse, instead us --inplace. |
param($ComputerName) | |
# Requires Domain Administrator | |
Get-AdmPwdPassword -ComputerName $ComputerName | Format-List |
#!/bin/bash | |
# Fix Ghostscript bypass vulnerabilities with ImageMagick CERT 332928 | |
# Disable PS, EPS, PDF, and XPS coders in ImageMagick policy.xml | |
# https://www.kb.cert.org/vuls/id/332928 | |
cd /etc/ImageMagick?? || exit | |
cp -v policy.xml policy.xml.tmp | |
cp -v policy.xml policy.xml.orig | |
sed -i 's/<\/policymap>//' policy.xml.tmp | |
cat <<EOF >> policy.xml.tmp |
#!/bin/bash | |
############################################################################### | |
#Script Name : enumerate_sudo_users | |
#Description : Check which users on system can sudo with some form of | |
# privileged access. | |
#Author : Github raresteak | |
############################################################################### | |
[[ "$TRACE" ]] && set -x | |
[[ "$HEADER" ]] && echo "UserName,SystemName" # Useful for putting in a spreadsheet |
#Linux | |
sed -i 's/1024x768/800x600/g' /etc/default/grub | |
update-grub | |
# | |
#win2016 | |
powershell.exe -c Set-DisplayResolution -Width 800 -Height 600 -Force | |
# | |
#win10 | |
# |