Relative Content

Tag Archive for pythonsecurity

Is this still an uncontrolled command line, which can execute malicious code?

import os command = “conda run -n python3.5 python generate_handwriting.py -text ‘{}’ -style {} -bias {} -stroke_color ‘{}’ -stroke_width {} -output ‘{}'”.format(text, style, bias, stroke_color, stroke_width, output_filename) os.system(command) I get the variables, for example text, directly from the user. I’ve been notified that this could allow the user to execute malicious code. I have rewritten […]

Cyber ​security project idea

I need to work on a project for school. I will be giving a presentation on cybersecurity, and I need to come up with a ‘product.’ Initially, I wrote a simple Python program that gives a warning when a Man-In-The-Middle Attack is detectd. I need to come up with something more advanced and presentable. Can you provide some ideas?