Alex Segesta's Computer Science Problems (Part 2)

So Alex, not knowing about the beauty of computer science, says that he will spend a couple days (oh no!) to learn about Uncle Sam from HackThisSite and how he creates his websites. He shows you the following python code that he devised up.

1
2
3
4
5
6
7
8
9
from samsPersonalSecurityModule import fileEncryptedOpening

def openSecureFile(link):
    connection = fileEncryptedOpening.openWithHttps(link+"/8m0L4K8h");
    fileEncryptedOpening.storePassword(connection,outputText)
    outputText = "";
    fileEncryptedOpening.stripHeader("Uncle Sam's Password:",outputText);
    return outputText;
print openSecureFile("http://bitbin.it");

What was the output?

Assume that the functions do what they are basically told to do.

openWithHttps opens a link (like opening a tab)

storePassword gets the content of important text on a webpage. (takes in two arguments, where to go, and where to store text/output)

stripHeader takes off n, where n is the first argument.

×

Problem Loading...

Note Loading...

Set Loading...