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 python | |
# Need following pip packages | |
# - easysnmp | |
# - tabulate | |
# Checkout blog article to tool | |
# https://lanbugs.de/netzwerktechnik/hersteller/cisco/cli-tool-export-ap-inventory-from-an-cisco-wireless-lan-controller-wlc/ | |
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 python | |
# Need following pip packages | |
# - easysnmp | |
# - tabulate | |
# Checkout blog article to tool | |
# https://lanbugs.de/netzwerktechnik/commandline-tool-to-export-current-registered-users-at-aps-from-an-cisco-wireless-lan-controller-wlc/ | |
from easysnmp import Session |
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 python | |
# | |
# get_subnets_of_spf_record_mynetwoks.py | |
# Resolve all known ip addresses from spf record and generate cidr map for postfix | |
# | |
# Version 1.0 | |
# Written by Maximilian Thoma (http://www.lanbugs.de) | |
# | |
# Checkout blog article: |
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 python | |
# -*- encoding: utf-8; py-indent-offset: 4 -*- | |
# | |
# check_dnspl.py - Check IP against Blacklist | |
# Use it on your own risk! | |
# | |
# Written 2017 - Maximilian Thoma | |
# | |
# This program is free software; you can redistribute it and/or modify it under the terms of the GNU |
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 python | |
# | |
# Tool to add static ip to hosts where only DNS name exists | |
# Written by Maximilian Thoma 2017 | |
# http://lanbugs.de | |
# | |
# | |
# This program is free software; you can redistribute it and/or modify it under |
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/python | |
# getadsmtp.py | |
# Written by Maximilian Thoma 2016 | |
# Version 1.0 | |
# The script is an translation from the orginal perl script getadsmtp.pl | |
# This script will pull all users' SMTP addresses from your Active Directory | |
# (including primary and secondary email addresses) and list them in the | |
# format "user@example.com OK" which Postfix uses with relay_recipient_maps. |
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 python | |
# required pip packages: lxml, beautifulsoup4, tabulate | |
from bs4 import BeautifulSoup as BS | |
import urllib2 | |
import ssl | |
import urllib | |
from tabulate import tabulate |
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 python | |
# -*- coding: utf-8 -*- | |
import smtplib | |
from email.mime.text import MIMEText | |
def postmaster(mfrom, mto, msubject, message, smtphost): | |
msg = MIMEText(message.encode("utf-8")) |
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 python | |
import paramiko | |
import sys | |
def send_string_and_wait_for_string(command, wait_string, should_print): | |
shell.send(command) | |
receive_buffer = "" |
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 python | |
# -*- encoding: utf-8; py-indent-offset: 4 -*- | |
import os | |
from multiprocessing import Pool | |
def worker(job): | |
x, y = job | |
result = x ** y |
OlderNewer