This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/zsh | |
if [[ -z $1 ]]; then | |
echo 'syntax: shootphantom URL [name] (.png will be added for you)' | |
echo 'if NAME is empty a name will be attempted to be guessed' | |
return 1 | |
fi | |
DATE=`date +%s` | |
URL=$1 | |
echo 'url is:' $URL | |
if [[ ! -z $2 ]];then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% cat test.txt | ./geo.py | |
171.111.153.168 is China | |
4.2.2.2 is United States | |
91.188.124.232 is Poland | |
8.6.6.4 is United States | |
66.163.128.206 is United States | |
62.210.38.226 is France | |
94.173.21.140 is United Kingdom | |
117.21.191.208 is China |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<opml version="1.1"> | |
<!--Generated by NewsBlur - www.newsblur.com--> | |
<head> | |
<title>NewsBlur Feeds</title> | |
<dateCreated>2014-09-03 16:23:07.139591</dateCreated> | |
<dateModified>2014-09-03 16:23:07.139591</dateModified> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.7 | |
import requests | |
import sys | |
def get_loc(url): | |
try: | |
h=requests.head(url).headers['location'] | |
return h | |
except KeyError: | |
return 'END' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .__ .__ .__ .__ __ | |
# _____| |__ ____ | | | | _____| |__ ____ ____ | | __ | |
# / ___/ | \_/ __ \| | | | / ___/ | \ / _ \_/ ___\| |/ / | |
# \___ \| Y \ ___/| |_| |__\___ \| Y ( <_> ) \___| < | |
# /____ >___| /\___ >____/____/____ >___| /\____/ \___ >__|_ \ | |
# \/ \/ \/ \/ \/ \/ \/ | |
# | |
# https://detectify.com/ | |
# @detectify | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir ./.hashes/ | |
arr=($(find `pwd` -type f)) | |
for celery in "${arr[@]}" | |
do | |
name=$(echo $celery | sed 's,.*/,,') | |
echo $name | |
echo $celery | |
md5sum $celery >> ./.hashes/$name.hash.txt | |
sha512sum $celery >> ./.hashes/$name.hash.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun_hash () { | |
#pass it the fullpath thing (celery) | |
for hashsum in "${hashCMDs[@]}" | |
do | |
echo -n "$hashsum " | |
$hashsum $1 | |
done | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/zsh | |
if [[ -z $1 ]]; then | |
echo 'syntax: shootphantom URL [name] (.png will be added for you)' | |
echo 'if NAME is empty a name will be attempted to be guessed' | |
return 1 | |
fi | |
DATE=`date +%s` | |
URL=$1 | |
echo 'url is:' $URL | |
if [[ ! -z $2 ]];then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
#the websocket IP is found in the javascript of the map(if it ever changes) | |
import asyncio , websockets , json, time , asyncio ,os | |
@asyncio.coroutine | |
def hello(): | |
websocket = yield from websockets.connect('ws://64.19.78.244:443/') | |
while True: | |
greeting = yield from websocket.recv() | |
try: | |
j_v=json.loads(greeting) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
#step one: save this awesome song as "sigtrapdc22.mp3" | |
# https://soundcloud.com/sigtrap/defcon-22-2014-demo | |
#then chmod +x this file | |
#./checkit.zsh ./.filename.ext.thatthingRsynaddsasittranfters | |
#something like ./.pron.mkv.3M3mTu | |
while : | |
do | |
if [[ ! -a $1 ]]; then | |
mplayer ~/music/sigtrapdc22.mp3 |
OlderNewer