Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JSON output #11

Open
4 tasks
simsor opened this issue Jan 20, 2021 · 1 comment
Open
4 tasks

Add JSON output #11

simsor opened this issue Jan 20, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@simsor
Copy link
Member

simsor commented Jan 20, 2021

As mentioned in #10, it would be really useful if RegRippy could also output its results in a format that it easier to process by scripts.

In my opinion, JSON would be the best solution. Here is a possible output format:

$ regrip.py --json -r /mnt/evidence --all-user-hives run

[
	{
		"plugin": "run",
		"hive": "SOFTWARE",
		"path": "/mnt/evidence/Windows/System32/config/SOFTWARE",
		"result": {
			"key": "Microsoft\\Windows\\CurrentVersion\\Run",
			"value_name": "Calculator",
			"value_type": "REG_SZ",
			"value_data": "C:\\Windows\\system32\\calc.exe"
		}
	},
	{
		"plugin": "run",
		"hive": "NTUSER.DAT",
		"path": "/mnt/evidence/Users/John/NTUSER.DAT",
		"result": {
			"key": "Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce",
			"value_name": "UpdateTeams",
			"value_type": "REG_SZ",
			"value_data": "%USERPROFILE\\update_ms_teams.exe"
		}
	},
]
  • Add display_json
  • Make display_json return useful data even if the plugin didn't override it
  • Automatically call display_json if the --json flag is passed, grouping results in a JSON array
  • Update exisiting plugins with a JSON output

If you use RegRippy, what do you think? Would this help you in your day-to-day job?

@simsor simsor added the enhancement New feature or request label Jan 20, 2021
@simsor simsor self-assigned this Jan 20, 2021
@nbareil
Copy link

nbareil commented Jan 20, 2021

This makes me think of @williballenthin's presentation, Willi is very convincing that instead of hardcoding a predefined output (be it a JSON structure), we should implement a templating system.

That way, each one is free to implement output as they wish: XML,, CSV, JSON, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants