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

Contribution: Added Origin URLS #17

Open
AboveAphid0 opened this issue Nov 14, 2023 · 1 comment
Open

Contribution: Added Origin URLS #17

AboveAphid0 opened this issue Nov 14, 2023 · 1 comment

Comments

@AboveAphid0
Copy link

(I don't use github btw so I'm not sure if this is the right way of doing this)

I noticed that your script when taking passwords used "action_urls" to recieve the password's login website. However I also noticed that this can sometimes return "" which ain't what you want to see 😅. So I just modified it to use origin urls (and action urls) because I noticed it returns the URL more often.
Here's the updated code: (idk how to attach files so this is gonna be messy sorry. )

Changed to: (this just fixes the bug of not have admin to access the file)

for data_type_name, data_type in data_queries.items():
            print(f"\t [$] Getting {data_type_name.replace('_', ' ').capitalize()}")
            try:
                data = get_data(browser_path, "Default", master_key, data_type)
                save_results(browser, data_type_name, data)
            except:
                print('\t [!] Failed to receive data')
            print("\t------\n")`

Changed to: (this is the updated query, ik it was a surprisingly simple fix, you made your code very well/easy to change 👍)

data_queries = {
    'login_data': {
        'query': 'SELECT origin_url, action_url, username_value, password_value FROM logins',
        'file': '\\Login Data',
        'columns': ['Origin URL', 'Action URL', 'Email', 'Password'],
        'decrypt': True
    },
...

Hope that helps! And sorry if this is a messy way of trying to help your project 😅

@batuafk
Copy link

batuafk commented Feb 2, 2024

if __name__ == '__main__':
    available_browsers = installed_browsers()

    for browser in available_browsers:
        browser_path = browsers[browser]
        master_key = get_master_key(browser_path)
        print(f"Getting Stored Details from {browser}")

        for data_type_name, data_type in data_queries.items():
            print(f"\t [$] Getting {data_type_name.replace('_', ' ').capitalize()}")
            try:
                data = get_data(browser_path, "Default", master_key, data_type)
                save_results(browser, data_type_name, data)
            except:
                print('\t [!] Failed to receive data')

            for i in range(1, 51):
                profile = f'Profile {i}'

                try:
                    data = get_data(browser_path, profile, master_key, data_type)
                    save_results(browser, data_type_name, data)
                except:
                    print('\t [!] Failed to receive data')

            print("\t------\n")

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

No branches or pull requests

2 participants