Git Product home page Git Product logo

telegra_csharp_c2's Introduction

Telegra_Csharp_C2

Command and Control for C# Writing

Author: Leiothrix

Telegram: @Leiothrix

Twitter: @wh4am1

Team: QQ愛&Love

logo

VirusTotal check result

Don't pass it on to Virus Total anymore. I've tried it for you.

VirusTotal

link:https://www.virustotal.com/gui/file/ad1cd12bd6c8bee46ab35aa21a4fb48c2bcf9fdddbf1af82ad6f20eb75daa663/detection

All view

Install

Nuget download these package
using System.IO;
using Telegram.Bot;
using Telegram.Bot.Args;
using Telegram.Bot.Types.InputFiles;
using AForge.Video;
using AForge.Controls;
using AForge.Video.DirectShow;
Add related classes in 'References'
System.Drawing;
System.Windows.Forms;

How to used

Modify your Token to the program
 static void Main(){
            botClient = new TelegramBotClient("token");		//Your Token
            botClient.OnMessage += Bot_OnMessage;
            botClient.StartReceiving();
            Thread.Sleep(int.MaxValue);
}

1566355269804

have good fun.

Proxy

TelegramBotClient allows you to use a proxy for Bot API connections.

HTTP

You can pass an IWebProxy to bot client for HTTP Proxies.
	// using System.Net;

	var httpProxy = new WebProxy("https://example.org", 8080)
	{
     	Credentials = new NetworkCredential("USERNMAE", "PASSWORD")
	};
	var botClient = new TelegramBotClient("YOUR_API_TOKEN", httpProxy);

SOCKS 5

You can use an external NuGet package: HttpToSocks5Proxy provided
// using MihaZupan;

var proxy = new HttpToSocks5Proxy(Socks5ServerAddress, Socks5ServerPort);

// Or if you need credentials for your proxy server:
var proxy = new HttpToSocks5Proxy(
  Socks5ServerAddress, Socks5ServerPort, "USERNAME", "PASSWORD"
);

// Allows you to use proxies that are only allowing connections to Telegram
// Needed for some proxies
proxy.ResolveHostnamesLocally = true;

var botClient = new TelegramBotClient("YOUR_API_TOKEN", proxy);

How to compile

How to compile all DLL files into an EXE file
First,You need download ILMerge tool,this is a tool for merging all references to .NET programs.
ilmerge.exe /target:exe /out:TGbot.exe ConsoleApp1.exe  AForge.Controls.dll AForge.dll AForge.Imaging.dll AForge.Math.dll AForge.Video.DirectShow.dll AForge.Video.dll Newtonsoft.Json.dll Telegram.Bot.dll /targetplatform:v4
/target -> library=>DLL exe=>exe
/targetplatform:v4 -> Compiler platform is .net 4.0
/out -> Merged output file,Parameters are followed by files that need to be merged

Finally, generate output in the directory specified by the out parameter

还在完善!还在完善!还在完善!

telegra_csharp_c2's People

Contributors

sf197 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.