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 | |
# parse endpoint (only works for POST) | |
read request | |
url="${request#POST }" | |
url="${url% HTTP/*}" | |
# change this!!! | |
secret="top-secret" |
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/python | |
import os | |
import sys | |
import csv | |
import time | |
import shutil | |
from multiprocessing.dummy import Pool as ThreadPool | |
from collections import Iterable | |
try: |
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
param( | |
[string]$HostPrefix = "192.168.1.", | |
[int]$Port = 22, | |
[int]$StartIndex = 2, | |
[int]$EndIndex = 30, | |
[int]$ConnectTimeout = 150 | |
) | |
function testport ($hostname, $port, $timeout) { | |
$client = New-Object System.Net.Sockets.TcpClient |
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/python3 | |
import os | |
import re | |
import sys | |
try: | |
PATH = sys.argv[1] | |
except IndexError: | |
print("Usage: %s /path/to/normalize" % sys.argv[0]) | |
exit(0) |