#sharikcodez
Explore tagged Tumblr posts
sharikbashir 2 years ago
Text
WiFi Hacking with python
wifi hacking python code:
import subprocess try: profiles = [line.split(":")[1][1:-1] for line in subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']).decode('utf-8', errors="backslashreplace").split('\n') if "All User Profile" in line] print("{:<30}| {:<}".format("Wi-Fi Name", "Password")) print("----------------------------------------------") for profile in profiles: try: password = [line.split(":")[1][1:-1] for line in subprocess.check_output(['netsh', 'wlan', 'show', 'profile', profile, 'key=clear']).decode('utf-8', errors="backslashr eplace").split('\n') if "Key Content" in line][0] print("{:<30}| {:<}".format(profile, password)) except IndexError: print("{:<30}| {:<}".format(profile, "")) except subprocess.CalledProcessError: print("Encoding Error Occurred")
Tumblr media Tumblr media Tumblr media
87 notes View notes
sharikbashir 2 years ago
Text
Lambda Functions in Python
Lambda Functions in Python Code:
add = lambda x, y: x + y result = add(3, 5) print("Result of addition:", result)
Tumblr media
3 notes View notes
sharikbashir 2 years ago
Text
Swapping Two Variables in Python
Swap two variables python example code:
a = 5 b = 10 a, b = b, a print("a:", a) print("b:", b)
Tumblr media
1 note View note
sharikbashir 2 years ago
Text
Calculate the Area of a Circle with PYTHON
Calculate the Area of a Circle with PYTHON CODE:
radius =聽float(input("Enter the radius of the circle: ")) area = math.pi * (radius **聽2) print("Area of the circle:", area)
Tumblr media
1 note View note
sharikbashir 2 years ago
Text
聽PASSWORD GENERATOR PYTHON
BOT
聽PASSWORD GENERATOR BOT of PYTHON CODE:
import random import string def generate_password(length): characters = string.ascii_letters + string.digits + string.punctuation password = ''.join(random. Choice(characters) for _ in range(length)) return password # Example usage to generate a 12-character password password = generate_password(12) print(password)
Tumblr media
0 notes
sharikbashir 2 years ago
Text
Simple Python Calculator
Simple Python Calculator Code:
num1 = int(input("enter number")) num2 = int(input("enter number")) action = str(input("choose action: Add(a) Sub(s) Mult(m) Div(d) ->")) print("the result is",聽end="") if action ==聽"a": print(num1+num2) elif action ==聽"s": print(num1-num2) elif action ==聽"m": print(num1*num2) else: print(num1/num2)
Tumblr media
1 note View note