Skip to content

Instantly share code, notes, and snippets.

View cmartinbaughman's full-sized avatar

Chris Baughman cmartinbaughman

  • TE Connectivity
  • USA
View GitHub Profile
#!/usr/bin/python
# Connects to servers vulnerable to CVE-2014-0160 and looks for cookies, specifically user sessions.
# Michael Davis (mike.philip.davis@gmail.com)
# Based almost entirely on the quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import select
@cmartinbaughman
cmartinbaughman / Evo3D_Root_OTA.md
Created February 12, 2012 15:53
HTC Evo 3D Un-Root Get & Install OTA & Re-Root!

####Un-Root Accept HTC OTA, then Re-Root Again, In 15 Minutes

Download: http://goo-inside.me/shooter/ruu/2.08.651.2

Rename the file to PG86IMG.zip then mount phone as drive and copy zip file to /sdcard/

Then open cmd prompt (Win32) or terminal (Linux/OSX) and carefully type:

  1. adb reboot bootloader
@cmartinbaughman
cmartinbaughman / gist:2007597
Created March 9, 2012 17:13
HTC Evo 3D Dialer Codes (EPST)
Tested/Working:
##775# - EPST/PRL - PRL Settings
##786# - EPST - Status Menu
##3282# - EPST - Data Programming Menu (User Name, Advanced, Restore, Enable HFA, DSA Server, MMSC URL)
##33284# - Debug - Debug Menu – (Debug Screen, Test Calls, RC Data, HDR/1X Selection, Voice Privacy, DTMF Set, Korea Mode Set)
##3424# - Diagnostic - Connect to phone in diag mode
##2539# - EPST/A-Key - Data A key menu
##7738# - EPST/P_Rev - Protocol Revision
##8626337# - EPST/Vocoder - Unsure
##4772579# - Reset the GPS
@cmartinbaughman
cmartinbaughman / pegasusq.sh
Created August 10, 2012 18:57
PegasusQ Kernel Governor
#!/system/bin/sh
echo "98" > /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold
echo "80" > /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold_at_min_freq
echo "30000" > /sys/devices/system/cpu/cpufreq/pegasusq/sampling_rate
echo "1" > /sys/devices/system/cpu/cpufreq/pegasusq/sampling_down_factor
echo "5" > /sys/devices/system/cpu/cpufreq/pegasusq/down_differential
echo "4" > /sys/devices/system/cpu/cpufreq/pegasusq/freq_step
echo "384000" > /sys/devices/system/cpu/cpufreq/pegasusq/freq_for_responsiveness
echo "15" > /sys/devices/system/cpu/cpufreq/pegasusq/cpu_up_rate
@cmartinbaughman
cmartinbaughman / InstallPRLOnAOSP
Created November 7, 2012 11:30
Install a new PRL on AOSP based ROMs, CM10, my MIUIv4 by CMBaughman, etc...
Without CDMA Workshop or QPST:
http://androidforums.com/boost-mobile-warp-all-things-root/532142-guide-how-change-your-msl-prl-not-cdma-workshop.html#post4232529
Using QPST:
(Change Sprint Banner in Firmware how to, including QPST set up)
1. Install HTC Sync if you haven't already.
2. Use the CDMA Method posted Here to get your MSL. Thanks techwerkz - Or Call Sprint. Another alternative would be to gain temp root and use MSL Reader from the market.
3. Download QPST:
http://www.x-drivers.com/catalog/flash/mobile_phones/companies/qualcomm/models/qpst/12051/download.html
4. Install QPST software
@cmartinbaughman
cmartinbaughman / README.md
Created June 14, 2013 16:56
Building FirefoxOS ReadMe.md

Boot to Gecko (B2G)

Boot to Gecko aims to create a complete, standalone operating system for the open web.

You can read more about B2G here:

http://wiki.mozilla.org/B2G

follow us on twitter: @Boot2Gecko

@cmartinbaughman
cmartinbaughman / etc_modprobe.d_psmouse.conf
Created July 11, 2013 16:43
Possible addition to Synaptics Touchpad driver, dynamic kernel module loading on boot:
cat <<EOF >/etc/sysconfig/modules/mydriver
#!/bin/bash
/sbin/modprobe -R psmouse >/dev/null 2>&1
/sbin/modprobe psmouse proto=imps >/dev/null 2>&1
EOF
@cmartinbaughman
cmartinbaughman / gist:6143284
Created August 2, 2013 20:39
Current error on my latest PAC-man 4.3 soon to release! This is pretty much I believe the last error I am getting. I need to figure out what is so dif in these libs from 4.2?
target SharedLib: libandroid_runtime (/home/cmbaughman/pac/out/target/product/shooter/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/LINKED/libandroid_runtime.so)
frameworks/av/media/libstagefright/AwesomePlayer.cpp:1012: error: undefined reference to 'android::LPAPlayer::mObjectsAlive'
frameworks/av/media/libstagefright/AwesomePlayer.cpp:1084: error: undefined reference to 'android::LPAPlayer::LPAPlayer(android::sp<android::MediaPlayerBase::AudioSink> const&, bool&, android::AwesomePlayer*)'
frameworks/av/media/libstagefright/AwesomePlayer.cpp:1685: error: undefined reference to 'android::LPAPlayer::mObjectsAlive'
collect2: error: ld returned 1 exit status
make: *** [/home/cmbaughman/pac/out/target/product/shooter/obj/SHARED_LIBRARIES/libstagefright_intermediates/LINKED/libstagefright.so] Error 1
make: *** Waiting for unfinished jobs....
Note: frameworks/support/v4/java/android/support/v4/view/accessibility/AccessibilityEventCompat.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:d
@cmartinbaughman
cmartinbaughman / 0_reuse_code.js
Created November 2, 2013 15:32
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@cmartinbaughman
cmartinbaughman / Xresources
Created November 2, 2013 15:33
From http://jaysonrowe.blogspot.com/2013/04/font-configuration-in-arch-linux.html Making Arch Linux look great with better font configuration.
Xft.autohint: 0
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault