π οΈ Your mission: Build a simple Python script that extracts IOCs from a raw log file.
- IP addresses (IPv4)
- Domain names
- URLs (http/https)
- File hashes (MD5, SHA1, SHA256)
- Check the file:
logs/sample.log - Use the a Python script:
extractor.py - Use regex to extract IOCs from the file
- Print the results in a clean format (optional: sort or deduplicate them)
Need help? Check DONOTREADME.md (but only if you're stuck π)
- Save the IOCs to a file
- Add CLI args with
argparse
- Regex101 - Test your regex patterns
- Python re module - Python regex documentation
- Python argparse module - For command-line argument parsing
Thanks for the contributors:
- @Sn0wAliceπ