ramdisk


Nameramdisk JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/ramdisk
SummaryA collection of functions that interact with the imdisk.exe utility
upload_time2023-06-17 23:24:19
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords imdisk files
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# A collection of functions that interact with the imdisk.exe utility

## pip install ramdisk


The provided module provides a collection of functions that interact with the imdisk.exe utility, which is a third-party tool for creating and managing virtual disk drives in Windows.

The advantages of using this module and the imdisk.exe utility include:

### Creating virtual hard drives: 

The module allows you to create virtual hard drives of specified sizes and file systems, which can be useful for various purposes such as testing, virtualization, or creating temporary storage.

### Adding capacity to virtual hard drives: 

The module provides a function to add additional capacity (in megabytes) to existing virtual hard drives. This allows you to dynamically increase the storage space of a virtual drive without recreating it.

### Removing virtual hard drives: 

The module offers the ability to remove virtual hard drives. This allows you to free up system resources by removing unnecessary virtual drives when they are no longer needed.

### Listing virtual hard drives: 

The module provides a function to list all currently existing virtual hard drives. This can be useful for obtaining information about the virtual drives present in the system.

### Invisible execution: 

The module utilizes the subprocess module to execute commands invisibly, without displaying any console windows. This can be beneficial when performing automated or background tasks that don't require user interaction.



### Tested against Windows 10 / Python 3.10 / Anaconda 3

The scan_processes function can be useful for system administrators, security analysts, or anyone who needs to perform a comprehensive scan and analysis of running processes on a Windows system. Here are some advantages of using this code:

Process scanning: The function allows users to scan processes based on partial process names or regular expressions, providing flexibility in defining the target processes for analysis.

Registry filtering: Users can specify custom regular expression filters for registry keys, enabling them to include or exclude specific keys based on their patterns. This feature allows for fine-grained control over the registry data to be collected.

File filtering: The function supports filtering files based on forbidden folders and a string pattern. Users can exclude specific folders or files based on their paths, allowing them to focus on relevant files and ignore unnecessary ones.

File copying: The function facilitates copying files from the scanned processes to a specified destination folder. This can be valuable for further analysis or investigation of the files associated with the processes.

Data aggregation: The function collects registry data and file information from multiple processes and aggregates them into pandas DataFrames. This consolidated data can be easily analyzed, processed, or exported for further investigation.

Exception handling: The code includes exception handling to ensure that the scanning process continues even if exceptions are encountered. It provides the ability to gracefully handle errors and continue scanning other processes.


## Example - getting faster procdumps 

