ive used the code you posted on here but for some reason its not working can you post the .pl file on here so its complete and ready to be copyed into the dir..
im a n00b at this and i couldnt get it to work
and also how to use the command i.e. !hack paul@paul.com or !hack, Bot: who would you like to hack etc.....
for Morphious Bot
Thanks Paul
sorry about that guys i realised what was wrong, is there any other way of making the bot pause on that commands instead of making the whole bot sleep?
sleep(5)
beceasue while the command is running the whole bot stops (Morhpious)
Well the loop will froze the bot...but you can do it with out loop but so it will send messages in like 1 sec but this wont be reealist because of deleteing and wodnloading... try it...
Well i dont know why but all my users got blocked and deleted so im changing addy for my bot but its aa owner command so i dont think thats the problem...
NOTE: To anyone who actually wants to use this code, there's 1 minor issue in the correction that Cer made:
Quote:
my @octets; #Cer didn't put the ';'
my $i = 4; while ($i < 0) { my $rand = int(rand(256)); @octets[$i] = $rand; $i--; }
my $fake_ip = join (".", @octets);
1. The while statement should be
Code:
while ($i > 0)
because you are going to be subtracting 1
Code:
$i--;
after each loop. 2. You should make
Code:
$i=3
, so that you get 4 numbers separated by three decimals, which would give you a real ip address, the way it is...gives you 4 numbers & 4 decimals (.) _________________ Anthony Arslan
@-Squared Enterprises
MacroHard Corporation
$self->sendmsg("Omg! $msg Has Been Hacked"); $self->sendmsg("Sorry $msg :'( im Sooo Sorry!"); sleep(6);
$self->sendmsg("Sniff..Sniff.. Im really Sorry"); $self->sendmsg("Forgive me!!! :'("); sleep(2);
$self->sendmsg("Aww! please Belive me.. I didnt wanna do it! Admin told me"); }
Converted to Andromeda. lol.
Quote:
124.302.201.4
That's a malformed IP address and anybody with a brain for the Internet will realize that right away.
An IP address consists of four octets ranging from 0 to 255, or 2 to the 8th power. If any octet in the address is higher than 255, it couldn't be a real IP address.
Just a little side note.
Here's a way to make a random IP address that follows those rules:
Or if you want to be REAL clever, you can use the one IP address that is true for each and every machine: 127.0.0.1, or the localhost IP address. Any computer that runs any kind of HTTP server can go to http://127.0.0.1/ and get to their server (but it's only local). Either way, 127.0.0.1 is the IP address for any computer. It's not the external IP that another computer would see though.
Anyway, in case I confused you with that 127.0.0.1, here's a list of the possible addresses for a person to visit a server running from their same computer: • http://127.0.0.1/ • http://localhost/ • http://computer-name/ (The name of their computer, i.e. "home-computer") • http://your external IP address/ (This would be their external IP address, the one others would see, and this is the only address a remote host can connect to, to access their server)
Ok um i think this is a stupid question, but can *lazy* post the whole code with the rand IP addy code in it plz
$self->sendmsg("Omg! $msg Has Been Hacked"); $self->sendmsg("Sorry $msg :'( im Sooo Sorry!"); sleep(6);
$self->sendmsg("Sniff..Sniff.. Im really Sorry"); $self->sendmsg("Forgive me!!! :'("); sleep(2);
$self->sendmsg("Aww! please Belive me.. I didnt wanna do it! Admin told me"); }
Converted to Andromeda. lol.
Quote:
124.302.201.4
That's a malformed IP address and anybody with a brain for the Internet will realize that right away.
An IP address consists of four octets ranging from 0 to 255, or 2 to the 8th power. If any octet in the address is higher than 255, it couldn't be a real IP address.
Just a little side note.
Here's a way to make a random IP address that follows those rules:
Or if you want to be REAL clever, you can use the one IP address that is true for each and every machine: 127.0.0.1, or the localhost IP address. Any computer that runs any kind of HTTP server can go to http://127.0.0.1/ and get to their server (but it's only local). Either way, 127.0.0.1 is the IP address for any computer. It's not the external IP that another computer would see though.
Anyway, in case I confused you with that 127.0.0.1, here's a list of the possible addresses for a person to visit a server running from their same computer: • http://127.0.0.1/ • http://localhost/ • http://computer-name/ (The name of their computer, i.e. "home-computer") • http://your external IP address/ (This would be their external IP address, the one others would see, and this is the only address a remote host can connect to, to access their server)
Ok um i think this is a stupid question, but can *lazy* post the whole code with the rand IP addy code in it plz why don't *lazy* not just show ip, because if the user knows there IP then they gonna know it fake aint they? _________________ Heroes NBC