Skip to content

Instantly share code, notes, and snippets.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
https://keybase.io/aidantwoods is an alias of https://keybase.io/aidanwoods .
This profile exists as I use aidantwoods as a common username.
Please verify that this message was signed:
https://gist.github.com/aidantwoods/d2245fa20fe03f8f1603dd3f75e1052e
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJZSqKoAAoJEJpqjvqlEru54OcP/1K4RPTZhZCnn5Fy4T4nZgRD

Keybase proof

I hereby claim:

  • I am aidantwoods on github.
  • I am aidanwoods (https://keybase.io/aidanwoods) on keybase.
  • I have a public key whose fingerprint is A0EA F427 E34F 4450 5F17 1FB0 9A6A 8EFA A512 BBB9

To claim this, I am signing this object:

@aidantwoods
aidantwoods / kaliphp.sh
Last active November 15, 2017 13:12
Pull dependencies and configure a sane install of the latest (at time of writing) version of PHP (you'll need to update the version number if you want a newer one) on Kali (and probably other Debian too). This is mainly for my own use, I make no commitment to maintain this – but it should be a good starting point anyway
export MAJOR='7'
export MINOR='1'
export PATCH='11'
export MAJMIN=$MAJOR.$MINOR
export VERSION=$MAJMIN.$PATCH
sudo apt-get update
if ! (sudo apt-get install dirmngr); then
echo 'Could not get GPG dependency'
@aidantwoods
aidantwoods / juggledTypes.php
Created May 31, 2017 08:12
Try ?password=0
<?php
$unfortunateHash = '0e23957352';
if ($unfortunateHash == $_GET['password'])
{
echo 'logged in!';
}
else
{
@aidantwoods
aidantwoods / badTypes.php
Created May 31, 2017 07:50
Try ?password[]=1
<?php
if (0 == strcmp('password', $_GET['password']))
{
echo 'logged in!';
}
else
{
echo 'incorrect password';
}
kcachegrind
// Place your settings in this file to overwrite the default settings
{
"editor.tabSize": 4,
"editor.rulers": [80],
"window.zoomLevel": 0,
"window.openFilesInNewWindow": "on",
"git.enabled": true,
"[php]": {
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true
#!/bin/bash
# Snippet from https://github.com/girst/hardpass-sendHID/blob/master/README.md . In which, the following notice was left:
# this is a stripped down version of https://github.com/ckuethe/usbarmory/wiki/USB-Gadgets - I don't claim any rights
modprobe libcomposite
cd /sys/kernel/config/usb_gadget/
mkdir -p g1
cd g1
echo 0x1d6b > idVendor # Linux Foundation
#!/bin/bash
# See https://gist.github.com/gbaman/50b6cca61dd1c3f88f41 for more info
echo "dtoverlay=dwc2" | sudo tee -a /boot/config.txt
echo "dwc2" | sudo tee -a /etc/modules
#!/bin/bash
export tmp=$(mktemp); cat $1 | while read line; do echo $line;read tmp_line </dev/tty; if [ "$tmp_line" = "" ]; then tmp_line=$line;fi;echo $tmp_line >> $tmp;done; cp $tmp $1;