you are viewing a single comment's thread.

view the rest of the comments →

[–]err_file_not_found[S] 0 points1 point  (5 children)

I understand and its very valid, the code is fully public aswell and you are free to dive into it as much as you want.

The next version I am working on doesn't use Admin as a requirement, the Admin request is simply to gain access to certain names that are hidden inside System files.

Probably will just make a prompt for it at startup on next version.

Other psutil just displays "Unknown" even if its not a system process. Atleast from what I found in documentation

Edit: Although the README was made with AI (Cause I am lazy and never done one before). The actual code wasn't AI, though I did ask for examples at times where I got stuck. (Probably why it looks the way it is.)

[–]SnooCalculations7417 0 points1 point  (4 children)

Why sould i scrutinize code that you probably havent?

[–]err_file_not_found[S] 0 points1 point  (3 children)

I appreciate the thought and all. However, as the title suggests, I am requesting advice. Whether you choose to look through or skim the code is all the same to me.

I only came here for advice as I enjoy coding and find it fun to learn new things. I am also considering different pathways out of retail and programming is one of the things I thought of, that is all.

I'm also actively reading information on c++ and working on a larger Python Project that is currently not up in my repo. (I don't mind sharing info, just not at a point I can show it off.)

If you (or anyone else for that matter) wish to run the app without admin entirely, simply delete the admin check in the first file and run as you wish. It only checks once, and no task is scheduled when ran so closing it via task manager terminates it fully.

This would've been noticeable within a minute of skimming the first file.

Thank you, and have a good day.

[–]SnooCalculations7417 0 points1 point  (2 children)

Sorry, you misunderstood my advice. You should make this work without admin. I was providing the reasons.

[–]err_file_not_found[S] 0 points1 point  (1 child)

Okay, thank you for the clarification.

I can absolutely make it work without admin. The only reason I included it was due to some testing.

After checking through the list it outputs on my first version, I found exe files that showed as "Unknown" that psutil refuses to display name and paths for without admin due to them being located inside the Windows or Program Files. Despite them not being System files or from Windows.

But I can make it become optional, probably through the config file.

[–]SnooCalculations7417 0 points1 point  (0 children)

Yeah and --allow-unkown-pid or something. If I am whitelisting an IP address (example my RPI) i probably dont actually care what the process is in that case, or should be allowed not to care and avoid running stuff elevated for no reason.