Skip to content

Instantly share code, notes, and snippets.

@ntrrgc
ntrrgc / mp4parser.py
Last active December 1, 2022 14:07 — forked from mildsunrise/mp4parser.py
🕵️‍♀️ MP4 parser / dissector for the command line
#!/usr/bin/env python3
'''
Code by Alba Mendez, manually copied and pasted, had 8 revisions when copied.
https://gist.github.com/mildsunrise/ffd74730504e4dc44f47fc7528e7bf59
Portable* ISO Base Media File Format dissector / parser.
Usage: ./mp4parser.py <file name>
(*) Needs Python 3.8+
@ntrrgc
ntrrgc / urlnorm.py
Last active December 14, 2015 07:19 — forked from mnot/urlnorm.py
Ported to python3
#!/usr/bin/env python
"""
urlnorm.py - URL normalisation routines
Ported to python3.
urlnorm normalises a URL by;
* lowercasing the scheme and hostname
* taking out default port if present (e.g., http://www.foo.com:80/)