YOU Be the Moderator!

This is a discussion on YOU Be the Moderator! within the A Brief History of Cprogramming.com forums, part of the Community Boards category; It's the hot new game show that's sweeping the nation! YOU Be the Moderator! The rules of the game are ...

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    151

    YOU Be the Moderator!

    It's the hot new game show that's sweeping the nation! YOU Be the Moderator!

    The rules of the game are simple: Assume you are a moderator on any old message board with powers up to and including banning members. Now suppose you logged in one day and saw a new topic, with no replies, by one of the board's more-or-less regular members, but one whose personal life you are generally ignorant of. The question is, how would you percieve the post, and what would your reactions be, if any?

    The post in question (note that much has been snipped, for length and given the post's subject):

    ------------------------------------------------------------------------------------
    Title: Buffer Overflows
    Been messing around with overflowing buffers today. First example:

    Code:
    // C++ code, notable for a 'void main()'
    Now I know this code does basically nothing and is pretty poorly written. It's not even a buffer overflow, but it operates on the same principle. If you run it as it is, you'll see 10 lines of some random debug information, and then the outputted "THISISOUTPUT", and the program ends. If you uncomment the line that is commented and then run the program, it will output the debug information as before, but mysteriously skips over the cout << "THISISOUTPUT". I use the variable 'a' as a reference to the stack, and using that, directly overwrite the saved EIP on the stack, redirecting it a few lines down. So when the function returns, instead of going to the next line like it should, it's redirected to skipping to the end of main.

    Second example:

    Code:
    // C++ code. Notable for cin >>'ing to a char array.
    Now this is a pretty interesting buffer overflow, and it's actually an example you might see coded in real life. The program asks you for a password, you enter one, it outputs some debug information, then if your password was correct or not, it says so.

    [In-depth Explanation of the noted vulnerability]

    Now, try entering this when it prompts you for the password. Warning, the program does crash when you enter this, but not before saying that you entered the correct password. In windows xp just a little dialog box pops up when it crashes, and you can hit OK, and everything's all good. Shouldn't cause any damage, but don't blame me if it does.

    [Description of what to input]

    It will crash, but if you move the dialog box out of the way, you'll notice that "Correct Password!" was outputted before it crashed.

    Basically what this does is once again use the input variable as a reference to the stack. The periods you enter just overwrite stack until you get to the EIP register. The [data] which are entered correspond to a certain address, along the same principle as the first example.
    ------------------------------------------------------------------------------------
    System: Debian Sid and FreeBSD 7.0. Both with GCC 4.3.

    Useful resources:
    comp.lang.c FAQ | C++ FQA Lite

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,062
    Ban him! ... and ban everyone who viewed the topic... then go on a wild banning spree at the end of which I ban myself.

    OMG, Webmaster, make me teh mod plz!

    ----

    I don't get the idea of this question. Is this a member who usually knows what their talking about and just made an extremely stupid post or is it someone who almost always say something stupid? If it's the former, I'd probably ask what they were thinking and whether they wrote it when they were half asleep and I would note the mistakes that made me come to that conclusion. If it's the latter, I'd probably just tell them their errors because I'd expect it from them... and then I'd ban them.
    Last edited by SlyMaelstrom; 10-09-2006 at 10:19 AM.
    Sent from my iPad®

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    You banning yourself might be worth it
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,062
    Oh... you wanna go? Because in case you didn't realize... milk drinks cats!

    ... umm, or something like that.
    Sent from my iPad®

  5. #5
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Quote Originally Posted by SlyMaelstrom
    Oh... you wanna go? Because in case you didn't realize... milk drinks cats!
    In communist russia you mean.

  6. #6
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    I like the last post game better.
    Almost every board has one. (But this one ofcourse.)
    The only problem is I have to through the 1000's of pages to see the last post. (No, I am not kidding.)

    Or the "deepest darkest secret" is a good one.

  7. #7
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    Is this hypothetical, as in Ethic's hypothetical game, which means it's not, or is it just a ... vague approximation of a possible scenario?

    If I was a moderator I would have some ideas ... but they wouldn't be implementable unless I was an administrator ... As for my other ideas, I would ban lots of people for silly reasons, and only for silly reasons, then I would wear a holier-than-though dogmatic hat and be great, loved and feared by everyone!!

  8. #8
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,383
    Quote Originally Posted by zx-1
    The post in question (note that much has been snipped, for length and given the post's subject)
    What on earth does that have to do with moderators!?
    Are you having a blonde moment here? It's a question. A doubt. Something went wrong in the code. He needs help. He's in trouble. All the building blocks of a normal, perfectly natural, and quite on topic post. So why do you need a moderator?

    If I where a moderator I would ban moderators. The type that thinks moderatoring a board is an honor and a mission.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  9. #9
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,526
    Quote Originally Posted by Mario F.
    If I where a moderator I would ban moderators. The type that thinks moderatoring a board is an honor and a mission.
    I'm in favor of an anonymous board.

  10. #10
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465

    ╔╗╔╦══╦╗╔╦══╦╗
    ║╚╝║╔╗║╚╝║╔╗║║
    ║╔╗║╠╣║╔╗║╠╣╠╣
    ╚╝╚╩╝╚╩╝╚╩╝╚╩╝

    codez http://code.google.com/p/zxcvbn/

  11. #11
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,383
    As Douglas Adams so well protrayed once, the way we perceive things can be summed as this:

    • Everything that exists in the world when you are born is normal;
    • Anything that gets invented between when you were born and before you turn 30 is incredibly exciting and you even think you can make a career out of it.
    • Anything that gets invented after that is the end of civilization as we know it, an evil thing and probably also something that will move our younglings astray.


    Two things strike me immediatly. One is that the younger you are, the bigger the acceptance. Seems plausible. But also, The older you are, the more right.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  12. #12
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,337
    I've banned a spammer today, and I feel fine!
    <raises glass>
    Cheers lads.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  13. #13
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,383
    Aaahh spammers... the evildoers of the internet. That who commands the spammers has all our undying respect. There is nothing more damaging, more immoral, nothing more hated than spam.

    ... Of course the bilboards on the streets, commercials every 15 minuts on the telly, magazines with the first half of their pages filled with publicity, sugar packets, telemarketing, football matches, ... we don't have sweet and lovable moderators for those.

    I'll raise my glass to that.... but only to that.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  14. #14
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    I'd ban the guy that started this thread :P

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What the purpose of moderator? From C# Boards...smart?
    By dv007 in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 09-14-2002, 05:52 PM
  2. What the purpose of moderator?
    By dv007 in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 09-14-2002, 12:15 PM
  3. Moderator Nominations
    By kermi3 in forum Game Programming
    Replies: 2
    Last Post: 08-20-2002, 02:28 AM
  4. Moderator Nominations
    By kermi3 in forum Windows Programming
    Replies: 2
    Last Post: 08-20-2002, 02:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21