Jump to content
Scra4tch

Hacking simple Hello World

Recommended Posts

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

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

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 by David H. Lipman
Edited for content, clarity, spelling and grammar

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

This site uses cookies - We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.