some bugfixes

This commit is contained in:
Roman Hergenreder 2021-07-17 17:44:21 +02:00
parent efc3b655a8
commit a9ac92e3a7
4 changed files with 11 additions and 2 deletions

@ -61,6 +61,10 @@ class HashType(enum.Enum):
CRYPT_SHA512 = 1800 CRYPT_SHA512 = 1800
CRYPT_APACHE = 1600 CRYPT_APACHE = 1600
# python
PYTHON_PBKDF2_SHA256 = 20300
PYTHON_PBKDF2_SHA512 = 20200
# Windows # Windows
LM = 3000 LM = 3000
NTLM = 1000 NTLM = 1000
@ -109,6 +113,10 @@ class Hash:
self.type.append(HashType.WORDPRESS) self.type.append(HashType.WORDPRESS)
elif crypt_type == "S": elif crypt_type == "S":
self.type.append(HashType.DRUPAL7) self.type.append(HashType.DRUPAL7)
elif crypt_type == "pbkdf2-sha256":
self.type.append(HashType.PYTHON_PBKDF2_SHA256)
elif crypt_type == "pbkdf2-sha512":
self.type.append(HashType.PYTHON_PBKDF2_SHA512)
else: else:
if ":" in raw_hash: if ":" in raw_hash:
parts = raw_hash.split(":") parts = raw_hash.split(":")

@ -201,6 +201,7 @@ if __name__ == "__main__":
print("Reverse Shell URL: http://%s/shell.sh" % ipAddress) print("Reverse Shell URL: http://%s/shell.sh" % ipAddress)
elif sys.argv[1] == "dump": elif sys.argv[1] == "dump":
fileServer.dumpRequest("/exfiltrate") fileServer.dumpRequest("/exfiltrate")
fileServer.dumpRequest("/")
print("Exfiltrate data using: http://%s/exfiltrate" % ipAddress) print("Exfiltrate data using: http://%s/exfiltrate" % ipAddress)
elif sys.argv[1] == "proxy": elif sys.argv[1] == "proxy":
url = "https://google.com" if len(sys.argv) < 3 else sys.argv[2] url = "https://google.com" if len(sys.argv) < 3 else sys.argv[2]

@ -8,7 +8,7 @@ fi
DOMAIN=$1 DOMAIN=$1
PROTOCOL="http" PROTOCOL="http"
if [[ $DOMAIN = "https://*" ]]; then if [[ $DOMAIN = https://* ]]; then
PROTOCOL="https" PROTOCOL="https"
fi fi

@ -210,7 +210,7 @@ if __name__ == "__main__":
if os.path.isfile(uri): if os.path.isfile(uri):
data = open(uri,"r").read() data = open(uri,"r").read()
else: else:
res = requests.get(uri) res = requests.get(uri, verify=False)
if res.status_code != 200: if res.status_code != 200:
print("%s returned: %d %s" % (uri, res.status_code, res.reason)) print("%s returned: %d %s" % (uri, res.status_code, res.reason))
exit() exit()