Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
Telegra_Csharp_C2 — C#命令与控制 | Kitploit
工具/GitHubGitHub/sf197/telegra_csharp_c2
Payload生成后渗透利用命令与控制红队远程访问工具
GitHubsf197/telegra_csharp_c2

Telegra_Csharp_C2

C#命令与控制

查看仓库
681944年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Telegra_Csharp_C2

用C#编写的命令与控制工具

作者:Leiothrix

Telegram:@Leiothrix

Twitter:@wh4am1

团队:QQ愛&Love

logo

VirusTotal 检测结果

别再把它上传到VirusTotal了,我已经替你们试过了。

VirusTotal

链接:https://www.virustotal.com/gui/file/ad1cd12bd6c8bee46ab35aa21a4fb48c2bcf9fdddbf1af82ad6f20eb75daa663/detection

总览

  • 安装
  • 使用方法
  • 代理
  • 如何编译

安装

通过Nuget下载以下包
root@kitploit:~
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;
在“引用”中添加相关类
root@kitploit:~
System.Drawing;
System.Windows.Forms;

使用方法

将你的Token修改到程序中
root@kitploit:~
 static void Main(){
            botClient = new TelegramBotClient("token");		//你的Token
            botClient.OnMessage += Bot_OnMessage;
            botClient.StartReceiving();
            Thread.Sleep(int.MaxValue);
}

1566355269804

玩得开心。

代理

TelegramBotClient 允许你为Bot API连接使用代理。

HTTP

你可以将一个IWebProxy传递给Bot客户端,用于HTTP代理。
root@kitploit:~
	// 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

你可以使用一个外部NuGet包:HttpToSocks5Proxy 提供的
root@kitploit:~
// using MihaZupan;

var proxy = new HttpToSocks5Proxy(Socks5ServerAddress, Socks5ServerPort);

// 或者如果代理服务器需要凭据:
var proxy = new HttpToSocks5Proxy(
  Socks5ServerAddress, Socks5ServerPort, "USERNAME", "PASSWORD"
);

// 允许你使用那些只允许连接到Telegram的代理
// 某些代理需要此设置
proxy.ResolveHostnamesLocally = true;

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

如何编译

如何将所有DLL文件合并到一个EXE文件中
首先,你需要下载ILMerge工具,这是一个用于合并.NET程序所有引用的工具。
root@kitploit:~
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 -> 编译平台为.NET 4.0
/out -> 合并后的输出文件,参数后面跟着需要合并的文件

最后,在out参数指定的目录下生成输出

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

下载工具