Skip to content

Instantly share code, notes, and snippets.

View cmartinbaughman's full-sized avatar

Chris Baughman cmartinbaughman

  • TE Connectivity
  • USA
View GitHub Profile
@cmartinbaughman
cmartinbaughman / GoogleHackMasterList.txt
Last active April 17, 2024 14:57
The definitive super list for "Google Hacking".
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www” domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com
@cmartinbaughman
cmartinbaughman / winnt-sec2008
Created October 22, 2012 16:57
Windows Security (New ways to crack the Win Password Hashes!
Password hashes are stored in the registry, in the key HKLM\Security\Sam. Normally you must have administrator privileges to access it. Even you are the local admin – you still have to assign manually full control permission for this subkey to yourself.
The juicy stuff physically is stored in two files:
C:\windows\system32\config\sam
and
C:\windows\system32\config\system
http://www.codeproject.com/KB/files/FDump.aspx is a tool that can dump file sectors directly from disk using logical offsets.
C:\windows\system32\config\sam and C:\windows\system32\config\system in target system (the second one is needed because of the “boot key” is stored there) so then we may process it somewhere else with Cain & Abel.
@cmartinbaughman
cmartinbaughman / GetCachedNetworkCredentials.cmd
Created June 12, 2013 15:22
More nifty network commands for the super secret admin toolbox, found somewhere here on gist original by fabriceleal!
rundll32.exe keymgr.dll, KRShowKeyMgr
@cmartinbaughman
cmartinbaughman / handy_commands
Created October 25, 2011 20:38
Commands to remember...
#Cracking an FTP server (use whatever service you want THC Hydra supports lots!
hydra -L wordlist.txt -P passlist.txt 192.168.1.1 ftp
#Other handy THC Hydra commands~!
#Log in to ftp service with -l user and -p password:
./hydra -l john -p doe 192.168.0.1 ftp
#Log in to IMAP service using user wordlist with -L user.txt and the password -p secret:
./hydra -L user.txt -p secret 192.168.0.1 imap PLAIN
@cmartinbaughman
cmartinbaughman / Creating MIUI OTA patches
Created October 19, 2012 18:30
Creating MIUI OTA patches
(转)creating binary patch files (.p files) with bsdiff
I was looking through a .602 update.zip and noticed the .p files; I opened one up in notepad++ and saw that the file begins with "bsdiff" so did a search and found this tool:
http://www.daemonology.net/bsdiff/
bsdiff takes an original file and a modified file as input and creates a binary patch file.
bspatch takes an original file and a patch file as input and creates a modified file.
usage (windows):
@cmartinbaughman
cmartinbaughman / linux-kernel-tutorial-gregkh_lxf
Created June 13, 2013 14:53
Clips of a fantastic Linux Kernel development tutorial, by Greg Kroah-Hartman.
So run off and install git on your Linux system using the package
manager you are comfortable with (personally, I use openSUSE, and a
simple 'zypper install git' does everything that is needed.)
Then start by cloning the main Linux kernel repository:
$ mkdir ~/linux
$ cd ~/linux
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
@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
@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 / 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 / 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