Live data from Hacker News

Spoilerwall: Respond to port scanning requests with movie spoilers

github.com

31–40 of 112 posts

Re: Spoilerwall: Respond to port scanning requests with movie spoilers

#32
post #23

In an effort to explain what this does, I'd just like to point out how the grammar of the title is meant to be interpreted: [Avoid being scanned] [by spoiling movies] [on all your ports].

Here I think the passive voice actually helps and an extra word. Spoil movie [plots] on all your ports to avoid being scanned. {{by zombies}}

The title as currently (re)written, "Respond to port scanning requests with movie spoilers", also seems quite clear.

Re: Spoilerwall: Respond to port scanning requests with movie spoilers

#36
post #10

A random mix of elevator pitches for various religions might be a better deterrent. Have you heard the good news?

Perhaps questions like "This statement is false", "New Mission: decline this mission", base64 encoded copies of René Magritte's 'this is not a pipe', "God is all powerful, can He make a rock so big that He Himself can't lift it?", "calculate the 2nd prime number", etc to prevent automated AI attacks.

"This is not a pipe" isn't a paradox. It's a painting of a pipe. https://en.m.wikipedia.org/wiki/The_Treachery_of_Images#Desc...

The famous pipe. How people reproached me for it! And yet, could you stuff my pipe? No, it's just a representation, is it not? So if I had written on my picture 'This is a pipe', I'd have been lying!

Re: Spoilerwall: Respond to port scanning requests with movie spoilers

#37
post #6

Earlier quoted context omitted.

This is a short program that listens on a port and responds to any attempt to connect to that port by sending back movie spoilers. The idea being that anyone that tries to port-scan your machine will be punished by having all the twists in all the best movies revealed.

I like this explanation. But is this good network security?

Nope. Good fun but not good security. Better to just refuse the connection.

Re: Spoilerwall: Respond to port scanning requests with movie spoilers

#39
Quick question:

Why does

  35: chosen = random.choice(movies)
at https://github.com/infobyte/spoilerwall/blob/master/server-s... have a reference to 'movies'. I thought one had to explicitly pass it to the MyTCPHandler class using the server object? Or is this a special case because of __main__?

Re: Spoilerwall: Respond to port scanning requests with movie spoilers

#40
post #39

Quick question: Why does 35: chosen = random.choice(movies) at https://github.com/infobyte/spoilerwall/blob/master/server-s... have a reference to 'movies'. I thought one had to explicitly pass it to the MyTCPHandler class using the server object? Or is this a special case because of __main__?

If the file gets executed as a script, then __name__ == "__main__", hence L43:53 get executed in the top-level scope, which is also available in the lower levels. This isn't very good writing, since this code will throw exceptions when __name__ != "__main__" (i.e. when import-ing the file as a module), which misleadingly defeats the purpose of having that conditional there.
Post reply on HN