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
| # Surcouche à csv.DictReader permettant de conserver le fichier en mémoire pour manipulation tout au long de la campagne. | |
| # Il est possible d'itérer plusieurs fois sur le même objet sans devoir le réinitialiser | |
| class CachedDictReader(Sequence): | |
| def __init__(self, file_handle, **kwargs): | |
| # **kwargs permet de passer des options spécifiques au module CSV depuis l'initialisation de cette classe (delimiter, encoding...) | |
| reader = csv.DictReader(file_handle, **kwargs) | |
| self.fieldnames = list(reader.fieldnames) if reader.fieldnames else [] | |
| self._data = list(reader) | |
| def __len__(self): |
This file has been truncated, but you can view the full file.
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
| function Invoke-neoness | |
| { | |
| <# | |
| .SYNOPSIS | |
| This script leverages neoness 2.0 and Invoke-ReflectivePEInjection to reflectively load neoness completely in memory. This allows you to do things such as | |
| dump credentials without ever writing the neoness binary to disk. | |
| The script has a ComputerName parameter which allows it to be executed against multiple computers. | |
| This script should be able to dump credentials from any version of Windows through Windows 8.1 that has PowerShell v2 or higher installed. |