Posts

Showing posts from July, 2021

GETTING ALL WIFI PASSWORDS

  GETTING ALL WIFI PASSWORDS WITH A SIMPLE SCRIPT IN PYTHON .. You don't have to install any packages . The source code : 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 : print ( "{:<30}| {:<}" .format(i , results[ 0 ])) except IndexError : print ( "{:<30}| {:<}" .format(i , "" )) input ( "" ) This will print all the Wi-fi names and their corresponding Wi...

MOUSELOGGER IN PYTHON ..🤑🤑

 Creating a mouse logger in Python .. create a mouse.py file and mouse_log.txt file in the same directory .. The code : from pynput.mouse import Listener # pip install pynput import logging                            # pre-installed logging.basicConfig( filename = "mouse_log.txt" , level =logging.DEBUG , format = '%(asctime)s: %(message)s' ) def on_move (x , y): logging.info( "Mouse moved to ({0}, {1})" .format(x , y)) def on_click (x , y , button , pressed): if pressed: logging.info( 'Mouse clicked at ({0}, {1}) with {2}' .format(x , y , button)) def on_scroll (x , y , dx , dy): logging.info( 'Mouse scrolled at ({0}, {1})({2}, {3})' .format(x , y , dx , dy)) with Listener( on_move =on_move , on_click =on_click , on_scroll =on_scroll) as listener: listener.join() And if you run the code .. you could see where the mouse had moved in the mouse_log.txt *see the source code fo...