datemangler


Namedatemangler JSON
Version 0.3.0 PyPI version JSON
download
home_page
SummaryThis script modifies the last four bits of an NTFS timestamp to hide information.
upload_time2024-03-06 00:11:41
maintainer
docs_urlNone
authorStephan Klein
requires_python>=3.11
licenseCopyright (c) 2015-2024 Stephan Klein Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords ntfs encryption stenography hidden aes
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # datemangler

This module modifies the last four bits of an NTFS timestamp to hide information. 
Data entered is encrypted with AES.

Note: The cryptography settings used in this demo aren't production-ready. They were
mostly chosen to still fit the data into the timestamp bits. Do not rely on this for
anything.

## Installation

Get the latest version with `pip install datemangler`.

### Notes about dependencies

This program requires the `xattr` package to function which will only install if the development files for
`libffi` are installed. Use `sudo apt-get install libffi-dev` on Debian/Ubuntu before installing `xattr` or
this package.

The datemangler module has been tested with Python 3.11.

## Usage

The module comes with a script entrypoint which you can see in use in [test.sh](test.sh).
A Dockerfile has been included in this repository to enable testing on other platforms as well.
Note that the container needs to be run with `--privileged` since it needs to `mount` a dummy NTFS volume.

By default, it will run the tests of this project:
```shell
$ docker run --privileged --rm -it foo 
Initializing device with zeroes: 100% - Done.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.
..
----------------------------------------------------------------------
Ran 2 tests in 0.798s

OK
```

If you run it with `--entrypoint ./test.sh`, you will get an interactive shell to play around with:

```shell
$ docker run --privileged --entrypoint ./test.sh --rm -it foo
Initializing device with zeroes: 100% - Done.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.

root@dedb7779c2e8:/app/test# datemangler
usage: datemangler [-h] [-R] [-i INPUT] [-l PAYLOAD_LENGTH] {read,write} path

root@dedb7779c2e8:/app/test# datemangler -i "Hello my friend!" write .
Payload length was 16

root@dedb7779c2e8:/app/test# datemangler -l 16 read .
Hello my friend!

root@6b72ecc409c7:/app/test/test# datemangler -i foo write 0
root@6b72ecc409c7:/app/test/test# datemangler read 0
foo
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "datemangler",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": "",
    "keywords": "NTFS,encryption,stenography,hidden,AES",
    "author": "Stephan Klein",
    "author_email": "",
    "download_url": "",
    "platform": null,
    "description": "# datemangler\n\nThis module modifies the last four bits of an NTFS timestamp to hide information. \nData entered is encrypted with AES.\n\nNote: The cryptography settings used in this demo aren't production-ready. They were\nmostly chosen to still fit the data into the timestamp bits. Do not rely on this for\nanything.\n\n## Installation\n\nGet the latest version with `pip install datemangler`.\n\n### Notes about dependencies\n\nThis program requires the `xattr` package to function which will only install if the development files for\n`libffi` are installed. Use `sudo apt-get install libffi-dev` on Debian/Ubuntu before installing `xattr` or\nthis package.\n\nThe datemangler module has been tested with Python 3.11.\n\n## Usage\n\nThe module comes with a script entrypoint which you can see in use in [test.sh](test.sh).\nA Dockerfile has been included in this repository to enable testing on other platforms as well.\nNote that the container needs to be run with `--privileged` since it needs to `mount` a dummy NTFS volume.\n\nBy default, it will run the tests of this project:\n```shell\n$ docker run --privileged --rm -it foo \nInitializing device with zeroes: 100% - Done.\nCreating NTFS volume structures.\nmkntfs completed successfully. Have a nice day.\n..\n----------------------------------------------------------------------\nRan 2 tests in 0.798s\n\nOK\n```\n\nIf you run it with `--entrypoint ./test.sh`, you will get an interactive shell to play around with:\n\n```shell\n$ docker run --privileged --entrypoint ./test.sh --rm -it foo\nInitializing device with zeroes: 100% - Done.\nCreating NTFS volume structures.\nmkntfs completed successfully. Have a nice day.\n\nroot@dedb7779c2e8:/app/test# datemangler\nusage: datemangler [-h] [-R] [-i INPUT] [-l PAYLOAD_LENGTH] {read,write} path\n\nroot@dedb7779c2e8:/app/test# datemangler -i \"Hello my friend!\" write .\nPayload length was 16\n\nroot@dedb7779c2e8:/app/test# datemangler -l 16 read .\nHello my friend!\n\nroot@6b72ecc409c7:/app/test/test# datemangler -i foo write 0\nroot@6b72ecc409c7:/app/test/test# datemangler read 0\nfoo\n```\n",
    "bugtrack_url": null,
    "license": "Copyright (c) 2015-2024 Stephan Klein  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "This script modifies the last four bits of an NTFS timestamp to hide information.",
    "version": "0.3.0",
    "project_urls": {
        "Issues": "https://github.com/privatwolke/datemangler/issues",
        "Repository": "https://github.com/privatwolke/datemangler"
    },
    "split_keywords": [
        "ntfs",
        "encryption",
        "stenography",
        "hidden",
        "aes"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bcea2496ca89fe21a2e7656d932241fc69fac5529d5e72994788fba6b105e499",
                "md5": "5d2219e048284c00d2c24a1a38924998",
                "sha256": "4ebbe20d333299da6ad9670c755f856f6544eea601037fae2dc8a9dbb92fc617"
            },
            "downloads": -1,
            "filename": "datemangler-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5d2219e048284c00d2c24a1a38924998",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 6138,
            "upload_time": "2024-03-06T00:11:41",
            "upload_time_iso_8601": "2024-03-06T00:11:41.961322Z",
            "url": "https://files.pythonhosted.org/packages/bc/ea/2496ca89fe21a2e7656d932241fc69fac5529d5e72994788fba6b105e499/datemangler-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-06 00:11:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "privatwolke",
    "github_project": "datemangler",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "datemangler"
}
        
Elapsed time: 0.19836s