Now the differences between the data is clear when looking at the Python bytes values. This was not easy to recognize when using the "cat" defaults : Print(index, password, passwords_bytes)įigure 2: Comparing bytes data with Python shows additional formatting data With open("_unique_passwords_raw.txt", "rb") as file:įor index, password in enumerate(passwords): # read data from text file as bytes into passwords_bytes list With open("_unique_passwords_raw.txt", "r", encoding="utf-8") as file: # read data from text file into passwords list Since the project being worked on involved comparing data using Python, it seemed like a good idea to use Python to compare these values. In the example above, it would appear that "123456" is being displayed three times from the exported text, even when attempting to remove duplicates from the resulting file. password | sort | uniq > _unique_passwords_raw.txtįigure 1: Output of exported data showing what appear to be duplicate values # deduplicate the data and store in a text fileĬat /logs/cowrie.json.* | jq 'select(.password)' | jq -r. # return password data in raw format (without quotes) # select data where password key is present # read cowrie JSON files in /logs/ directory There appeared to be duplicate passwords, even when I attempted to export unique values from the command line. One example came to me while reviewing passwords submitted to one of my DShield honeypots. There are occassions where data needs to cleaned prior to use. Webes akadálymentesítés alapjai - online oktatás.Felhő és Mesterséges Intelligencia workshop - 2022.2018 A phishing éve - Huncert Workshop 2018.Azonos csatornán - Huncert Workshop 2019.Azonos csatornán - Huncert Workshop 2019 Ősz.Doménbiztonság és adatvédelem online workshop - 2020.Don't Panic: Adatvédelmi online workshop 2021.IT Energiatakarékosság szeminárium sorozat.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |