Skip to content

Instantly share code, notes, and snippets.

@w3llr00t3d
w3llr00t3d / gfid-resolver.sh
Created October 2, 2018 09:50 — forked from louiszuckerman/gfid-resolver.sh
Glusterfs GFID Resolver Turns a GFID into a real path in the brick
#!/bin/bash
if [[ "$#" < "2" || "$#" > "3" ]]; then
cat <<END
Glusterfs GFID resolver -- turns a GFID into a real file path
Usage: $0 <brick-path> <gfid> [-q]
<brick-path> : the path to your glusterfs brick (required)

How to pass the OSCP

  1. Recon
  2. Find vuln
  3. Exploit
  4. Document it

Recon

Unicornscans in cli, nmap in msfconsole to help store loot in database.

@w3llr00t3d
w3llr00t3d / update_checker.sh
Created May 15, 2018 01:26
checks for drupal updates
#!/bin/bash
DRUPALSITES=`find /var/www -name default.settings.php | grep -i '/htdocs/' 2> "/dev/null"`
for site in $DRUPALSITES; do
value=`echo $site | sed -e "s/\/sites\/default\/default.settings.php//"`
echo $value
echo
DRUSHOUTPUT=`/usr/bin/php /opt/scripts/drush/drush.php --root=$value up -n 2>&1 | grep -E '(SECURITY|not supported)'`
echo $DRUSHOUTPUT