Skip to content

Instantly share code, notes, and snippets.

@PseudoSky
PseudoSky / Apentest2015
Created December 21, 2017 06:13 — forked from CHEF-KOCH/Apentest2015
Android Penetration Testing Tools 2015
Android Penetration Testing Tools 2015
by CHEF-KOCH
==============
Note:
1. These apps are not for beginners because expertise is needed on the Android platform.
2. Most of the apps work on Rooted Android devices. So root your Android device first. If you are not sure how to do it, learn how to by, reading one of the many sites available to help with this process.
3. You will lose your device’s warranty if you root it, so think twice before proceeding.
4. These apps can also harm your Android device. So please try these apps at your own risk
@PseudoSky
PseudoSky / .bash_profile
Last active December 12, 2017 04:19
dot files and environment (you should NEVER blindly use peoples dot files)
export PATH=/usr/local/lib:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
. ~/dot/snowbash
. ~/dot/completions
genpath
export PATH="/usr/local/bin:$PATH";
export NODE_ENV="development"
export NVM_DIR="/usr/local/nvm"
@PseudoSky
PseudoSky / .mongorc.js
Created December 12, 2017 04:15
Mongorc
__ansi = {
csi: String.fromCharCode(0x1B) + '[',
reset: '0',
text_prop: 'm',
foreground: '3',
bright: '1',
underline: '4',
colors: {
red: '1',
@PseudoSky
PseudoSky / MakeFacebookUseful.js
Created June 22, 2017 04:37
Removes all the sponsored ads and shared content from the facebook timeline..
// Run this from the chrome console
// Somehow facebook blocks window intervals...
function get_nth_parent(e, n){
e=e.parentElement
if(n==0) return e;
return get_nth_parent(e, n-1);
}
function remove_shared_shit(){
@PseudoSky
PseudoSky / domains-like.js
Created January 2, 2017 22:11
A fuzzy search for domain urls using wikireverse
// GO TO https://wikireverse.org/
function inj(service){
service = service|| "$rootScope";
return angular.element(document.body).injector().get(service);
}
$http=inj('$http');
entries=[]
@PseudoSky
PseudoSky / Gruntfile.js
Created November 11, 2016 22:07
Build scripts
// Generated on <%= (new Date).toISOString().split('T')[0] %> using <%= rootGeneratorName() %> <%= rootGeneratorVersion() %>
'use strict';
module.exports = function(grunt) {
var localConfig;
try {
localConfig = require('./server/config/local.env');
} catch(e) {
localConfig = {};
}
@PseudoSky
PseudoSky / README.md
Last active November 9, 2016 21:52
TFIDF Analysis and Search Tools

Setup

You're going to need
lodash
NMAP Script List

  • Load up lodash.js into the chrome inspector (or own html/js files)
  • Load nmap-scripts.json data into a variable named nmap
  • Load contextualizer.js

Step 1

@PseudoSky
PseudoSky / getUrls.js
Last active October 19, 2016 19:10
Various Web Crawl Data
var entries=[]
function getUrls(site, pages, start){
_.range(pages||100).map((page) => $http.get('https://api.wikireverse.org/site_search/'+site+'/sites?page='+((start||0)+page)).success( (r) => {entries=entries.concat(r);}))
}
getUrls('wordpress.com',200,500)
// Make them unique
_.keyBy(entries, 'host')
@PseudoSky
PseudoSky / graph-crawl.js
Created October 8, 2016 01:41
Facebook Graph API Crawl (throttled)
function store(url,v){
window.localStorage[url]=v;
}
var query= _.throttle(function getPage(url){
$http.get(url).then( d => {
store(url,JSON.stringify(d));
if(d.data.paging && d.data.paging.next){
getPage(d.data.paging.next);
}
@PseudoSky
PseudoSky / url-matchers.js
Created September 26, 2016 00:59
RegExp and utilities for grabbing parts of a path or url.
function getPathParts(path,i) {
return path.match(/^((http[s]?|ftp):\/)?\/?([^:\/\s]+)(:([^\/]*))?((\/[\w\/-]+)*\/)([\w\-\.]+[^#?\s]+)(\?([^#]*))?(#(.*))?$/i)[i];
}
// https://gist.github.com/url-matchers.js -> url-matchers.js
function getFileName(url){
return getPathParts(url, 8);
}
// https://gist.github.com/url-matchers.js -> gist.github.com