Comments (6)
I also faced with this issue. @Ic1k-Git , path
argument has not obvious name and you should not use it as subpath from start. This argument is used to save whole path from root during recursive execution because each registry node doesn't have this information.
You could use next code to achieve your goal
for entry in reg.recurse_subkeys(nk_record=reg.root.get_key('ControlSet001\Services'), as_json=True):
print(entry.path)
@tincho9 , what do you think about adding this information to comments or maybe to change argument name?
I have also found strange behavior with get_keys()
method. From SOFTWARE registry file
reg.root.get_key('ODBC')
returns valid result
reg.get_key('ODBC')
returns None when reg.get_key('SOFTWARE\ODBC')
still returns valid object.
from regipy.
I've also changed the variable named and added some documentation in the docstring.
If this works for you, i'll make a pypi release later on today.
@Ic1k-Git @wizir6
Can I close this issue?
from regipy.
I'll take a look during the next weekend. It happens with every hive?
from regipy.
I've tried for SOFTWARE, SECURITY and NTUSER and it happend every time.
from regipy.
Sorry about the confusion.
reg
is a RegistryHive
object, while reg.root
is an NKRecord
. The get_key
function is different in each one of them.
The function in RegistryHive
will resolve the path and return the key, while the get_key
function in NKRecord
will try to find a subkey by this name directly under the subkey. I've renamed the function in NKRecord
to get_subkey
.
Hope this will solve the confusion.
reg.root.get_subkey('ODBC')
reg.get_key('ODBC')
reg.get_key('SOFTWARE\ODBC')
These three now return the same result.
from regipy.
I've also changed the variable named and added some documentation in the docstring.
If this works for you, i'll make a pypi release later on today.
from regipy.
Related Issues (20)
- Add missing git tags for recents releases HOT 1
- Regipy in Docker container not working (AttributeError: module 'importlib' has no attribute 'util') HOT 6
- Release `2.0.1` seems to have failed to deploy HOT 2
- Dependency Dashboard
- registry-transaction-log generates a corrupt hive HOT 3
- registry-dump missing some (default) values HOT 6
- Do not pin requirements in setup HOT 3
- OverflowError: Python int too large to convert to C ssize_t HOT 2
- Publish wheel on PyPI HOT 1
- Failure to update HOT 1
- Cant't decode value HOT 2
- Publish wheel on PyPI for 2.3.1 HOT 1
- ConstError when parsing reg-file HOT 1
- Relax libfwsi-python==20220123 requirement and other requirements HOT 3
- UserAssist binary value is returned incomplete HOT 1
- Support Wine registry HOT 2
- `regipy` `console_scripts` have too generic names, that can cause clashes HOT 2
- Cannot iterate over subkeys in NTUSER.DAT\Software
- get_network_info() takes from 2 to 3 positional arguments but 4 were given HOT 1
- regipy-cli: Logging: Use STDINFO instead of STDOUT for information, warning and error messages HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from regipy.