I wrote file-manip as a tool too cover my tracks when performing pentests. OS independent.
Functions:
find_files: Recursive file search, looks for a flag in a filename and returns a list with all files that have that flag in them
find_files(base_path, flag)
insert_flag: Inserts a flag into a file, doesn't care about file format, if line_no is not provided then it appends the flag to the end of the file
insert_flag(flag, fname, line_no = None)
replace_flag: Similar to insert_flag, however, replace flag replaces a flag with another flag.
replace_flag(old_flag, new_flag, fname)
remove_flag: Removes a flag entirely from a file. *old_file and new_file can be the same file
remove_flag(flag, old_file, new_file)
normalize_str: takes a string and converts to lowercase and normalized to NFKD for tests and comparisons
normalize_str(string)
compare_normalized: compares strings that are normalized *very very useful when comparing strangly formatted files
compare_normalized(string_0, string_1)
To Do:
- add metadata manipulation
Metadata
Release files for filemanip 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| filemanip-0.0.0.tar.gz | 2.3 kB | Without provenance | Details for filemanip-0.0.0.tar.gz |
Release files / filemanip-0.0.0.tar.gz
| Download URL | filemanip-0.0.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fc52b1859f21099058c552bb777b2678250b3d3dd137e5b12cb3e36ac679d16
|
|
BLAKE2b-256 checksum How to use checksums |
f98721e48533755e2e9e33b805a639aed88f411905bfa3bc0cc4b6bc5adc48da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Security for filemanip 0.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.