Skip to content

Instantly share code, notes, and snippets.

View mike-bailey's full-sized avatar

Michael Bailey mike-bailey

View GitHub Profile
@mike-bailey
mike-bailey / gist:cf77a75ccff31bb77dbe9d8fdb80b00e
Last active August 23, 2018 15:25
Gitlab key scanner. Key note: This won't scale. If you are above 50% disk utilization even just on your Gitlab server, consider using a storage solution like NFS to offload things.
#!/bin/bash
# Change this to your location on your Gitlab server
REPO_LOCATION="/home/gitlab/repositories"
cp_repos() {
echo "Removing past repo data"
rm -rf /tmp/scanresults
echo "Creating directory structure"
mkdir -p /tmp/scanresults
@mike-bailey
mike-bailey / challenge_key.txt
Created August 30, 2017 16:30
Master key for Mason CC Back to School CTF
Master Key to Mason CC CTF:
Let me know if there are any omissions
Mexico:
Wonder how to decode this?
Q0N7SVNOVF9USElTX0ZVTn0=
Soln: Literally base64:
>CC{ISNT_THIS_FUN}
@mike-bailey
mike-bailey / yeet.sh
Last active July 31, 2017 04:42
setup dvwa
#!/bin/bash
chmod -R 777 /var/www/html/hackable/uploads /var/www/html/external/phpids/0.6/lib/IDS/tmp/phpids_log.txt && \
sed -i 's/allow_url_include = Off/allow_url_include = On/g' /etc/php5/apache2/php.ini && \
sed -i "s/$_DVWA[ 'recaptcha_private_key' ] = ''/$_DVWA[ 'recaptcha_private_key' ] = 'TaQ185RFuWM'/g" /var/www/html/config/config.inc.php && \
sed -i "s/$_DVWA[ 'recaptcha_public_key' ] = ''/$_DVWA[ 'recaptcha_public_key' ] = 'TaQ185RFuWM'/g" /var/www/html/config/config.inc.php && \
sed -i 's/FileInfo/All/g' /etc/apache2/sites-available/000-default.conf && \
sed -i 's/root/admin/g' /var/www/html/config/config.inc.php && \
echo "sed -i \"s/p@ssw0rd/\$PASS/g\" /var/www/html/config/config.inc.php" >> /create_mysql_admin_user.sh && \
echo 'session.save_path = "/tmp"' >> /etc/php5/apache2/php.ini
### Keybase proof
I hereby claim:
* I am mike-bailey on github.
* I am bailey (https://keybase.io/bailey) on keybase.
* I have a public key ASD1iDP79m7mZXigiyFK-DcCJAkywp8vcVCRqO_kuez8dQo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am mike-bailey on github.
  • I am bailey (https://keybase.io/bailey) on keybase.
  • I have a public key whose fingerprint is 7AF0 E26F B17C 6261 DE0E A511 79EE 98B6 F961 4B96

To claim this, I am signing this object:

@mike-bailey
mike-bailey / lightdm
Created November 24, 2014 06:27
In hindsight, I probably don't even need to cat then pipe to grep. But I didn't think it'd be fatal...?
cat /etc/lightdm/lightdm.conf
if [ $?==0 ]; then
cat /etc/lightdm/lightdm.conf | grep -v allow-guest > /etc/lightdm/lightdm.conf
echo "allow-guest=false" >> /etc/lightdm/lightdm.conf
fi
@mike-bailey
mike-bailey / evills
Last active August 29, 2015 14:08 — forked from Eugeny/evills
#!/usr/bin/python
# -*- coding: utf-8 -*-
import subprocess
__all__ = ["transform"]
__version__ = '0.3'
__author__ = 'Christoph Burgmer <cburgmer@ira.uka.de>'
__url__ = 'http://github.com/cburgmer/upsidedown'