Report Hacker Script
Nazadus
Join Date: 2005-01-30 Member: 39070Members
<div class="IPBDescription">I'm thinking of writting a script...</div> I'm thinking of writting an AMX Mod X script that will do the following:
* Allow the user to do a `/report <email address>` in the console and that will give him the current list of players and let the admin know how to contact them.
- In that list, all *red* players will be considered reported as hacking by someone already
- In that list, all *white* players will be those not reported.
- Selecting someone from the list will give them a question: Do they have a demo?"
* When reported, this script will insert an entry into a MySQL table. It will contain the following:
- Reporters Steam ID
- Reporters Alias
- Reporters Email Address
- Eleged Hackers Steam ID
- Eleged Hackers Alias
- Timestamp
- Server Name
- Demo
- Verified [So an admin will know if this instance has already been investigated or not)
Now, those that have PHP (or some dynamic language) could *easily* query the database and have it do events, like email someone or IM someone, depending on the capabliity of the language.
You would setup a cron job (or scheduled task) to parse the database for new entries and then do as you wish however often you want. I would probably suggest once every 5 minutes.
I'm thinking of writting this becuase I *hate* leaving a server with a demo to post on the forums, come back and the server is full. It takes just long enough to get kicked by being idle. <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad-fix.gif' border='0' style='vertical-align:middle' alt='sad-fix.gif' /><!--endemo-->
This also gives other players the ability to help -- or whomever ou choose to help. This would allow your regulars (those you trust a little more than the anonymous players) players to help -- or something.
Thoughts? Suggestions?
Would anyone use this? (ie, is this worth my time?)
<!--emo&::tsa::--><img src='http://www.unknownworlds.com/forums/html/emoticons/tsa.gif' border='0' style='vertical-align:middle' alt='tsa.gif' /><!--endemo--> <!--emo&::hive::--><img src='http://www.unknownworlds.com/forums/html/emoticons/hive5.gif' border='0' style='vertical-align:middle' alt='hive5.gif' /><!--endemo-->
* Allow the user to do a `/report <email address>` in the console and that will give him the current list of players and let the admin know how to contact them.
- In that list, all *red* players will be considered reported as hacking by someone already
- In that list, all *white* players will be those not reported.
- Selecting someone from the list will give them a question: Do they have a demo?"
* When reported, this script will insert an entry into a MySQL table. It will contain the following:
- Reporters Steam ID
- Reporters Alias
- Reporters Email Address
- Eleged Hackers Steam ID
- Eleged Hackers Alias
- Timestamp
- Server Name
- Demo
- Verified [So an admin will know if this instance has already been investigated or not)
Now, those that have PHP (or some dynamic language) could *easily* query the database and have it do events, like email someone or IM someone, depending on the capabliity of the language.
You would setup a cron job (or scheduled task) to parse the database for new entries and then do as you wish however often you want. I would probably suggest once every 5 minutes.
I'm thinking of writting this becuase I *hate* leaving a server with a demo to post on the forums, come back and the server is full. It takes just long enough to get kicked by being idle. <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad-fix.gif' border='0' style='vertical-align:middle' alt='sad-fix.gif' /><!--endemo-->
This also gives other players the ability to help -- or whomever ou choose to help. This would allow your regulars (those you trust a little more than the anonymous players) players to help -- or something.
Thoughts? Suggestions?
Would anyone use this? (ie, is this worth my time?)
<!--emo&::tsa::--><img src='http://www.unknownworlds.com/forums/html/emoticons/tsa.gif' border='0' style='vertical-align:middle' alt='tsa.gif' /><!--endemo--> <!--emo&::hive::--><img src='http://www.unknownworlds.com/forums/html/emoticons/hive5.gif' border='0' style='vertical-align:middle' alt='hive5.gif' /><!--endemo-->
Comments
Pretty neat, though.
The code itself would be fairly simple.
Here is how it works:
someone dues `/report someone@domain.com`
The script queries the database for anyone already reported that matches this alias or steam id. It would throw that information in an array. The select would be somethign like:
SELECT hacker_id, hacker_alias FROM some_table WHERE eleged_id=hacker_id or eleged_alias=hacker_alias;
hmm.. thinking about it, perhaps a menu isn't the way to go -- perhaps everyting should be the console.
Perhaps:
/report_list -- would display those reported in this current session that matched the alias and/or ID (simple select query)
/report_submit -- would allow yu to submit a eleged report. (simple insert query)
hmm
maybe try the AMX\whatever forums