I hereby claim:
- I am chadell on github.
- I am chadell (https://keybase.io/chadell) on keybase.
- I have a public key whose fingerprint is 90FD E3C1 352A A180 D1CE 41DC B75D 513E E4D8 19E3
To claim this, I am signing this object:
import ldap | |
import sys | |
import ldap.modlist as modlist | |
LDAP_SERVER = "ldap IP/FQDN" | |
AD_BIND_USER = "user@domain" | |
AD_BIND_PWD = "some secret password" | |
LDAP_BASE = "DC=xxx,DC=yyy" | |
BIND_DN = "CN=user_grpup,CN=Users,DC=domain,DC=domain_tld" |
"""Helper script to send emails for demo purposes.""" | |
import smtplib | |
import os | |
from email.utils import formatdate | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
from email.mime.base import MIMEBase | |
from email.encoders import encode_base64 | |
from dotenv import load_dotenv |
#!/usr/bin/env python | |
import socket | |
target_host = "127.0.0.1" | |
target_port = 123 | |
# create a socket object | |
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
#!/usr/bin/env python | |
import socket | |
import threading | |
bind_ip = "0.0.0.0" | |
bind_port = 9999 | |
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
#!/usr/bin/env python | |
import socket | |
target_host = "127.0.0.1" | |
target_port = 9999 | |
# create a socket object | |
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
import re | |
def valid_ipv4(address): | |
IPRegex = re.compile(r''' | |
^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]) | |
\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]) | |
\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]) | |
\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])$\Z | |
''',re.VERBOSE) | |
return bool(IPRegex.match(address)) |
I hereby claim:
To claim this, I am signing this object: