Skip to content

Instantly share code, notes, and snippets.

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
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 :)"
@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:

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 / 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
$config['system']['enableserial'] = true;
write_config("Enable Serial Port");
require_once("pfsense-utils.inc");
setup_serial_port();
sysctl kern.geom.debugflags=16
boot0cfg -v -s 1 ad0
fdisk -a /dev/ad0
sysctl kern.geom.debugflags=0
/etc/rc.reboot
if [ `env | grep SSH_TTY | wc -l` -gt 0 ] || [ `env | grep cons25 | wc -l` -gt 0 ]; then
/etc/rc.initial
exit
fi
dnsmasq: started, version 2.66 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt no-DBus i18n IDN DHCP DHCPv6 no-Lua TFTP no-conntrack no-ipset auth
dnsmasq: reading /etc/resolv.conf
dnsmasq: using nameserver 8.8.8.8#53
dnsmasq: using nameserver 8.8.4.4#53
dnsmasq: using nameserver 192.168.130.1#53
/usr/local/lib/libidn.so.17: Undefined symbol "iconv_open"
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc
index cfea703..889ff83 100644
--- a/etc/inc/globals.inc
+++ b/etc/inc/globals.inc
@@ -34,6 +34,7 @@
*/
+global $g;
$g = array(