Pymem-win 1.14.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ Pymem is written and maintained by Fabien Reboia:
2
+
3
+ Development Lead
4
+ ````````````````
5
+
6
+ - Fabien Reboia <srounet@gmail.com>
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 pymem
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,84 @@
1
+ Metadata-Version: 2.4
2
+ Name: Pymem-win
3
+ Version: 1.14.0
4
+ Summary: python memory access made easy
5
+ License: MIT
6
+ License-File: AUTHORS
7
+ License-File: LICENSE
8
+ Author: Fabien Reboia
9
+ Author-email: srounet@gmail.com
10
+ Requires-Python: >=3.8,<4.0.0
11
+ Classifier: Environment :: Win32 (MS Windows)
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.8
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Provides-Extra: speed
23
+ Requires-Dist: regex (==2024.9.11) ; extra == "speed"
24
+ Project-URL: Documentation, https://pymem.readthedocs.io/en/latest/
25
+ Project-URL: Repository, https://github.com/srounet/Pymem
26
+ Description-Content-Type: text/markdown
27
+
28
+ [![GitHub license](https://img.shields.io/github/license/srounet/pymem.svg)](https://github.com/srounet/Pymem/)
29
+ [![Build status](https://ci.appveyor.com/api/projects/status/sfdvrtuh9qa2f3aa/branch/master?svg=true)](https://ci.appveyor.com/project/srounet/pymem/branch/master)
30
+ [![codecov](https://codecov.io/gh/srounet/Pymem/branch/master/graph/badge.svg)](https://codecov.io/gh/srounet/Pymem/branch/master)
31
+ [![Discord](https://img.shields.io/discord/342944948770963476.svg)](https://discord.gg/xaWNac8)
32
+ [![Documentation Status](https://readthedocs.org/projects/pymem/badge/?version=latest)](https://pymem.readthedocs.io/?badge=latest)
33
+
34
+ Pymem
35
+ =====
36
+
37
+ A python library to manipulate Windows processes (32 and 64 bits).
38
+ With pymem you can hack into windows process and manipulate memory (read / write).
39
+
40
+ Documentation
41
+ =============
42
+ You can find pymem documentation on readthedoc there: http://pymem.readthedocs.io/
43
+
44
+ Discord Support
45
+ =============
46
+ For questions and support, join us on discord https://discord.gg/xaWNac8
47
+
48
+ Examples
49
+ ========
50
+ You can find more examples from the community in the [Examples from the community](https://pymem.readthedocs.io/en/documentation/examples/index.html) of pymem documentation.
51
+
52
+ Listing process modules
53
+ -----------------------
54
+
55
+ ````python
56
+ import pymem
57
+
58
+ pm = pymem.Pymem('python.exe')
59
+ modules = list(pm.list_modules())
60
+ for module in modules:
61
+ print(module.name)
62
+ ````
63
+
64
+ Injecting a python interpreter into any process
65
+ -----------------------------------------------
66
+
67
+ `````python
68
+ from pymem import Pymem
69
+
70
+ notepad = subprocess.Popen(['notepad.exe'])
71
+
72
+ pm = pymem.Pymem('notepad.exe')
73
+ pm.inject_python_interpreter()
74
+ filepath = os.path.join(os.path.abspath('.'), 'pymem_injection.txt')
75
+ filepath = filepath.replace("\\", "\\\\")
76
+ shellcode = """
77
+ f = open("{}", "w+")
78
+ f.write("pymem_injection")
79
+ f.close()
80
+ """.format(filepath)
81
+ pm.inject_python_shellcode(shellcode)
82
+ notepad.kill()
83
+ `````
84
+
@@ -0,0 +1,56 @@
1
+ [![GitHub license](https://img.shields.io/github/license/srounet/pymem.svg)](https://github.com/srounet/Pymem/)
2
+ [![Build status](https://ci.appveyor.com/api/projects/status/sfdvrtuh9qa2f3aa/branch/master?svg=true)](https://ci.appveyor.com/project/srounet/pymem/branch/master)
3
+ [![codecov](https://codecov.io/gh/srounet/Pymem/branch/master/graph/badge.svg)](https://codecov.io/gh/srounet/Pymem/branch/master)
4
+ [![Discord](https://img.shields.io/discord/342944948770963476.svg)](https://discord.gg/xaWNac8)
5
+ [![Documentation Status](https://readthedocs.org/projects/pymem/badge/?version=latest)](https://pymem.readthedocs.io/?badge=latest)
6
+
7
+ Pymem
8
+ =====
9
+
10
+ A python library to manipulate Windows processes (32 and 64 bits).
11
+ With pymem you can hack into windows process and manipulate memory (read / write).
12
+
13
+ Documentation
14
+ =============
15
+ You can find pymem documentation on readthedoc there: http://pymem.readthedocs.io/
16
+
17
+ Discord Support
18
+ =============
19
+ For questions and support, join us on discord https://discord.gg/xaWNac8
20
+
21
+ Examples
22
+ ========
23
+ You can find more examples from the community in the [Examples from the community](https://pymem.readthedocs.io/en/documentation/examples/index.html) of pymem documentation.
24
+
25
+ Listing process modules
26
+ -----------------------
27
+
28
+ ````python
29
+ import pymem
30
+
31
+ pm = pymem.Pymem('python.exe')
32
+ modules = list(pm.list_modules())
33
+ for module in modules:
34
+ print(module.name)
35
+ ````
36
+
37
+ Injecting a python interpreter into any process
38
+ -----------------------------------------------
39
+
40
+ `````python
41
+ from pymem import Pymem
42
+
43
+ notepad = subprocess.Popen(['notepad.exe'])
44
+
45
+ pm = pymem.Pymem('notepad.exe')
46
+ pm.inject_python_interpreter()
47
+ filepath = os.path.join(os.path.abspath('.'), 'pymem_injection.txt')
48
+ filepath = filepath.replace("\\", "\\\\")
49
+ shellcode = """
50
+ f = open("{}", "w+")
51
+ f.write("pymem_injection")
52
+ f.close()
53
+ """.format(filepath)
54
+ pm.inject_python_shellcode(shellcode)
55
+ notepad.kill()
56
+ `````