Skip to content

Instantly share code, notes, and snippets.

Avatar
🥴
Taking a break from mental health to study

Dhruv Anand iDCoded

🥴
Taking a break from mental health to study
View GitHub Profile
@iDCoded
iDCoded / password.py
Created Sep 1, 2021
Python script to display all the stored WiFi passwords on your device.
View password.py
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 Jan 3, 2022
How to set a custom file as your Firefox New Tab
View newtab-howto.md
  • 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