byt3bl33d3r/MITMf

View on GitHub
core/responder/packets.py

Summary

Maintainability
D
3 days
Test Coverage

File packets.py has 1115 lines of code (exceeds 250 allowed). Consider refactoring.
Open

#!/usr/bin/env python
# This file is part of Responder
# Original work by Laurent Gaffie - Trustwave Holdings
#
# This program is free software: you can redistribute it and/or modify
Severity: Major
Found in core/responder/packets.py - About 2 days to fix

    Function calculate has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def calculate(self):
            ###### Convert strings to Unicode
            self.fields["NTLMSSPNtWorkstationName"] = self.fields["NTLMSSPNtWorkstationName"].encode('utf-16le')
            self.fields["NTLMSSPNTLMChallengeAVPairsUnicodeStr"] = self.fields["NTLMSSPNTLMChallengeAVPairsUnicodeStr"].encode('utf-16le')
            self.fields["NTLMSSPNTLMChallengeAVPairs1UnicodeStr"] = self.fields["NTLMSSPNTLMChallengeAVPairs1UnicodeStr"].encode('utf-16le')
    Severity: Minor
    Found in core/responder/packets.py - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status