Just think through logically, and it should be fairly easy. I'll be assuming that this is a malicious script that you want, if not, then you need to read up on the game, because you cannot install any bank scripts on your PC to intercept transfers.

The bank script is divided into 3 parts, Deposit, Withdraw and Transfer. In this one i will show you how to make all 3 intercept a small amount of the money and send it to your account. We'll start off with the basic deposit script.

An ordinary working bank script will not consist of much code at all, keep in mind this would be to deposit, nothing more, nothing less, the code for this would be.

int main(){
lowerDeposit(getSourceIP(), getAmount() );
}

All this code does is gets the IP of the machine it's stored on, and the amount the user wants to deposit and deposits it straight in. Later on you can instead assign them variables like this to cut costs if you need to do more with the code

Doing that when you have lots of code will cut compiling costs massively and could even simplify large blocks of code later on. So, all said and done, lets deal with the malicious scripts!

Our malicious script must be able to transfer the money to your account successfully, but must also make the victim believe nothing is wrong. As such taking 100% will give a massive wield, but you'll get caught, the code will be scrapped and most likely, you'll be attacked for the money back. For this script lets assume that we want to take of 15% of the deposit to be safe. Obviously we don't want to take more, otherwise the victim will catch you, so as such we want the user to recieve 85% of the deposit, while a nice 15% goes straight to you. to do this we need to include 2 deposits that looks like this

That is all you have to do, but i would personally take extra precautions and catch some noobs out, if they notice the reduce amount in thier account, to do this i would add in a message to say that the deposit was sucessful, but some was taken off for our fake taxes. to do this we use the code

IP=getSourceIP();
message(IP, "Deposit Successful! 15% was taken off for handling charges!");

Again, put that in our code and voila, we have a complete deposit code to scam them!

Job done, We now have our deposit code, now we have this we can easily change it into our withdrawal and transfer code, for our withdrawal code we have to replace lowerDeposit() with withdraw() and replace any mention in the message of deposit with withdrawal, it should look like this

And there we go, there is all of the malicious bank code, if you managed to read through all of this give yourself a pat on the back, and a slice of internet bacon. Through doing this you are more likely to do much better codes and will become a much better programmer, And if you just copied and pasted all this, No internet bacon for you!

-

----------------------------------------------------------------------
Proud Pastafarian in The Church Of The Flying Spaghetti Monster.