Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using SQ7MRU.Utils;
- using Microsoft.Extensions.Logging.Console;
- using Microsoft.Extensions.Logging;
- namespace eQSL
- {
- class Program
- {
- static void Main(string[] args)
- {
- ILoggerFactory logger = new LoggerFactory().AddConsole(LogLevel.Trace);
- Console.WriteLine("SQ7MRU eQSL Downloader .net core");
- Console.Write("Wpisz login do eQSL.cc :");
- var login = Console.ReadLine();
- Console.Write("Wpisz hasło do loginu :");
- var pass = GetPassword();
- var eqsl = new Downloader(login,pass,logger,null,1000,100,10);
- eqsl.Download();
- }
- public static string GetPassword()
- {
- string pass = "";
- ConsoleKeyInfo key;
- do
- {
- key = Console.ReadKey(true);
- if (key.Key != ConsoleKey.Backspace)
- {
- pass += key.KeyChar;
- Console.Write("*");
- }
- else
- {
- Console.Write("\b");
- }
- }
- while (key.Key != ConsoleKey.Enter);
- return pass.Replace("\n","");
- }
- }
- }
Add Comment
Please, Sign In to add comment