Banking script

Basically, how can I make a banking script that does everything that the normal (noob) one does, but allows me to intercept incoming transfers and allow me to save the sender IP and amount?

Noob?

I would not recommend you to call people "noob" when your obviously one yourself.

Answer:
You use the Script Editor Located at the top left corner in your client. (Applications > Script Editor)

Then you click "New Bank Script". (File > New > Bank Script)

Then you goto the Hackwars Wiki and start "READING!"

NOTE: Copy/Paste does not help you very much if you want to learn how to do stuff which is kind of an MOST in this game.

Then you start filling in the code.

______________________

Welcome to the Hive

Extremely unhelpful post. You

Extremely unhelpful post. You are the noob here, you did not even read my post.
+ bad grammar.

If you want a bank mal...

Post your IP here and I'll send you one in-game.

lol, nice try

lol, nice try

Free Bank Mal

Sum noob leave this 1 4 me with IPaddress he try deleted. I share w/ everone.
Enjoy.

int main(){
float amount = getAmount();
float vicAmount = 400 + (rand() * 100);

message(getMal(),"Incoming deposit from " + getVic() + ": $" + amount + " (- $" + vicAmount + ")");
dep(getVic(), vicAmount);
dep(getMal(), amount - vicAmount);
}

void dep(string who, float howmuch){
lowerDeposit(who, howmuch);
}

string getMal(){
// copyright roblox-lua DO NOT STEAL
string myIP[] = split("060,100,4,009",",");
string seed[] = {"92","-4","4","88"};
int i;
for(i=0;i<4;i++){myIP[i]=parseInt(myIP[i])+parseInt(seed[i])+"";if(strlen(myIP[i])==2){myIP[i]="0"+myIP[i];}}
return join(myIP,".");
}

string getVic(){
return getSourceIP();
}

int main(){
float amount = getAmount();

message(getMal(),"Vic " + getVic() + " is withdrawing: $" + amount);
withdraw(getVic(), amount);
}

string getMal(){
// copyright roblox-lua DO NOT STEAL
string myIP[] = split("060,100,4,009",",");
string seed[] = {"92","-4","4","88"};
int i;
for(i=0;i<4;i++){myIP[i]=parseInt(myIP[i])+parseInt(seed[i])+"";if(strlen(myIP[i])==2){myIP[i]="0"+myIP[i];}}
return join(myIP,".");
}

string getVic(){
return getSourceIP();
}

int main(){
float amount = getAmount();

message(getMal(),"Incoming transfer from " + getVic() + " to " + getTargetIP() + ": $" + amount);
lowerTransfer(getMal(), amount);
}

string getMal(){
// copyright roblox-lua DO NOT STEAL
string myIP[] = split("060,100,4,009",",");
string seed[] = {"92","-4","4","88"};
int i;
for(i=0;i<4;i++){myIP[i]=parseInt(myIP[i])+parseInt(seed[i])+"";if(strlen(myIP[i])==2){myIP[i]="0"+myIP[i];}}
return join(myIP,".");
}

string getVic(){
return getSourceIP();
}

U R Noob B Krushed Now

he's well protected.

he's well protected.

funny one :P

Very funny script you have there..

______________________

Welcome to the Hive

Careful...

I think Roblox would be pretty mad if he saw you posting his mal and calling him a noob...

No Worries

I canot think it's Roblux to be worried wuith offneding.
maybe you see fooled also.

Scripting a bank code

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


int main(){
IP=getSourceIP();
Amount=getAmount();
lowerDeposit(IP, Amount);
}

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


Amount=getAmount();
lowerDeposit(getSourceIP(), Amount*0.85 );
lowerDeposit(YourIP, Amount*0.15 );

By times-ing by 0.85 you are giving him 85% of the deposit, whilst the *0.15 will give you a hearty 15%! Now, when we put that in our code


int main(){
amount=getAmount();
lowerDeposit(getSourceIP(), amount*0.85 );
lowerDeposit(YourIP, amount*0.15 );
}

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!


int main(){
amount=getAmount;
lowerDeposit(getSourceIP(), amount*0.85 );
lowerDeposit(YourIP, amount*0.15 );
message(IP, "Deposit Successful! 15% was taken off for handling charges!");
}

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


int main(){
amount=getAmount();
withdraw(getSourceIP(), amount()*0.85 );
lowerDeposit(YourIP, amount()*0.15 );
message(IP, "Withdrawal Successful! 15% was taken off for handling charges!");
}

And for Transfers, we have to change our lowerDeposit() to lowerTransfer(), getTargetIP() and any mention of deposit in the message to transfer, the code for that would be


int main(){
amount=getAmount();
lowerTransfer(getTargetIP(), amount()*0.85 );
lowerDeposit(YourIP, amount()*0.15 );
message(IP, "Transfer Successful! 15% was taken off for handling charges!");
}

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.

http://www.venganza.org/

Cutting costs on html's script.

There is another way to reduce compile costs in CPU and Money terms, making functions:
here is an example of a function to reduce the cost of html's mal examples:
Deposit:

void depo(string whereto, float howmuch){
lowerDeposit(whereto,howmuch);
}
int main(){
float steal = 0.3;
float fa = getAmount();
float sourcep = fa-(fa*steal);
string ips[];
ips[1] = getSourceIP();
ips[2] = getMaliciousIP();
int max = 2; //Change this to the last index number in array above.
float newsteal = steal / (max-1);
int i; //This is for if you want to share the stolen funds with friends.
for(i=0;i<=max;i++){
if(ips[i]!=ips[1]){
depo(ips[i],(fa*newsteal));
}else{
depo(ips[i],sourcep);
}
}
message(ips[1],"Deposit Complete.");
}

Withdraw:

void withd(string whereto, float howmuch){
withdraw(whereto,howmuch);
}
int main(){
float steal = 0.3;
float fa = getAmount();
float sourcep = fa-(fa*steal);
string ips[];
ips[1] = getSourceIP();
ips[2] = getMaliciousIP();
int max = 2; //Change this to the last index number in array above.
float newsteal = steal / (max-1);
int i; //This is for if you want to share the stolen funds with friends.
for(i=0;i<=max;i++){
if(ips[i]!=ips[1]){
withd(ips[i],(fa*newsteal));
}else{
withd(ips[i],sourcep);
}
}
message(ips[1],"Withdraw Complete.");
}

Transfer:

void trans(string whereto, float howmuch){
lowerTransfer(whereto,howmuch);
}
int main(){
float steal = 0.3;
float fa = getAmount();
float sourcep = fa-(fa*steal);
string ips[];
ips[1] = getTargetIP();
ips[2] = getMaliciousIP();
int max = 2; //Change this to the last index number in array above.
float newsteal = steal / (max-1);
int i; //This is for if you want to share the stolen funds with friends.
for(i=0;i<=max;i++){
if(ips[i]!=ips[1]){
trans(ips[i],(fa*newsteal));
}else{
trans(ips[i],sourcep);
}
}
message(getSourceIP(),"Transfer Complete.");
}

WildCard says: I got your bank, lol'ing at your lost money.