- 1 - 35aH deep cycle battery (Werker WKDC12-35J)
- 2 - Battery Tender ring terminal to 2-pin quick disconnect (http://www.amazon.com/gp/product/B000NCOKZQ/)
- 2 - Battery Tender female cigarette adapter for quick disconnect (http://www.amazon.com/gp/product/B0041CDPQO/)
- 1 - Battery Tender Jr. 12V charger (http://www.amazon.com/gp/product/B000CITK8S/)
- 1 - 20W Instapark solar panel (http://www.amazon.com/gp/product/B004FX1192/)
This file contains hidden or 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
import requests | |
resp = requests.get('https://ip-ranges.amazonaws.com/ip-ranges.json') | |
ranges = resp.json() | |
sync = ranges['syncToken'] | |
ec2 = [r['ip_prefix'] for r in ranges['prefixes'] if r['service'] == 'EC2'] | |
with open('ec2.conf', 'wb') as f: | |
f.write('EC2 Masscan Configuration.\n'.encode('utf-8')) |
This file contains hidden or 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
CC=gcc | |
INCLUDE=/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 | |
LINK=python2.7 | |
FILE=shell | |
$(FILE): $(FILE).c | |
$(CC) $(FILE).c -I$(INCLUDE) -l$(LINK) -o $(FILE) | |
$(FILE).c: | |
cython --embed $(FILE).pyx |
This file contains hidden or 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
When I do a dig for googleusercontent.com I don't get an answer. If I specify the DNS server IP address I do get an answer. Not sure what is happening but curl and Python cannot resolve the address while the browser can. Any ideas? | |
$ dig googleusercontent.com | |
; <<>> DiG 9.8.3-P1 <<>> googleusercontent.com | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23113 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 |
This file contains hidden or 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 python | |
# | |
# The requests module is probably already on your system. If it is not | |
# the run: easy_install requests | |
# | |
import sys | |
import requests | |
def checkUrl(url): | |
try: |
This file contains hidden or 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
var fs = require('fs'); | |
var readline = require('readline'); | |
var http = require('http'); | |
var timeout = 2; // Timeout in seconds. | |
var rd = readline.createInterface({ | |
input: fs.createReadStream('tenthousand_urls.txt'), | |
output: process.stdout, | |
terminal: false | |
}); |
This file contains hidden or 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
# In your .bashrc file you need to export the BURP_SERVER and BURP_PORT environment | |
# variables. You can change the server and port by exporting new values before | |
# running the shell script. | |
export BURP_SERVER='127.0.0.1' | |
export BURP_PORT='8080' |
This file contains hidden or 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/sh | |
servers="address1 address2" | |
for server in $servers; | |
do | |
echo "Getting version information for $server." | |
resp=`curl -k https://$server:8834/feed 2>/dev/null` |
This file contains hidden or 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
URL Status_Code Body_Size | |
http://google.com 301 219 | |
http://facebook.com 301 0 | |
http://youtube.com 301 0 | |
http://yahoo.com 301 211 | |
http://wikipedia.org 301 233 | |
http://live.com 301 0 | |
http://twitter.com 301 0 | |
http://qq.com 302 161 | |
http://amazon.com 301 230 |
This file contains hidden or 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 python | |
import requests | |
import sys | |
def get_redirect(url): | |
# Access the URL and process the set-cookie header value. | |
try: | |
resp = requests.get(url, timeout=10, allow_redirects=False) | |
except: |