Shifu-Hacks Blog

愚かさは博学ではない。

The end

Posted by compactwater on July29 2008

Unfortunately due to personal issues I can no longer continue my blog. However, this does not mean I am leaving. If you wish to contact me, you can do so by e-mail. My blog will stay up, I may edit a post or two, remove spam and such, but I will not be updating for awhile.

I hope you enjoyed reading and learned something.

– compactwater

Posted in Uncategorized | 5 Comments »

Firefox 3 Download Day 2008!

Posted by compactwater on June9 2008

Mozilla Firefox 3 Download Day 2008. Point being: Get over 1600000 (one-million six-hundred thousand) downloads in 24 hours to set a new Guinness world record. Pledge your email, spread the word! Download Day begins June 17th, don’t forget to download!

(Click the foxy for more info)

Download Day
Firefox 3 Download Day 2008!

Posted in Uncategorized | 2 Comments »

OdinMS Source v.53 (Release 0.5)

Posted by compactwater on April29 2008

Note: This same method will work for future releases and updates, so the title may be misleading to some.

And so I’ve decided to write a simple tutorial on how to start a private server from the OdinMS source files, because not many people can understand all the “complicated” stuff behind it. Follow this step-by-step, make sure you do things exactly. At the bottom of this post I will include common errors, and their fix.

Download the following and extract the files to a temporary folder. You will need these for later.

Install MySQL and the Query Browser (or administrator). This will be needed for the game’s database, remember all information you use! Be sure to create constant backups of your database in case problems arise later on. You can do this by selecting your database (default: odinms) and choosing backup, or dump database. It will output a ‘.sql’ file in most cases, keep this file safe as it contains all user information, although encrypted with SHA1, it can still be forced. To import the database from a backup (included in the source) use “File->Open Script”. It will be labeled ‘odinms.sql’. This will automatically create all the tables.
See:
\
Once completed, goto your OdinMS source folder and edit “db.properties” with any text editor and change the information to what you created for your database.
url=jdbc:mysql://127.0.0.1:3306/odinms
user = root
password = whatever_you_used
If this is not done correctly, you will not be able to connect to the database.

Next to edit is how many channels you want to run, be warned more channels will cause more lag. Open “channel.properties” and change this line:
net.sf.odinms.channel.count=2
You will also need to add a new row for
net.sf.odinms.channel.2.key=release3

To change the meso and experience rate, open “world.properties”. This is also where you need to change
net.sf.odinms.channel.net.interface= 192.168.1.105
to your local IP if needed.

So on, now to the batch (.bat) files. Edit them in a text editor (clicking will execute them).
change these lines
-Dnet.sf.odinms.wzpath=wz\.
-Djavax.net.ssl.keyStorePassword=passwd
-Djavax.net.ssl.trustStorePassword=passwd
Unless you have made any customizations. You may also want to add “pause.” to the very last line to see any errors that occur. If you wish for the server to automatically restart itself upon crashing, add this line to the end, only do this if you know the server is working, else it’ll return the same error repetitively.
kill.bat
It’s that simple. And here’s kill.bat, although this is only a simple work-around.
TAKSKILL /F /IM “java.exe”
start launch_world.bat
start launch_login.bat
start launch_channel.bat
exit

In your MapleStory folder, copy all the .WZ files into your OdinMS folder, to keep it organized make a folder called ‘wz’ and put them in there. OdinMS reads from the WZ files for information.

Find your Java installation (default: c:\program files\java). There should be a few folders, copy ‘loca_policy.jar’ and ‘US_export_policy.jar’ from the Java Cryptography Extension to ‘/lib/security’ and ‘/jre/lib/security’ in all the folders. It should look something like this, depending on what you’ve installed.
Java Folder

Next, you can either make the key files, or download a pre-made key file. It is recommended you make your own. You can get one here, provided by Leena of CEF. Copy the file six times into the OdinMS source folder, and rename them to:

  • world.keystore
  • channel.keystore
  • login.keystore
  • world.truststore
  • channel.truststore
  • login.truststore

Although it isn’t really necessary to create multiple copies of the file, as you can use it for all of the different servers’ keystores and truststores. The password for the world, channel, and login will be “passwd”.

Next, copy “mina-core-1.1.7.jar”, “mysql-connector-java-3.1.14-bin.jar”, “slf4j-api-1.5.0.jar”, and “slf4j-jdk14-1.5.0.jar” to the dist folder in your OdinMS source folder. Rename them accordingly:
mina-core-1.1.7.jar->mina-core.jar
mysql-connector-java-3.1.14-bin.jar->mysql-connector-java-bin.jar
slf4j-api-1.5.0.jar->slf4j-api.jar
slf4j-jdk14-1.5.0.jar->slf4j-jdk14.jar

