Scra4tch #1 Posted December 2 Hi, i was wondering if simple program like hello world wich only prints out hello world can be hacked if it can be? Code(in python) : print("Hello World") Program can be written in other languages it doesn't matter Share this post Link to post Share on other sites
Scra4tch #2 Posted December 2 By the way malwarbytes say that every program can be hacked, thats why I am wondering about it, because there is for example user input. Share this post Link to post Share on other sites
David H. Lipman #3 Posted December 2 (edited) It would not be the simple printf("string") or other simple programming construct. Assuming an Interpreted Language, it would be a compromise of the Interpreter's environment that can be the object of a hack attack. This could be the Virtual Machine of Oracle Java or the complex environment of Python. Other Script Interpreters may be native to the OS such as PowerShell, VBScript and JavaScript as examples. There the hack may exploit a vulnerability of the Interpreter or the OS itself or a Program Environment such as Microsoft Office where VBA scripting may be exploited. The more complex the Interpreter's environment, the greater the propensity of there being a vulnerability that may be exploited. A simple Interpreter such as KiXtart would be less prone and and a more complex one like Python would have a higher propensity. Such functions used in a compiled language present their own problems such as poor data evaluation for input strings, buffer overflows and compiler bugs. These can lead to bad programming which could be exploited in a hack attack. Edited December 2 by David H. Lipman Edited for content, clarity, spelling and grammar Share this post Link to post Share on other sites
Scra4tch #4 Posted December 3 Thanks so much for answer. Share this post Link to post Share on other sites