daily pastebin goal
24%
SHARE
TWEET

eQSL Downloader

a guest Sep 25th, 2017 27 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using SQ7MRU.Utils;
  3. using Microsoft.Extensions.Logging.Console;
  4. using Microsoft.Extensions.Logging;
  5.  
  6. namespace eQSL
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.  
  13.             ILoggerFactory logger = new LoggerFactory().AddConsole(LogLevel.Trace);
  14.             Console.WriteLine("SQ7MRU eQSL Downloader .net core");
  15.             Console.Write("Wpisz login do eQSL.cc :");
  16.             var login = Console.ReadLine();
  17.             Console.Write("Wpisz hasło do loginu :");
  18.             var pass = GetPassword();
  19.             var eqsl = new Downloader(login,pass,logger,null,1000,100,10);
  20.             eqsl.Download();
  21.         }
  22.  
  23.         public static string GetPassword()
  24.         {
  25.         string pass = "";    
  26.         ConsoleKeyInfo key;
  27.             do
  28.             {
  29.                 key = Console.ReadKey(true);
  30.                 if (key.Key != ConsoleKey.Backspace)
  31.                 {
  32.                     pass += key.KeyChar;
  33.                     Console.Write("*");
  34.                 }
  35.                 else
  36.                 {
  37.                     Console.Write("\b");
  38.                 }
  39.             }
  40.             while (key.Key != ConsoleKey.Enter);
  41.             return pass.Replace("\n","");
  42.         }
  43.     }
  44. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top