NetExec icon indicating copy to clipboard operation
NetExec copied to clipboard

Module to dump Yandex credentials

Open Moghees244 opened this issue 6 months ago • 6 comments

Description

This module adds functionality to extract all saved passwords from the Yandex browser for all user profiles on the system. Running this module requires admin privileges on target host.

Type of change

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] Deprecation of feature or functionality
  • [x] This change requires a documentation update (https://github.com/Pennyw0rth/NetExec-Wiki/pull/61)
  • [ ] This requires a third party update (such as Impacket, Dploot, lsassy, etc)

Setup guide for the review

Test Environment & Setup

  • Local Machine:

    • OS: Kali Linux 6.12.20-amd64
    • Python Version: 3.13.2
  • Tested Targets:

    • Windows 11
    • Windows Server 2022

Setup Instructions

  1. On your Windows target, set up an SMB server and install the Yandex browser.
  2. Launch the browser and save one or more credentials to populate the password store.
  3. Ensure the user account you're testing with has admin access to the target host.

Usage

To test the module, run the following command:

netexec smb <target_ip> -u <user> -p <password> -M yandex

Expected Behavior

  • The module will extract and display all saved passwords from the Yandex browser.
  • Extracted credentials will also be saved to the database in dpapi table.

Screenshots:

Checklist:

  • [x] I have ran Ruff against my changes (via poetry: poetry run python -m ruff check . --preview, use --fix to automatically fix what it can)
  • [x] I have added or updated the tests/e2e_commands.txt file if necessary (new modules or features are required to be added to the e2e tests)
  • [ ] New and existing e2e tests pass locally with my changes
  • [ ] If reliant on changes of third party dependencies, such as Impacket, dploot, lsassy, etc, I have linked the relevant PRs in those projects
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] I have made corresponding changes to the documentation (PR here: https://github.com/Pennyw0rth/NetExec-Wiki)

Moghees244 avatar Jul 21 '25 10:07 Moghees244

Thanks for the PR!

NeffIsBack avatar Jul 21 '25 14:07 NeffIsBack

Hi @NeffIsBack Did you get chance to review the PR?

Moghees244 avatar Jul 30 '25 06:07 Moghees244

Hi @NeffIsBack Did you get chance to review the PR?

The code looks good so far, but due to the enormous amount of Pull Requests in the past there is (un)fortunately still a huge backlog of PRs i have to test first before i can test this one. Bare with me, the day will come

NeffIsBack avatar Jul 30 '25 18:07 NeffIsBack

Hi @NeffIsBack! Any updates?

Moghees244 avatar Sep 01 '25 14:09 Moghees244

Unfortunately not, there are still ~25 PRs left before this one.

However, it looks like there are merge conflicts on this branch which anyway have to be resolved first. Also, i don't have permissions to update/push commits to this branch. Did you change any security settings on your fork?

NeffIsBack avatar Sep 01 '25 15:09 NeffIsBack

Unfortunately not, there are still ~25 PRs left before this one.

However, it looks like there are merge conflicts on this branch which anyway have to be resolved first. Also, i don't have permissions to update/push commits to this branch. Did you change any security settings on your fork?

I havent changed security settings on fork but anyways, I have resolved the conflicts.

Moghees244 avatar Sep 02 '25 06:09 Moghees244