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/bash | |
for interface in $(iw dev | grep wlan | grep -v mon | awk '{ print $2 }') | |
do | |
mon_interface="${interface}mon" | |
echo "Interface: $interface" | |
echo "Monitor interface: $mon_interface" | |
ip link set ${interface} down | |
iw dev ${interface} set type monitor | |
ip link set ${interface} name "${mon_interface}" |
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/bash | |
## This script will download all URLs in the file provided as first arg | |
## ./download_minecraft_all.sh versions.txt | |
## | |
## Each URL on a newline, points to the .jar file on launcher.mojang.com | |
## ie. https://launcher.mojang.com/mc/game/1.12.2/client/.../client.jar | |
## | |
## Grab the URLs from https://mcversions.net/ and do some find/replace, | |
## or dump the source into a URL extractor |
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/bash | |
## This script creates a new Nginx proxy configuration based on two inputs: | |
## 1. Server hostname for incoming requests | |
## 2. Proxy destination IP to redirect to | |
HOSTNAME=$1 | |
PROXYDEST=$2 | |
## Colours | |
RED='\e[0;31m' |
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
{ | |
"__inputs": [ | |
{ | |
"name": "DS_INFLUX-HONEYPOT", | |
"label": "Influx-Honeypot", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "influxdb", | |
"pluginName": "InfluxDB" | |
} |
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 | |
import geohash | |
import json | |
from datetime import datetime, timezone | |
from influxdb import InfluxDBClient | |
# noinspection PyUnresolvedReferences | |
from requests.packages.urllib3.exceptions import InsecureRequestWarning | |
# noinspection PyUnresolvedReferences |