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
| # *-* coding: UTF-8 *-* | |
| import hashlib | |
| import requests | |
| from urllib.parse import urlencode, unquote_plus | |
| def ksort(d): | |
| return [(k, d[k]) for k in sorted(d.keys())] |
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 | |
| # Use: ./subnet.py <ip/cidr> | |
| # Alt: ./subnet.py <ip> <mask> | |
| import sys | |
| if __name__=="__main__": | |
| addr = [0, 0, 0, 0] | |
| mask = [0, 0, 0, 0] | |
| cidr = 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
| #!/bin/bash | |
| set -euo pipefail | |
| RELEASE="teleport-v4.2.3-linux-amd64-bin.tar.gz" | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "--> Please run this script as root or sudo." | |
| exit 1 | |
| fi |
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
| #Image Captcha: | |
| from captcha.image import ImageCaptcha | |
| image = ImageCaptcha | |
| data = image.generate(‘9876543’) | |
| image.write (‘9876543’,’sam.png’) |
OlderNewer