CARVIEW |
Select Language
HTTP/2 200
date: Tue, 14 Oct 2025 15:09:44 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=3568cab39dbca6d572347fa146a2dee924b1ad1dfb5938bd93ed97f49781414ca%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22DljiJUxfCq305MjDVEYOIJV7ESMSWOfD%22%3B%7D; HttpOnly; Path=/
cf-ray: 98e7ffde0821165e-BLR
what_browser_is_default - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- # Filename: what_browser_is_default.py
- # Version: 1.00
- # Author: Jeoi Reqi
- """
- This script retrieves the default web browser set in the Windows registry.
- Requirements:
- - This script is designed for Windows operating systems.
- - Python must be installed on the system.
- - The script requires access to the Windows registry.
- """
- import os
- import winreg
- def get_default_browser_windows():
- try:
- # Open the Windows registry key for HTTP associations
- with winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice") as key:
- # Read the ProgId value
- prog_id, _ = winreg.QueryValueEx(key, 'ProgId')
- # Open the registry key for the ProgId
- with winreg.OpenKey(winreg.HKEY_CLASSES_ROOT, f"\\{prog_id}\\shell\\open\\command") as browser_key:
- # Read the default browser path
- browser_path, _ = winreg.QueryValueEx(browser_key, '')
- # Extract the clean path to the browser executable (remove command-line arguments)
- browser_path = browser_path.split('"')[1]
- return os.path.basename(browser_path), browser_path
- except Exception as e:
- print("Error:", e)
- return None, None
- def main():
- default_browser, default_browser_path = get_default_browser_windows()
- if default_browser:
- print("Default Browser:")
- print("Name:", default_browser)
- print("Path:", default_browser_path)
- else:
- print("Default browser not found.")
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
-
✅ Marketplace Glitch ✅ Working NEVER SEEN BE...
JavaScript | 8 sec ago | 0.25 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ X
JavaScript | 17 sec ago | 0.25 KB
-
📝 EASY MONEY GUIDE ✅ Working J
JavaScript | 25 sec ago | 0.25 KB
-
📌 Instant BTC Profit Method ✅ Working 7
JavaScript | 34 sec ago | 0.25 KB
-
✅ Make $2500 in 20 minutes⭐ 0
JavaScript | 42 sec ago | 0.25 KB
-
📌 Swapzone +37% glitch ⭐ A
JavaScript | 50 sec ago | 0.25 KB
-
✅⭐ Make huge profits on trading ⭐⭐ T
JavaScript | 58 sec ago | 0.25 KB
-
✅ Marketplace Glitch ✅ Working NEVER SEEN BE...
JavaScript | 1 min ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand