Advertisement
vadim2018

MNCRAFT CONSOLE

Sep 28th, 2020
3,621
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 8.03 KB | None | 0 0
  1. using System;
  2. using System.Net;
  3. using System.Net.Mail;
  4. using System.Collections;
  5. using System.Collections.Generic;
  6. using System.IO;
  7. using System.Linq;
  8.  
  9. namespace MNCRAFT_DEVELOP_CONSOLE
  10. {
  11.     class Program
  12.     {
  13.         public static void Main()
  14.         {
  15.             string userread;
  16.             string screenshoturl;
  17.             string conntenturl;
  18.             string email;
  19.             Console.WriteLine("добро пожаловать в консоль издателя MNCRAFT");
  20.             Console.WriteLine("если вы хотите узнать все команды то напишите /help");
  21.             userread = Console.ReadLine();
  22.             if(userread == "/help")
  23.             {
  24.                 Console.WriteLine("/reg  -  эта команда для регистрацыи");
  25.                 Console.WriteLine("");
  26.                 Console.WriteLine("/publeshing  -  эта команда для публикацыии");
  27.                 Console.WriteLine("");
  28.                 Console.WriteLine("/update  -  эта команда для обновления");
  29.                 Console.WriteLine("");
  30.                 mn();
  31.             }
  32.             if (userread == "/reg")
  33.             {
  34.                 Console.WriteLine("ведите адрес электроной почты");
  35.                 Console.WriteLine("");
  36.                 Console.WriteLine("пароль вам прешлют потом");
  37.                 Console.WriteLine("");
  38.                 email = Console.ReadLine();
  39.                 MailAddress From = new MailAddress("mncraft.mailsend.ru", "mncraft registration map");
  40.                 MailAddress To = new MailAddress("mncraft.uploader@mail.ru");
  41.                 MailMessage msg = new MailMessage(From, To);
  42.                 msg.Subject = "registration";
  43.                 msg.Body = "reg: " + email;
  44.                 SmtpClient smtp = new SmtpClient("smtp.mail.ru", 587);
  45.                 smtp.Credentials = new NetworkCredential("mncraft.mailsend@mail.ru", "netflix22");
  46.                 smtp.EnableSsl = true;
  47.                 smtp.Send(msg);
  48.                 mn();
  49.             }  
  50.             if(userread == "/update")
  51.             {
  52.                 Console.WriteLine("выдите ссылку на архив с скриншотами(для скачивания с Mega или Яндекс.Диск");
  53.                 screenshoturl = Console.ReadLine();
  54.                 Console.WriteLine("ведите ссылку на карту(для скачивание с Mega или Яндекс.Диск");
  55.                 conntenturl = Console.ReadLine();
  56.                 Console.WriteLine("ведите свой адрес электроной почты(для обратной связи)");
  57.                 email = Console.ReadLine();
  58.                 Console.WriteLine("");
  59.                 Console.WriteLine("ведите пароль (который вам скидовали после регистрацыи");
  60.                 Console.WriteLine("");
  61.                 Console.WriteLine("если вы не зарегестрированы то презапустите програму а пото пропешите команду /reg");
  62.                 userread = Console.ReadLine();
  63.                 MailAddress From = new MailAddress("mncraft.mailsend@mail.ru", "mncraft updater map");
  64.                 MailAddress To = new MailAddress("mncraft.uploader@mail.ru");
  65.                 MailMessage msg = new MailMessage(From, To);
  66.                 msg.Subject = "uload map";
  67.                 msg.Body = "screen shot: " + screenshoturl + " conntent: " + conntenturl + " uploader email:" + email + " uploader password: " + userread;
  68.                 SmtpClient smtp = new SmtpClient("smtp.mail.ru", 587);
  69.                 smtp.Credentials = new NetworkCredential("mncraft.mailsend@mail.ru", "netflix22");
  70.                 smtp.EnableSsl = true;
  71.                 smtp.Send(msg);
  72.                 mn();
  73.             }
  74.             if (userread == "/publeshing")
  75.             {
  76.                 Console.WriteLine("ведите тип (map или addon)");
  77.                 userread = Console.ReadLine();
  78.                 if (userread == "map")
  79.                 {
  80.                     Console.WriteLine("выдите ссылку на архив с скриншотами(для скачивания с Mega или Яндекс.Диск");
  81.                     screenshoturl = Console.ReadLine();
  82.                     Console.WriteLine("ведите ссылку на карту(для скачивание с Mega или Яндекс.Диск");
  83.                     conntenturl = Console.ReadLine();
  84.                     Console.WriteLine("ведите свой адрес электроной почты(для обратной связи)");
  85.                     email = Console.ReadLine();
  86.                     Console.WriteLine("");
  87.                     Console.WriteLine("ведите пароль (который вам скидовали после регистрацыи");
  88.                     Console.WriteLine("");
  89.                     Console.WriteLine("если вы не зарегестрированы то презапустите програму а пото пропешите команду /reg");
  90.                     userread = Console.ReadLine();
  91.                     MailAddress From = new MailAddress("mncraft.mailsend@mail.ru", "mncraft uploader map");
  92.                     MailAddress To = new MailAddress("mncraft.uploader@mail.ru");
  93.                     MailMessage msg = new MailMessage(From, To);
  94.                     msg.Subject = "uload map";
  95.                     msg.Body = "screen shot: " + screenshoturl + " conntent: " + conntenturl + " uploader email: " + email + " uploader password: " + userread;
  96.                     SmtpClient smtp = new SmtpClient("smtp.mail.ru", 587);
  97.                     smtp.Credentials = new NetworkCredential("mncraft.mailsend@mail.ru", "netflix22");
  98.                     smtp.EnableSsl = true;
  99.                     smtp.Send(msg);
  100.                     mn();
  101.                 }
  102.                 if (userread == "addon")
  103.                 {
  104.                     Console.WriteLine("выдите ссылку на архив с скриншотами(для скачивания с Mega или Яндекс.Диск");
  105.                     screenshoturl = Console.ReadLine();
  106.                     Console.WriteLine("ведите ссылку на мод(для скачивание с Mega или Яндекс.Диск");
  107.                     conntenturl = Console.ReadLine();
  108.                     Console.WriteLine("ведите свой адрес электроной почты(для обратной связи)");
  109.                     email = Console.ReadLine();
  110.                     Console.WriteLine("");
  111.                     Console.WriteLine("ведите пароль (который вам скидовали после регистрацыи");
  112.                     Console.WriteLine("");
  113.                     Console.WriteLine("если вы не зарегестрированы то презапустите програму а пото пропешите команду /reg");
  114.                     userread = Console.ReadLine();
  115.                     MailAddress From = new MailAddress("mncraft.mailsend.ru", "mncraft uploader map");
  116.                     MailAddress To = new MailAddress("mncraft.uploader@mail.ru");
  117.                     MailMessage msg = new MailMessage(From, To);
  118.                     msg.Subject = "uload addon";
  119.                     msg.Body = "screen shot: " + screenshoturl + " conntent: " + conntenturl + " uploader email:" + email + " uploader password: " + userread;
  120.                     SmtpClient smtp = new SmtpClient("smtp.mail.ru", 587);
  121.                     smtp.Credentials = new NetworkCredential("mncraft.mailsend@mail.ru", "netflix22");
  122.                     smtp.EnableSsl = true;
  123.                     smtp.Send(msg);
  124.                     mn();
  125.                 }
  126.                
  127.             }
  128.         }
  129.        
  130.         public static void mn()
  131.         {
  132.             Main();
  133.         }
  134.     }
  135. }
  136.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement