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 python | |
import sys | |
import struct | |
import os | |
#inspired by https://aluigi.altervista.org/bms/advanced_installer.bms | |
#with some additionaly reverse engeneering, quite heursitic (footer search, xor guessing etc) | |
#licence: public domain |
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 re | |
class BorderedTextList: | |
def __init__(self,lst): | |
self.lst = lst | |
def text(self): | |
return "".join([l.text() for l in self.lst]) | |
def split(self,re): | |
return BorderedTextList([l.split(re) for l in self.lst]) |
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
from requests.auth import AuthBase | |
import re | |
import base64 | |
import gssapi | |
from requests.compat import urlparse | |
class HTTPAuthSPNEGOGSSAPI(AuthBase): | |
"""Attaches HTTP GSSAPI/Kerberos Authentication to the given Request | |
object.""" | |
negoRegex = re.compile('(?:.*,)*\s*Negotiate\s*([^,]*),?', re.I) |