![]() | Register | FAQ | Members | Social Groups | User Map | Calendar | Search | Today's Posts | Mark Forums Read |
| | | LinkBack | Thread Tools | Search Thread | Language |
| Sponsored Links |
| | #1 |
![]() | One problem, someone released a program which can be used on games like mine to crash them. Basically it logs in hundreds of accounts using the name SYIPkpker(random letter) This is getting really annoying as ive been attacked twice in the last 2 days so i was wondering is there a way i could make a If statement so if the name began with SYI it would block the connection and send it back ? P.S. Im quite new to java Thanks for your help Brendan |
| |
| | #2 | |
![]() Join Date: Aug 2005 Location: Alton, Hampshire
Posts: 1,427
Thanks: 124
Thanked 93 Times in 88 Posts
Rep Power: 28 | Quote:
String (Java 2 Platform SE v1.4.2) Or use regular expressions: Lesson: Regular Expressions (The Java™ Tutorials > Essential Classes) Is this your first go at programming? You might find it a little tricky to wade right in with trying to fix someone else's code, you might want to write a bit of your own code first to get the idea of what you're doing. -- David Hicks | |
| |
| | #3 |
![]() Join Date: Nov 2007 Location: Preston
Posts: 98
Thanks: 2
Thanked 4 Times in 4 Posts
Rep Power: 3 | Id just drop the IP via a htaccess for iptables (if you have root). You could even filter GET/POST via htaccess. |
| |
| | #4 |
![]() | Umm thats all confusing to me. It is someone elses code but i have added things to it and edited others etc. Its basically just lots of .class files with a few other folders to store information on all characters. Its run using command prompt. A sample of the code can be downloaded here: http://www.brenzscape.co.uk/Server/client.java This is the main .class file in its Java form. Plz Help Thnx Brendan |
| |
| | #5 | ||
![]() Join Date: Aug 2005 Location: Alton, Hampshire
Posts: 1,427
Thanks: 124
Thanked 93 Times in 88 Posts
Rep Power: 28 | Well, yes, hence you need to go and learn more about games servers / general networking / Java / general programming! There's probably a forum somewhere dedicated to the piece of software you're using to run your server, would that have details of available patches or additions to the software? If not, you'll need to write one yourself. Quote:
Quote:
-- David Hicks | ||
| |
| | #6 |
![]() | Its just run from my home machine. Players access the game using our downloadable client or a webclient like the one on moparscape.org Brendan |
| |
| | #7 | |
![]() Join Date: Aug 2005 Location: Alton, Hampshire
Posts: 1,427
Thanks: 124
Thanked 93 Times in 88 Posts
Rep Power: 28 | As its own web server, or as part of another web server? Quote:
-- David Hicks | |
| |
| | #8 | |
![]() Join Date: Feb 2006
Posts: 682
Thanks: 21
Thanked 50 Times in 43 Posts
Rep Power: 18 | Quote:
To patch it, if someone else hasn't already, you'd need to search the java code for the nickname registration section, add a string comparison to find the SYI starting point of the nickname and simply exit the routine cleanly. | |
| |
| | #9 |
![]() Join Date: Nov 2007 Location: Preston
Posts: 98
Thanks: 2
Thanked 4 Times in 4 Posts
Rep Power: 3 | If you can access apachce/IIS logs paste the "attackers" IP and GET requests. easy way to generate a htaccess for you: .HTACCESS IP, Referrer, and Hotlink Banning Generator |
| |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [News] 'Sex pest' seal attacks penguin | ZeroHour | Jokes/Interweb Things | 2 | 02-05-2008 05:48 PM |
| One quick trick prevents AutoRun attacks | ChrisP | Windows | 0 | 29-11-2007 12:04 PM |
| Funky desktop effect, how? | Dos_Box | Windows Vista | 20 | 13-02-2007 01:51 PM |
| Spam attacks | mark | *nix | 5 | 15-12-2006 07:21 PM |
| Phone effect in Audacity? | dagza | Educational Software | 4 | 03-11-2005 06:50 PM |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search Thread |
|
|