This is the last step, the rest is just information on adding accounts and enabling others to play on your server.

To modify an account’s password, use this in SQL:
UPDATE accounts SET password = SHA1(‘password’) WHERE name=’admin’

Or, to create an account with information, use:
INSERT INTO accounts (name, password, birthday, email, banreason, macs)
VALUES(‘username’, SHA1(‘password’), ‘2001-09-11’, ‘person@mail.com’, ‘notbanned’, ‘macaddr’);

This will change the default “Admin” account’s password to “password”. It is a good idea to change this, or even delete this account, as it can lead to vulnerabilities if accessed. The second code will create an account with the username “username” and password “password” as well as the other needed information. If you want to give an account GM access, simply enter this:
UPDATE accounts SET gm=1 WHERE name=’username’;

Having others connect to your server: This is limited by two things. Your router (if you have one) and your ISP. If your ISP is very restrictive, then you just cannot host a server for others to play on. If you have a router, you will need to forward ports to your computer’s local IP address. The router’s address is typically ‘192.168.1.1’, if you are asked for a password, it should be the default for your router, usually printed on the router itself. If the default password does not work, try resetting it. Your local IP will look something like: 192.168.1.105, and may change from time to time if you do not register it to your MAC address.

Once on your router, forward ports 8484, and 8888 to your local IP. You can goto a site (such as ip-adress.com) to find out your IP. There are two ways you can let others connect to your server with this, hex editing the client’s IP to yours, or executing it through CMD like so: “MapleStory.exe 204.16.241.16 8484”, although you could use a batch (.bat) file to do it for you. Another method is with Hamachi, or such applications. Use your Hamachi IP rather than your actual IP.

Common Errors, and fixes:

Currently, there are no common enough errors to report. Feel free to e-mail me if you have troubles, and I will try my best to find a fix and add it here.

Posted in General Programming | 17 Comments »

ImagineMS

Posted by compactwater on April4 2008

ImagineMS is a MapleStory private server project started by Zed, I am following him around like a fan-boy as an under-achieving developer. We have a dedicated unmetered dual-core box in California, USA.

Website: http://www.imaginems.net/
IRC: irc://irc.rizon.net/imaginems

Posted in Uncategorized | 2 Comments »

OdinMS and LocalMS – MapleStory Private Servers

Posted by compactwater on February11 2008

(If you are looking for help on the OdinMS source, you can find that here.)

Unfortunately, OdinMS has split up. The developers and Paul are no longer together, and have created separate servers. Account registrations are open, to register your forum account must be active for at least three days (OdinMS). Any unreasonable comments on this post will be ignored.

LocalMS:

Simon:
Drama has happened, and the devs and Paul have gone their separate ways.

OdinMS:

Matze:

Paul, our old hoster, doesn’t like it anymore that he is not the boss and can’t do whatever he wants.
There already have been many arguments between him and us and the last straw was that he stripped us of our administrator rights in the forum.
Well the problem with that is: It’s not his server, he was just hosting it. Serpendiem and me are the only developers and guess what? Yes, this gives US the right to do whatever we want.

You can get more information here or here.

LocalMS: odinms.org or localms.org (Thanks, Draus)
OdinMS: odinms.de

Posted in Uncategorized | 35 Comments »

Kathos MS

Posted by compactwater on February2 2008

A short note to anyone wondering about Kathos MS, the Private Server by CJ (aka [MSS] CJ), it was a fake. By scamming though donations, and attempting to get hits, the domain name was probably sold for a high price. Unfortunately if you donated, there is no legal action you can take to get your money back, try to be more careful with who you trust over the Internet.

Posted in Uncategorized | 1 Comment »

Pown Alluc (dot) Org Copy

Posted by compactwater on January21 2008

Ever want to completely rip-off and copy pown.alluc.org? I didn’t think so, but you can anyways. Included in this file is a copy of pown.alluc.org and the first 10 flashes on the site. To use this, you must have PHP (and file access) on your server. The file “source.res” contains source information for each flash, each line goes with each flash ID, so putting something on line 10 will show up as the source for flash 10.
Note: Though I am the creator of this specific file, I do not take any claim to its origin.

Edit: Seems the pown alluc site has changed up a bit. However, I will not be updating this, as functionality is more important than looks.

Pown Alluc dot Org copy

http://pown.alluc.org
Download pown!

Posted in Webmastering | 4 Comments »

Running Delphi on Vista

Posted by compactwater on December29 2007

Fortunately, I have a new computer, unfortunately, it has Vista pre-installed.

First step, get rid of Anti-virus (this may not be necessary) McAfee will kill Delphi upon: Installation, Compiling, Debugging, and close it for renaming files- don’t understand why it’s so “evil”, but if you want Delphi, the Anti-virus has to go.
Download and run this: http://download.mcafee.com/products/licensed/cust_support_patches/MCPR.exe
You will be asked to restart your computer, do so. Check if it was completely removed, if not try the legendary Google to solve this part of the problem.

Second, goto your Delphi installation folder, and find Delphi32.exe in the bin folder. Right click=> Properties, and goto the compatibility tab. Check “Run this program in compatibility mode for:” and choose Windows XP SP 2. Also check “Run this program as an administrator”.

You can now use Delphi on Vista!
Tested with Borland Delphi 7 Enterprise Edition on Microsoft Windows Vista Home Premium.

Posted in General Programming | 16 Comments »

File Download Service (Proxy)

Posted by compactwater on December16 2007

This is not really a proxy, nor anywhere near as good. It can download one file at a time to your server from another server, so it can be accessed when the other server is unavailable (or blocked). This is meant for personal use, and should be passworded to prevent from misuse by someone who may want to harm your computer or server. The file comes with everything you will need and the downloader itself.

Readme.txt:
Place download.des in your cgi-bin (or it will not work), and the php files into a folder on your server. Be sure you have a folder named “down” (or what you may have changed it to) within that same folder, or the downloader will not work. You will also need to have php installed on your server. If you are running on Linux you will need to configure download.des to run with Wine.

In write.php change the password to whatever you like. Don’t use “.$’ in it. If write.php has troubles writing to down.ini, then you should replace \\down.ini with your drive letter (c:\down.ini). You can change where the files are downloaded to in download.php, though it will NOT make a new folder if the chosen directory does not currently exist.

When used, download.des will return a 500 error, but the program was still executed and the file downloaded.

Download FDS: Here

Posted in General Programming, Webmastering | 1 Comment »

Hash Gewalt 1.2

Posted by compactwater on December5 2007

Hash Gewalt is a console application used for cracking an MD5 hash. It runs using three parameters, executed through cmd in Windows, or with Wine in Linux. Example:
Gewalt.exe -hash /DictionarySize /HashLength
Gewalt.exe
7f138a09169b250e9dcb378140907378 /62 /3

Which would return “MD5” in the log file. All hashes are logged to “gewalt.ini” within the same directory as the application (It will goto x:\windows or x:\ if it is in System32). The Dictionary Size is how many characters Hash Gewalt will search through before it returns to the first character. 25 (0-25, meaning full 26) would search though the first 26 lowercase English alphabet letters.

Supported characters for dictionary size:

  • a b c d e f g h i //9
  • j k l m n o p q r s t u v w x //15
  • y z A B C D E F G H I J K L M N //16
  • O P Q R S T U V W X Y Z 0 1 2 3 //16
  • 4 5 6 7 8 9 (EN SPACE) //6 (line) 62 (basic)
  • ` ! @ # $ % ^ & * ( ) _ + ~ – //15
  • = [ ] \ | ; : ” < > ? , . / //15
  • € ƒ Š Œ Ž ‘ ’ “ ” ™ š œ ž Ÿ, ¡ ¢ //16
  • £ ¤ ¥ ¦ § ¨ © ª « » ¬ ® ¯ ° ² ³ //16
  • ´ µ ¶ ¹ ¼ ½ ¾ ¿ À Á Â Ã Ä Å Æ //15 (line) 70 at ¿ (medium)
  • Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö //16
  • × Ø Ù Ú Û Ü Þ ß à á â ã ä å æ ç //16
  • è é ê ë ì í î ï ð ñ ò ó ô õ ö ø //16
  • ù ú û ü ý þ ÿ //7 (line) 194 (advanced)

The more characters you use, the slower the cracking speed will be, though there is a higher possibility the hash will be found (only if it has less common characters). The hash size can be up to 64, although a hash of that length would take very long to crack. If the hash size is unknown, use ?, and Hash Gewalt will start from 1 to 24 until the hash is cracked. The application will automatically close when it has finished, check the log for the cracked hash. The cracking speed depends on your computer’s speed, and Hash Gewalt’s priority. Setting the priority higher will crack the hash faster, but will use much more processing power. Cracking can take from a few minutes to hours, leave the application running and it will eventually crack the hash.

To test it out, you can make an MD5 Hash.

Through CMD:
Hash Gewalt 1.2

Log file example:
Hash Gewalt 1.2 INI

Download it: From this place

Posted in General Programming | 6 Comments »