Skip to content

Instantly share code, notes, and snippets.

@tkjaer
tkjaer / shodan
Last active June 20, 2022 08:13
Easily lookup IPs in the Shodan InternetDB
#!/usr/bin/env bash
# Lookup IP (or IPs of hostname) in internetdb.shodan.io.
# Check if we have jq to print format nicely:
if which jq > /dev/null; then
_jq=jq
elif which gojq > /dev/null; then
_jq=gojq
else

Keybase proof

I hereby claim:

  • I am tkjaer on github.
  • I am tkjaer (https://keybase.io/tkjaer) on keybase.
  • I have a public key ASCZCu3uUVH1_CPd-869rR6PMmWviLmeHizER5i4JGVhLAo

To claim this, I am signing this object:

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Dynamic Ansible Inventory based on LibreNMS API access.
"""
#######################################################################
# #
# This script has been superseded by: #
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Calculate the RADIUS Message-Authenticator from a raw RADIUS packet.
The packet can be exported from Wireshark with "Export Packet Bytes".
"""
from sys import argv
import re
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# get "gamekey" (bundle id) from:
# - https://www.humblebundle.com/api/v1/user/order
#
# then get the json file containing the bundle details from:
# - https://www.humblebundle.com/api/v1/order/$gamekey
#
# Save that file as 'books.json' and run: