Exercise: https://gist.github.com/jorin-vogel/2e43ffa981a97bc17259
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 socket | |
def internet(host="8.8.8.8", port=53, timeout=3): | |
""" | |
Host: 8.8.8.8 (google-public-dns-a.google.com) | |
OpenPort: 53/tcp | |
Service: domain (DNS/TCP) | |
""" | |
try: | |
socket.setdefaulttimeout(timeout) |
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 | |
def sec_to_human(secs): | |
units = dict({ | |
7*24*3600: "week", | |
24*3600: "day", | |
3600: "hour", | |
60: "minute", | |
1: "second" | |
}) |
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
from pprint import pprint | |
import datetime | |
import struct | |
import sys | |
def capinfos(filename): | |
# generates wireshark's capinfos like stats | |
# limited features | |
# needs additional testing | |
file_handle = open(filename, 'rb') |
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 python3 | |
from pprint import pprint | |
import requests | |
import json | |
def circllu_cveinfo(cve): | |
customheaders = { | |
"User-Agent": "Some script trying to be nice :)" | |
} |
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
from pprint import pprint | |
from googleapiclient.discovery import build | |
service = build("customsearch", "v1", developerKey="KEY_HERE") | |
def search(query): | |
res = service.cse().list(q=query, cx="CX_ID_HERE").execute() | |
if 1 <= res["queries"]["request"][0]["totalResults"]: | |
result = res["items"][0] | |
response = result["link"] + "\r\n" + result["snippet"] | |
else: |
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
Verifying that "ankurtyagi.id" is my Blockstack ID. https://onename.com/ankurtyagi |
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 out = []; | |
var pm = PasswordManager.getInstance(); | |
var model = pm.savedPasswordsList_.dataModel; | |
console.log(model); | |
var pl = pm.savedPasswordsList_; | |
for (var i = 0; i < model.length; i++) { | |
PasswordManager.requestShowPassword(i); | |
} | |
alert('After you press Ok results should appear in ~5 seconds.\n' + | |
"If password fields are empty, try increasing the timeout in the last line," + |
I hereby claim:
- I am 7h3rAm on github.
- I am 7h3ram (https://keybase.io/7h3ram) on keybase.
- I have a public key whose fingerprint is 761C A4F7 42BD 3DBA AC8B 5793 3DC1 CDFD C1B6 C8B2
To claim this, I am signing this object: