Posted 10 June 2014 - 05:49 AM
This is a simple, yet very insecure way to handle electronic banking. The current program allows money transfer through accounts (like one would expect through a bank program). There are two types of banking accounts: internal and external accounts. Internal accounts are accounts that are already on the bank computers, and external accounts are the accounts on the disks that are used for banking.
All files MUST be a .txt file (with a name in the first line, a password in the second line, and an amount of money 0 and above in the third line) in order to be read, and must be located on either disk/acc/ or acc/ from the main directory on the computer.
A very big problem with this easy way of banking is that anyone can just make themselves money by creating an acc directory, and making a .txt file with the required lines filled in properly. Also, stealing accounts would be easy, because all someone would need to do is take someone else's banking disk, put it in any disk drive, and open their .txt file. I would not recommend using this on any server until a way to block someone's ability to edit these essential files is discovered (perhaps by making them read-only, but that could be difficult).
Anyway, I hope this is useful to anyone looking for a bank. Please feel free to play around with the code a little, and please do tell me if there is a way to make these files read-only. Thanks!
**Please note that because of some fancy color changing stuff (which I later gave up on), this requires an advanced computer.**
pastebin: http://pastebin.com/Nq0TuZVa
All files MUST be a .txt file (with a name in the first line, a password in the second line, and an amount of money 0 and above in the third line) in order to be read, and must be located on either disk/acc/ or acc/ from the main directory on the computer.
A very big problem with this easy way of banking is that anyone can just make themselves money by creating an acc directory, and making a .txt file with the required lines filled in properly. Also, stealing accounts would be easy, because all someone would need to do is take someone else's banking disk, put it in any disk drive, and open their .txt file. I would not recommend using this on any server until a way to block someone's ability to edit these essential files is discovered (perhaps by making them read-only, but that could be difficult).
Anyway, I hope this is useful to anyone looking for a bank. Please feel free to play around with the code a little, and please do tell me if there is a way to make these files read-only. Thanks!
**Please note that because of some fancy color changing stuff (which I later gave up on), this requires an advanced computer.**
pastebin: http://pastebin.com/Nq0TuZVa