Skip to content

Instantly share code, notes, and snippets.

if [ `env | grep SSH_TTY | wc -l` -gt 0 ] || [ `env | grep cons25 | wc -l` -gt 0 ]; then
/etc/rc.initial
exit
fi
sysctl kern.geom.debugflags=16
boot0cfg -v -s 1 ad0
fdisk -a /dev/ad0
sysctl kern.geom.debugflags=0
/etc/rc.reboot
$config['system']['enableserial'] = true;
write_config("Enable Serial Port");
require_once("pfsense-utils.inc");
setup_serial_port();
@jim-p
jim-p / gist:10140152
Last active August 29, 2015 13:58
graphics/dri build error
Solution: You have conflicting LLVM includes.
rm -rf /usr/local/include/llvm/ /usr/local/include/llvm-c/
Then rebuild graphics/dri
Build Log:
# env MAKE_JOBS_UNSAFE=yes portupgrade --batch -f dri-9.1.7_3,2
[Reading data from pkg(8) ... - 1427 packages found - done]
---> Reinstalling 'dri-9.1.7_3,2' (graphics/dri)
---> Building '/usr/ports/graphics/dri'
===> Cleaning for dri-9.1.7_3,2
net.inet.ip.pfil.inbound: pf
net.inet.ip.pfil.outbound: pf
net.link.bridge.pfil_onlyip: 0
net.link.bridge.pfil_bridge: 0
net.link.bridge.pfil_member: 1
net.link.bridge.pfil_local_phys: 0
net.link.pfil.inbound:
net.link.pfil.outbound:
net.inet6.ip6.pfil.inbound: pf
net.inet6.ip6.pfil.outbound: pf
@jim-p
jim-p / keybase.md
Created June 5, 2014 18:28
keybase.md

Keybase proof

I hereby claim:

  • I am jim-p on github.
  • I am jimp (https://keybase.io/jimp) on keybase.
  • I have a public key whose fingerprint is 7653 2AC1 2E9F 551D BE84 0B06 574A 9C0D 74CC 1661

To claim this, I am signing this object:

echo "Testing Exploit 1 (CVE-2014-6271)"
CVE6271="$(env x='() { :;}; echo -n V' bash -c : 2>/dev/null)"
[ "${CVE7187}" == "V" ] && echo "VULNERABLE" || echo "NOT VULNERABLE"
echo "Testing Exploit 2 (CVE-2014-7169)"
CVE7169="$(env X='() { (4lpi.com)=>\' bash -c "echo date" 2>/dev/null; cat echo 2>/dev/null; rm -f echo)"
[ ! "${CVE7169}" == "date" ] && echo "VULNERABLE" || echo "NOT VULNERABLE"
echo "Testing Exploit 3 (CVE-2014-6277)"
CVE6277="$(env -i X=' () { }; echo -n V' bash -c :)"
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.7 winetricks
env WINEARCH=win32 WINEPREFIX=~/.wine-kayako winecfg
env WINEARCH=win32 WINEPREFIX=~/.wine-kayako winetricks ie8
env WINEARCH=win32 WINEPREFIX=~/.wine-kayako winetricks gdiplus
env WINEARCH=win32 WINEPREFIX=~/.wine-kayako winetricks vcrun2008
[Copy all of the DLLs from vcrun2012 to ~/.wine-kayako/drive_c/windows/system32/
mfc110.dll mfc110cht.dll mfc110enu.dll mfc110fra.dll mfc110jpn.dll mfc110rus.dll mfcm110.dll
@jim-p
jim-p / gist:de856d43cf5f5418b57e
Created January 29, 2015 14:41
ALIX ttys 2.2
#
# $FreeBSD: stable/10/etc/etc.amd64/ttys 267236 2014-06-08 17:50:07Z nwhitehorn $
# @(#)ttys 5.1 (Berkeley) 4/17/89
#
# This file specifies various information about terminals on the system.
# It is used by several different programs. Common entries for the
# various columns include:
#
# name The name of the terminal device.
#
Site A (hub)
Tunnel to B
A-B
C-B
D-B
Tunnel to C
A-C
B-C
D-C
Tunnel to D