Exclusive insights

all 51 comments

sorted by: hot top controversial new old
[–] 161 points 1 year ago (16 children)

I guess you could add some sleep(1) inbetween

  • source
  • hideshow 16 child comments
  • [–] 85 points 1 year ago (3 children)

    Needs to be a sleep(3) and sleep(5) between the last ones just to add suspense

  • source
  • parent
  • hideshow 3 child comments
  • [–] 9 points 1 year ago

    Needs a 99% print too just before the 5 second sleep. Followed by a 99.9% and another 2 second sleep. Never print 100 and just run a traceroute in a loop.

    Followed by a "we're in" from the hacker as we're made to believe he's reading the console spam like he's Neo from the matrix as he types faster and faster into an unresponsive terminal window.

  • source
  • parent
  • [–] 73 points 1 year ago (11 children)

    This is Python. It's already show enough.

  • source
  • parent
  • hideshow 11 child comments
  • [–] 8 points 1 year ago (7 children)
  • [–] 44 points 1 year ago (6 children)

    It's valid Python code though, the semicolons will run but are unnecessary

  • source
  • parent
  • hideshow 6 child comments
  • [–] 36 points 1 year ago* (last edited 1 year ago) (2 children)

    demo of semicolons being allowed in Python

    I am so perplexed and horrified. I'm going to need several weeks to get over this. What is this?!

  • source
  • parent
  • hideshow 2 child comments
  • [–] 53 points 1 year ago (4 children)

    what about the sleeps between each print?

    where's the comments?

    why isn't it DRY?

    3/10 code, PR rejected.

  • source
  • hideshow 4 child comments
  • [–] 16 points 1 year ago (3 children)

    where’s the comments?

    // this prints 80%

  • source
  • parent
  • hideshow 3 child comments
  • [–] 45 points 1 year ago (2 children)

    You know hackers in the movies are very polite and care for their user. When they are hacking or wiping the disk they show proper progress. That is much better user experience than many corporate products. Be like hackers in the movie.

  • source
  • hideshow 2 child comments
  • [–] 36 points 1 year ago (1 child)

    For those who want a more convincing but still low-effort variant of this, use... https://hackertyper.net/

    Press F11 in your browser to run it in fullscreen.

  • source
  • hideshow 1 child comment
  • [–] 32 points 1 year ago (4 children)

    Did he type the furiously on to the keyboard? No? Then it's not hacking.

  • source
  • hideshow 4 child comments
  • [–] 27 points 1 year ago (2 children)

    I have seen like 2 movies where the hacker just ran a script and danced around the room until the progress bar got to the top, then he hit a couple inputs and ran another script and went back to dancing. It was so surreal to see something so much closer to real than the feverish hammering in a keyboard.

  • source
  • parent
  • hideshow 2 child comments
  • have you seen who runs the fbi? this'll probably work irl

  • source
  • [–] 17 points 1 year ago (1 child)

    It takes skill to hack such an organization using only printf

  • source
  • hideshow 1 child comment
  • [–] 8 points 1 year ago

    I've been hacking the world this whole time!

  • source
  • [–] 7 points 1 year ago

    behind the scenes: youtube video of a python loop

  • source
  • Yeah, few people know that the FBI tells you the progress when hacking them.

  • source
  • [–] 7 points 1 year ago

    But look how much effort he put into ricing his terminal this guy's good.

  • source
  • [–] 6 points 1 year ago (1 child)

    what HP printers really do

  • source
  • hideshow 1 child comment
  • [–] 5 points 1 year ago

    Guys, you can't just come in here and post exactly how hackimg works.

    That's illegal!!1!

  • source
  • [–] 3 points 1 year ago (8 children)
  • [–] [S] 17 points 1 year ago (7 children)
    import sys
    import time
    from typing import Iterable, Callable, Any
    
    class ProgressSimulator:
        """
        A class to simulate and display the progression of a hacking process,
        with unnecessary abstraction and complexity for dramatic effect.
        """
    
        def __init__(self, description: str = "FBI"):
            self.description = description
            self.progress_steps = [0, 20, 40, 60, 80, 100]
            self.messages = [
                f"Starting Hack...",
                *[f"Hacking {self.description} {step}%" for step in self.progress_steps],
                f"{self.description} Hacked Successfully"
            ]
    
        def generate_progress(self) -> Iterable[str]:
            """Generates the progress messages."""
            for message in self.messages:
                yield message
    
        def display_progress(self, delay: float = 0.5) -> None:
            """Displays the progress messages with a delay."""
            for message in self.generate_progress():
                print(message)
                time.sleep(delay)
    
        def execute_hack(self, callback: Callable[[str], Any] = print) -> None:
            """Executes the hacking process with a callback for each step."""
            for message in self.generate_progress():
                callback(message)
    
    def create_hacking_sequence(description: str = "FBI") -> ProgressSimulator:
        """Factory function to create a hacking sequence."""
        return ProgressSimulator(description)
    
    def main() -> None:
        """Main function to orchestrate the hacking simulation."""
        hacking_sequence = create_hacking_sequence()
        hacking_sequence.display_progress()
    
    if __name__ == "__main__":
        main()
    
  • source
  • parent
  • hideshow 7 child comments
  • [–] 2 points 1 year ago (2 children)

    I can do this in C in three lines.

  • source
  • parent
  • hideshow 2 child comments