Skip to content

Instantly share code, notes, and snippets.

View iDCoded's full-sized avatar
📚
brb

Dhruv Anand iDCoded

📚
brb
  • Student
  • India
  • 06:22 (UTC +05:30)
View GitHub Profile
@iDCoded
iDCoded / password.py
Created September 1, 2021 10:27
Python script to display all the stored WiFi passwords on your device.
import subprocess
data = subprocess.check_output(
['netsh', 'wlan', 'show', 'profiles']).decode('utf-8').split('\n')
profiles = [i.split(":")[1][1:-1] for i in data if "All User Profile" in i]
for i in profiles:
results = subprocess.check_output(
['netsh', 'wlan', 'show', 'profile', i, 'key=clear']).decode('utf-8').split('\n')
results = [b.split(":")[1][1:-1] for b in results if "Key Content" in b]
try:
@iDCoded
iDCoded / newtab-howto.md
Last active January 3, 2022 14:28
How to set a custom file as your Firefox New Tab
  • Go to "about:preferences#home" (Options in top right menu > home), set "Homepage and new windows" to Custom URLs and enter "file:///path/to/the/index.html"

  • Set "New tabs" to "Blank Page" then go to the installation folder of Firefox, "C:\Program Files\Mozilla Firefox" is default on Windows, open "defaults" then "pref" and put the "autoconfig.js" (from "Firefox_cfg") there. Go back to the installation folder and paste "autoconfig.cfg" (from "Firefox_cfg") in, open it and edit the "newTabURL" to the file path of the index.html