• 0 Posts
  • 50 Comments
Joined 6 months ago
cake
Cake day: January 16th, 2024

help-circle

  • This is bad practice.

    More accurately it should look something like this:

    # Load sys library for exiting with status code
    import sys
    
    def sayHelloWorld(outPhrase: str="Hello World"):
        # Main function, print a phrase and return NoneType
        print(outPhrase)
        return None
    
    if __name__=="__main__":
        # Provide output and exit cleanly when run from shell
        sayHelloWorld()
        sys.exit(0)
    else:
        # Exit with rc!=0 when not run from shell
        sys.exit(1)
    



  • I remember getting sent to the principals office for “hacking” (pinging the computer in the next room) in like 8th grade.

    Back in 4th/5th I actually was hacking, modifying our user menu to add Windows 3.1 and a password (copying config from a teacher’s profile). Also brute-forced at least two teachers passwords.

    I’m a network architect now, so there’s that.





  • As a network guy…open up your favorite web-managed application and open the developer console. Inspect the transactions you see and compare it to the applications REST API reference, and you’ll likely find a lot of commonality (and maybe some undocumented endpoints!).

    Backend made the API and everything that is performed by it. Front end is doing the GUI based off the response and promoting for input.