Skip to content

Instantly share code, notes, and snippets.

View MattCurryCom's full-sized avatar

Matt Curry MattCurryCom

View GitHub Profile
@MattCurryCom
MattCurryCom / pwnagotchi_install.sh
Created July 31, 2022 16:28 — forked from arainho/pwnagotchi_install.sh
install pwnagotchi on rpi4
#!/usr/bin/env bash
# install pwnagotchi on rpi4
WIFI_DEV="wlan1"
AUTO_MODE=true
DEBUG=false
PWN_GRID=false
PWN_GRID_REPORT=false
HOME_NETWORK="YourHomeNetworkMaybe"
@MattCurryCom
MattCurryCom / TensorFlowPrep.sh
Last active April 3, 2020 22:35
TensorFlowPrep.sh
#!/bin/bash
# Description: Preps a system (debian/ubuntu/raspbian), with needed tensorflow libs.
# Author : Matt Curry
# GH : MattCurryCom
#
####
USER=
@MattCurryCom
MattCurryCom / bashrcroot
Last active December 17, 2019 16:31
bashrc-root
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@MattCurryCom
MattCurryCom / bashrc-user
Last active October 31, 2019 20:23
bashrc-user
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@MattCurryCom
MattCurryCom / dirty_sock.py
Created February 14, 2019 21:20
Tests SnapD Escalation bug
#!/usr/bin/env python3
"""
Local privilege escalation via snapd, affecting Ubuntu and others.
Discovered by Chris Moberly.
Before running, you need to:
- Create an Ubuntu developer account (https://snapcraft.io/)
- Login to that account and ensure you have your public SSH key configured
in your profile.
@MattCurryCom
MattCurryCom / PS1-ROOT-Linux
Last active January 16, 2019 18:25
PS1-ROOT-Linux
PS1="\[\033[0;31m\]\[\033)0\016\]\[\]lq\[\017\033(B\](\[\033[1;37m\]\!\[\033[0;31m\])(\[\033[1;37m\]\u\[\033[0;31m\]@\[\033[1;37m\]\h\[\033[0;31m\])-(\[\e[1;37m\]Jobs: \j\[\033[0;31m\])-(\[\033[1;37m\]\$(/bin/ls -1 | /usr/bin/wc -l | /bin/sed 's: ::g') files, \$(/bin/ls -lah | /bin/grep -m 1 total | /bin/sed 's/total //')b\[\033[0;31m\])\n\[\033)0\016\]\[\]mq\[\017\033(B\](\[\033[1;37m\]\T\[\033[0;31m\])-(\[\033[1;37m\]\w\[\033[0;31m\])\[\033[0;31m\]->\[\033[0m\]"
@MattCurryCom
MattCurryCom / PS1-USER-Linux
Last active January 16, 2019 18:25
PS1-User-Linux
PS1="\[\033[0;33m\]\[\033)0\016\]\[\]lq\[\017\033(B\](\[\033[1;37m\]\!\[\033[0;33m\])(\[\033[1;37m\]\u\[\033[0;33m\]@\[\033[1;37m\]\h\[\033[0;33m\])-(\[\e[1;37m\]Jobs: \j\[\033[0;33m\])-(\[\033[1;37m\]\$(/bin/ls -1 | /usr/bin/wc -l | /bin/sed 's: ::g') files, \$(/bin/ls -lah | /bin/grep -m 1 total | /bin/sed 's/total //')b\[\033[0;33m\])\n\[\033)0\016\]\[\]mq\[\017\033(B\](\[\033[1;37m\]\T\[\033[0;33m\])-(\[\033[1;37m\]\w\[\033[0;33m\])\[\033[0;33m\]->\[\033[0m\]"

Keybase proof

I hereby claim:

  • I am mattcurrycom on github.
  • I am changosmuertos (https://keybase.io/changosmuertos) on keybase.
  • I have a public key whose fingerprint is 1064 D0D1 441C B6D6 88B1 2737 BB0D 3F06 7865 BCFD

To claim this, I am signing this object:

@MattCurryCom
MattCurryCom / keybase.md
Created September 26, 2018 16:23
keybase.md

Keybase proof

I hereby claim:

  • I am changosmuertos on github.
  • I am changosmuertos (https://keybase.io/changosmuertos) on keybase.
  • I have a public key whose fingerprint is 1064 D0D1 441C B6D6 88B1 2737 BB0D 3F06 7865 BCFD

To claim this, I am signing this object: