Hey MPGH! This is my first post so I thought I'd make it worthwhile. Here is a quick tutorial on how to make a Skype Spammer in C#.
First, you will need the Skype4Com library. I will provide a link at the end of the tutorial. Go ahead and make a new Windows form project in Visual Studio.
Once that has been made, go ahead and reference the Skype4Com library. Follow the tutorial in the spoiler below if you don't know how to do that.
First, go to "Project" -> "Add Reference".
Then, click the "Browse" tab. Once there, find where you downloaded the Skype4COM library and select it.
Once you've done that, click "OK". You're ready to begin coding!
You need to now import the Skype4COM library so you can actually use it. You can do this by adding this to the top of your code.
Code:
using SKYPE4COMLib;
Now you need to attach Skype. Double click on the form to get to the "Form1_Load" method. Once there, you need to declare the Skype variable. Do this by entering:
Code:
//I entered a message box so it doesn't crash instantly.
MessageBox.Show("Please allow the program access to Skype.");
Skype skype = new Skype();
This allows you to use the Skype methods. After that, you need to attach the program to the Skype client. To do this, you need to enter:
Code:
skype.Attach();
That will open up a yellow bar in the Skype client, saying something along the lines of "<Program name> is trying to access Skype - (allow button) (decline button)". Now you need to get the Skype contact list. I do this using a listbox and in a new method. So, make a listbox in your form and then in the code, make a new method called "getContacts(Skype skype)".
Code:
List<string> Contacts = new List<string>();
public void getContacts(Skype skype) {
}
Now that's done, we need to get the contacts. We will do this using a for loop. Place the following in the getContacts method:
Code:
//This goes through all the contacts in the contacts list
for (int i = 0; i < skype.HardwiredGroups.Count; i++)
{
//This checks if the user is a friend or not
if (skype.HardwiredGroups[i + 1].Type == TGroupType.grpAllFriends)
{
//If they are, then do this loop
for (int j = skype.HardwiredGroups[i + 1].Users.Count; j > 0; j--)
{
//This adds the contact to the Contacts list we declared before.
Contacts.Add(skype.HardwiredGroups[i + 1].Users[j].Handle);
}
}
}
//This makes the listBox show the contents of the Contact list.
listBox1.DataSource = Contacts;
Now we need to make getContacts run. We do this by putting the following in the Form1_Load void. (Below skype.Attach().
Code:
getContacts(skype);
Once this has been done, we need to make a new void. This will actually send the message.
Code:
//aot stands for amount of times.
public void sendMessage(string message, string user, int aot, Skype skype)
{
for(int i = 0; i < aot; i++)
{
skype.sendMessage(user, message);
}
}
Now, we need to add 2 textboxes, and 2 buttons. (The highlighted text box is textBox2.)
Double click on Button1 and enter the following code.
Code:
Skype skype = new Skype();
int i = listBox1.SelectedIndex;
string selectedUser = Contacts[i];
string message = textBox1.Text;
int aot = int.Parse(textBox2.Text);
sendMessage(message, selectedUser, aot, skype);
After this, you now need to make another void named "massMessage".
Code:
public void massMessage(string message, int aot, Skype skype)
{
for(int i = 0; i < aot; i++)
{
for(int i2 = 0; i < Contacts.Count; i2++)
{
skype.sendMessage(Contacts[i2], message);
}
}
}
Now, double click on Button2 to open the code for it. Enter the following:
Code:
Skype skype = new Skype();
string message = textBox1.Text;
int aot = int.Parse(textBox2.Text);
massMessage(message, aot, skype);
And that's it! You have now successfully made a working Skype Spammer/Mass messager! Please leave feedback/thanks if this has helped you or it isn't very good! I'm also sorry if this has been made before, I forgot to check.
Thanks for the tutorial, hopefully I can expand on it and release a Skype bot with more features.
MPGH Staff History: Minion: 02-12-2013 - 6-28-2013 Former Staff: 6-28-2013 - 7-14-2014 Minion: 7-14-2014 - 1-3-2015 Minion+: 1-3-2015 - 6-1-2015 Moderator: 6-1-2015 - 10-2-2016 Global Moderator: 10-2-2016 - Current
Current Sections: DayZ Mod & Standalone Hacks & Cheats
BattleOn Games Hacks, Cheats & Trainers
Minecraft Hacks
Other Semi-Popular First Person Shooter Hacks
Blackshot Hacks & Cheats
Need For Speed World Hacks
Other First Person Shooter Hacks
CounterStrike: Global Offensive Hacks
Garry's Mod Hacks & Cheats