Hey guys, Just a lil troll script here :D
Please tinker with the array,
I cant seem to get it to declare properly D:
int main()
{
string poorSod = getTargetIP();
message(poorSod,RickRoll(getIterations()));
}
string RickRoll(int lineNo)
{
string damnSong[];
// insert your own lyrics here! VVVVVVVVVVVVVV
damnSong[] = {"We're no strangers to love",
"You know the rules and so do I",
"A full commitment's what I'm thinking of",
"You wouldn't get this from any other guy",
"I just wanna tell you how I'm feeling",
"Gotta make you understand",
"Never gonna give you up",
"Never gonna let you down",
"Never gonna run around and desert you",
"Never gonna make you cry",
"Never gonna say goodbye",
"Never gonna tell a lie and hurt you",
"We've know each other for so long",
"Your heart's been aching",
"But you're too shy to say it",
"Inside we both know what's been going on",
"We know the game and we're gonna play it",
"And if you ask me how I'm feeling",
"Don't tell me you're too blind to see",
"Never gonna give you up",
"Never gonna let you down",
"Never gonna run around and desert you",
"Never gonna make you cry",
"Never gonna say goodbye",
"Never gonna tell a lie and hurt you",
// "(Repeat Chorus)",
"Give you up, give you up",
"Give you up, give you up",
"Never gonna give,",
"Never gonna give, give you up",
"Never gonna give,",
"Never gonna give, give you up",
// "(Last four lines repeat)",
"I just wanna tell you how I'm feeling",
"Gotta make you understand"};
// "(Chorus times three)"
int songLength = 0;
for (int x = 0; damnSong[x] != null; x++)
{
songLength++;
}
while (lineNo > songLength)
{
lineNo = lineNo - songLength;
}
return (damnSong(lineNo));
}
Enjoy, and please post results.
... really ...
And also the code tags do not appear to work for me either :D
RickRollv0.5
Bring it on:
You probably want to put one of these in finalise:
deleteLogs(getSourceIP());
or
showChoices();
Put this in your Continue:
int main()
{
// comment for testing
string poorSod = getTargetIP();
//string poorSod = getSourceIP();
message(poorSod,RickRoll(getIterations()));
}
string RickRoll(int lineNo)
{
// insert your own lyrics here! VVVVVVVVVVVVVV
string damnSong[] = {"We're no strangers to love",
"You know the rules and so do I",
"A full commitment's what I'm thinking of",
"You wouldn't get this from any other guy",
"I just wanna tell you how I'm feeling",
"Gotta make you understand",
"Never gonna give you up",
"Never gonna let you down",
"Never gonna run around and desert you",
"Never gonna make you cry",
"Never gonna say goodbye",
"Never gonna tell a lie and hurt you",
"We've know each other for so long",
"Your heart's been aching",
"But you're too shy to say it",
"Inside we both know what's been going on",
"We know the game and we're gonna play it",
"And if you ask me how I'm feeling",
"Don't tell me you're too blind to see",
"Never gonna give you up",
"Never gonna let you down",
"Never gonna run around and desert you",
"Never gonna make you cry",
"Never gonna say goodbye",
"Never gonna tell a lie and hurt you",
// "(Repeat Chorus)",
"Give you up, give you up",
"Give you up, give you up",
"Never gonna give,",
"Never gonna give, give you up",
"Never gonna give,",
"Never gonna give, give you up",
// "(Last four lines repeat)",
"I just wanna tell you how I'm feeling",
"Gotta make you understand"//,
// "(Chorus times three)"
};
int songLength = 0;
for (int x = 0; damnSong[x] != null; x++)
{
songLength++;
}
while (lineNo > songLength)
{
lineNo = lineNo - songLength;
}
return (damnSong[lineNo]);
}
Enjoy your trolling ;D
???
Profit!
RickRoll.Performance Updates
Instead of:-
int songLength = 0;
for (int x = 0; damnSong[x] != null; x++)
{
songLength++;
}
Can't you just use:-
int songLength = length(damnSong);http://www.hackwars.net/wiki/index.php/Length()
for added bonus, don't forget to add something like this to finalise:-
message(getTargetIP(),"You just got Rick Rolled");i have one of these
i actually have one of those scripts laying around on my HDD.. reads the contents of a file line by line and sends them to the target...
Theory is when you know something, but it doesn't work Practice is when something works, but you don't know why Programmers combine theory and practice: Nothing works and they don't know why
---
Working on
http://MineOSPlus.org & http://ABsoftworks.com
x]
Nice one matie ;D
Scripting is something I've only just begun to learn C: