Skip to content

Instantly share code, notes, and snippets.

@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 / nmap-scripts.json
Created November 9, 2016 20:44
Security Tools Help & Data
[
{
"link": "https://nmap.org/nsedoc/scripts/acarsd-info.html",
"name": "acarsd-info",
"info": "Retrieves information from a listening acarsd daemon. Acarsd decodes ACARS (Aircraft Communication Addressing and Reporting System) data in real time. The information retrieved by this script includes the daemon version, API version, administrator e-mail address and listening frequency."
},
{
"link": "https://nmap.org/nsedoc/scripts/address-info.html",
"name": "address-info",
"info": "Shows extra information about IPv6 addresses, such as embedded MAC or IPv4 addresses when available."
@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
.m-2 { margin: -2em !important; }
.ml-2 { margin-left: -2em !important; }
.mr-2 { margin-right: -2em !important; }
.mt-2 { margin-top: -2em !important; }
.mb-2 { margin-bottom: -2em !important; }
[
{
"args": null,
"command": "lower_case"
}
]