```python
from PyPDump import ProcDump # writes only to HDDs
pid=19288
dumpfile = r"Z:\MiniDumpWithFullMemoryx.dmp"

p1=create_hd(size_in_megabyte=1024, drive_letter='Z', fs='ntfs')
p2=add_mb_to_hd('Z',8048)
erg = (
            ProcDump(executeable=r"C:\ProgramData\chocolatey\bin\procdump.exe")
            .o()
            .ma()
            .add_own_parameter_or_option(f"{pid}")
            .add_target_file_or_folder([dumpfile])
            .run()
        )
alldi=list_hds()
print(alldi)
remove_hd(drive_letter='Z',force=True)
remove_all_hds(force=True)

```	

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/ramdisk",
    "name": "ramdisk",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "imdisk,files",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/0a/36/3c95f593f381a2d17873eaf65222ab01d5f020d5ca4ba3b267447213ecec/ramdisk-0.10.tar.gz",
    "platform": null,
    "description": "\r\n# A collection of functions that interact with the imdisk.exe utility\r\n\r\n## pip install ramdisk\r\n\r\n\r\nThe provided module provides a collection of functions that interact with the imdisk.exe utility, which is a third-party tool for creating and managing virtual disk drives in Windows.\r\n\r\nThe advantages of using this module and the imdisk.exe utility include:\r\n\r\n### Creating virtual hard drives: \r\n\r\nThe module allows you to create virtual hard drives of specified sizes and file systems, which can be useful for various purposes such as testing, virtualization, or creating temporary storage.\r\n\r\n### Adding capacity to virtual hard drives: \r\n\r\nThe module provides a function to add additional capacity (in megabytes) to existing virtual hard drives. This allows you to dynamically increase the storage space of a virtual drive without recreating it.\r\n\r\n### Removing virtual hard drives: \r\n\r\nThe module offers the ability to remove virtual hard drives. This allows you to free up system resources by removing unnecessary virtual drives when they are no longer needed.\r\n\r\n### Listing virtual hard drives: \r\n\r\nThe module provides a function to list all currently existing virtual hard drives. This can be useful for obtaining information about the virtual drives present in the system.\r\n\r\n### Invisible execution: \r\n\r\nThe module utilizes the subprocess module to execute commands invisibly, without displaying any console windows. This can be beneficial when performing automated or background tasks that don't require user interaction.\r\n\r\n\r\n\r\n### Tested against Windows 10 / Python 3.10 / Anaconda 3\r\n\r\nThe scan_processes function can be useful for system administrators, security analysts, or anyone who needs to perform a comprehensive scan and analysis of running processes on a Windows system. Here are some advantages of using this code:\r\n\r\nProcess scanning: The function allows users to scan processes based on partial process names or regular expressions, providing flexibility in defining the target processes for analysis.\r\n\r\nRegistry filtering: Users can specify custom regular expression filters for registry keys, enabling them to include or exclude specific keys based on their patterns. This feature allows for fine-grained control over the registry data to be collected.\r\n\r\nFile filtering: The function supports filtering files based on forbidden folders and a string pattern. Users can exclude specific folders or files based on their paths, allowing them to focus on relevant files and ignore unnecessary ones.\r\n\r\nFile copying: The function facilitates copying files from the scanned processes to a specified destination folder. This can be valuable for further analysis or investigation of the files associated with the processes.\r\n\r\nData aggregation: The function collects registry data and file information from multiple processes and aggregates them into pandas DataFrames. This consolidated data can be easily analyzed, processed, or exported for further investigation.\r\n\r\nException handling: The code includes exception handling to ensure that the scanning process continues even if exceptions are encountered. It provides the ability to gracefully handle errors and continue scanning other processes.\r\n\r\n\r\n## Example - getting faster procdumps \r\n\r\n```python\r\nfrom PyPDump import ProcDump # writes only to HDDs\r\npid=19288\r\ndumpfile = r\"Z:\\MiniDumpWithFullMemoryx.dmp\"\r\n\r\np1=create_hd(size_in_megabyte=1024, drive_letter='Z', fs='ntfs')\r\np2=add_mb_to_hd('Z',8048)\r\nerg = (\r\n            ProcDump(executeable=r\"C:\\ProgramData\\chocolatey\\bin\\procdump.exe\")\r\n            .o()\r\n            .ma()\r\n            .add_own_parameter_or_option(f\"{pid}\")\r\n            .add_target_file_or_folder([dumpfile])\r\n            .run()\r\n        )\r\nalldi=list_hds()\r\nprint(alldi)\r\nremove_hd(drive_letter='Z',force=True)\r\nremove_all_hds(force=True)\r\n\r\n```\t\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A collection of functions that interact with the imdisk.exe utility",
    "version": "0.10",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/ramdisk"
    },
    "split_keywords": [
        "imdisk",
        "files"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "338b064aaad90c5198cc95a936e064b853fcb759bdec7c043811f506e86d1793",
                "md5": "d2cf738bef83ef3d585b65547362cb5e",
                "sha256": "b02a8dde388395025a08c6352e01f417406edf23e3b0c6841596ff82d2a898b7"
            },
            "downloads": -1,
            "filename": "ramdisk-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d2cf738bef83ef3d585b65547362cb5e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 512790,
            "upload_time": "2023-06-17T23:24:15",
            "upload_time_iso_8601": "2023-06-17T23:24:15.967630Z",
            "url": "https://files.pythonhosted.org/packages/33/8b/064aaad90c5198cc95a936e064b853fcb759bdec7c043811f506e86d1793/ramdisk-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0a363c95f593f381a2d17873eaf65222ab01d5f020d5ca4ba3b267447213ecec",
                "md5": "6f207aa1247f8a6ac0bcf6b5dfb109cf",
                "sha256": "5c4360a55c4e0eb1fdf1f7898e592d827fb9b051b93086c86771ea73ea7c06c7"
            },
            "downloads": -1,
            "filename": "ramdisk-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "6f207aa1247f8a6ac0bcf6b5dfb109cf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 514012,
            "upload_time": "2023-06-17T23:24:19",
            "upload_time_iso_8601": "2023-06-17T23:24:19.704979Z",
            "url": "https://files.pythonhosted.org/packages/0a/36/3c95f593f381a2d17873eaf65222ab01d5f020d5ca4ba3b267447213ecec/ramdisk-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-17 23:24:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "ramdisk",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "ramdisk"
}
        
Elapsed time: 0.18646s