You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

pccontrol

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pccontrol - pypi Package Compare versions

Comparing version
0.9
to
0.91
+97
pccontrol/controller.py
import os
import webbrowser
from requests import get
import pyautogui
def get_ip():
ip = get('https://api.ipify.org').text
if ip == None or '':
print("ERORR getting IP.")
else:
return ip
def get_users():
os.system("net user")
def change_pass(user, new_pass):
try:
os.system(f"net user {user}")
os.system(f"{new_pass}")
except:
print("please provide the user and new pass")
def task_manager():
os.system("tasklist")
def arp():
os.system("arp -a")
def get_active_connections():
os.system("netstat")
def cmd_history():
os.system("doskey/history")
def get_mac_adress():
os.system("getmac")
def flood_attack(ip):
try:
os.system(f"ping -t -l 65500 {ip}")
except:
print("Invalid ip")
def shutdown(mode="s"):
try:
os.system(f"shutdown /{mode}")
except:
print("Invalid shutdown mode")
def get_wifi_connnections():
os.system("netsh wlan show profiles")
def get_wifi_pass(wifi_name):
try:
os.system(f"netsh wlan show profile {wifi_name} key=clear")
except:
print("Please provide a wifi name as an argument.")
def systeminfo():
try:
os.system("systeminfo")
except:
print("Error getting system info.")
def open_url(url):
try:
webbrowser.get('windows-default').open("http://"+url)
except:
print("Error opening \"{url}\"")
def get_hostname():
os.system("hostname")
def spam(string):
print("Spam will start in 5 seconds")
time.sleep(5)
print("Spam started, move cursor to the corner of the screen to stop.")
while True:
pyautogui.type(string)
pyautogui.press("enter")
# by kar1m hany
+1
-1

@@ -1,1 +0,1 @@

from app import get_ip
from controller import get_ip
Metadata-Version: 1.1
Name: pccontrol
Version: 0.9
Version: 0.91
Summary: This is a python library that gives you functions for doing multiple things on pc.

@@ -5,0 +5,0 @@ Home-page: https://github.com/karimk123/pccontrol

@@ -5,3 +5,3 @@ from distutils.core import setup

packages = ['pccontrol'], # Chose the same as "name"
version = '0.9', # Start with a small number and increase it with every change you make
version = '0.91', # Start with a small number and increase it with every change you make
license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository

@@ -8,0 +8,0 @@ description = 'This is a python library that gives you functions for doing multiple things on pc.', # Give a short description about your library

import os
import webbrowser
from requests import get
import pyautogui
def get_ip():
ip = get('https://api.ipify.org').text
if ip == None or '':
print("ERORR getting IP.")
else:
return ip
def get_users():
os.system("net user")
def change_pass(user, new_pass):
try:
os.system(f"net user {user}")
os.system(f"{new_pass}")
except:
print("please provide the user and new pass")
def task_manager():
os.system("tasklist")
def arp():
os.system("arp -a")
def get_active_connections():
os.system("netstat")
def cmd_history():
os.system("doskey/history")
def get_mac_adress():
os.system("getmac")
def flood_attack(ip):
try:
os.system(f"ping -t -l 65500 {ip}")
except:
print("Invalid ip")
def shutdown(mode="s"):
try:
os.system(f"shutdown /{mode}")
except:
print("Invalid shutdown mode")
def get_wifi_connnections():
os.system("netsh wlan show profiles")
def get_wifi_pass(wifi_name):
try:
os.system(f"netsh wlan show profile {wifi_name} key=clear")
except:
print("Please provide a wifi name as an argument.")
def systeminfo():
try:
os.system("systeminfo")
except:
print("Error getting system info.")
def open_url(url):
try:
webbrowser.get('windows-default').open("http://"+url)
except:
print("Error opening \"{url}\"")
def get_hostname():
os.system("hostname")
def spam(string):
print("Spam will start in 5 seconds")
time.sleep(5)
print("Spam started, move cursor to the corner of the screen to stop.")
while True:
pyautogui.type(string)
pyautogui.press("enter")
# by kar1m hany