Filter | Description | Example |
---|---|---|
allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |
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 | |
set -euo pipefail | |
set -x | |
virtualenv_path=/usr/local/ansible/stable | |
# Install packages needed on a base Debian system | |
apt-get update | |
</dev/null DEBIAN_FRONTEND=noninteractive \ | |
apt-get --yes install --no-install-recommends $( |
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
url='https://public.cyber.mil/pki-pke/pkipke-document-library/' | |
export CERT_URL=$(curl -s $url | awk -F '"' 'tolower($2) ~ /dod\.zip/ {print $2}') | |
#bundle=https://dl.dod.cyber.mil/wp-content/uploads/pki-pke/zip/certificates_pkcs7_v5-6_dod.zip | |
#export CERT_URL='https://dl.dod.cyber.mil/wp-content/uploads/pki-pke/zip/certificates_pkcs7_DoD.zip' | |
# Download & Extract DoD root certificates | |
cd ~/Downloads/ | |
/usr/bin/curl -LOJ ${CERT_URL} | |
/usr/bin/unzip -o $(basename ${CERT_URL}) |
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 | |
# Import DoD root certificates into linux CA store | |
main() { | |
# Location of bundle from DISA site | |
url='https://public.cyber.mil/pki-pke/pkipke-document-library/' | |
bundle=$(curl -s $url | awk -F '"' 'tolower($2) ~ /dod\.zip/ {print $2}') | |
#bundle=https://dl.dod.cyber.mil/wp-content/uploads/pki-pke/zip/certificates_pkcs7_v5-6_dod.zip | |
# Set cert directory and update command based on OS |
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
## set the path to the xml xccdf file. | |
$BenchMarkFilePath = '~\Documents\U_Windows_2012_and_2012_R2_MS_STIG_V2R6_Manual-xccdf.xml' | |
## load the content as XML | |
[xml]$Stigx = Get-Content -Path $BenchMarkFilePath -EA Stop | |
# start by parsing the xccdf security benchmark | |
if($Stigx){ | |
$StigCollection = @() | |
# loop through the xccdf benchmark collecting data into an object collection | |
foreach ($rule in $StigX.Benchmark.Group.Rule){ |
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
# XCode Command Line Tools | |
>xcode-select --install | |
# Install Homebrew | |
>ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
>echo PATH=/usr/local/bin:/usr/local/sbin:$PATH >> ~/.bash_profile | |
>source ~/.bash_profile | |
>brew tap homebrew/versions |
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 | |
# DoD Root Certificate install 19 July 2019 | |
# to do: add Firefix import | |
# set cert numbers as variables | |
# combine fingerprint functions | |
# check all root CA fingerprints | |
# compare against CRL | |
SECONDS='0' | |
NC='\e[0m' |
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
# http://developer.asustor.com/tools | |
# from https://neerajcodes.wordpress.com/2017/08/06/intro-to-cross-compilation/ | |
export CCHOST=arm-marvell-linux-gnueabi | |
export TOOLCAHIN=../$CCHOST/bin/$CCHOST | |
export CC=$TOOLCAHIN-gcc | |
export LD=$TOOLCAHIN-ld | |
export CPP=$TOOLCAHIN-cpp | |
export CXX=$TOOLCAHIN-g++ | |
export AR=$TOOLCAHIN-ar | |
./configure --prefix=$(pwd)/target/ --host=CCHOST |
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 | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
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/sh | |
# @Author: ps158 | |
# @Date: 2017-04-24T13:08:28+10:00 | |
# @Last modified by: ps158 | |
# @Last modified time: 2017-04-24T13:41:13+10:00 | |
# REF: https://www.wolfe.id.au/2014/02/01/getting-a-new-node-project-started-with-npm/ | |
mkdir $1 | |
cd $1 | |
git init |
NewerOlder