Esempio n. 1
0
        public Main(bool debugging)
        {
            InitializeComponent();

            #region Populate Keys
            RealExponent = 10001;
            RealModulus  = "e052808c1abef69a1a62c396396b85955e2ff522f5157639fa6a19a98b54e0e4d6e44f44c4c0390fee8ccf642a22b6d46d7228b10e34ae6fffb61a35c11333780af6dd1aaafa7388fa6c65b51e8225c6b57cf5fbac30856e896229512e1f9af034895937b2cb6637eb6edf768c10189df30c10d8a3ec20488a198063599ca6ad";

            RsaKeys = new List <string[]>();
            RsaKeys.Add(new[]
            {
                "3",
                "86851dd364d5c5cece3c883171cc6ddc5760779b992482bd1e20dd296888df91b33b936a7b93f06d29e8870f703a216257dec7c81de0058fea4cc5116f75e6efc4e9113513e45357dc3fd43d4efab5963ef178b78bd61e81a14c603b24c8bcce0a12230b320045498edc29282ff0603bc7b7dae8fc1b05b52b2f301a9dc783b7",
                "59ae13e243392e89ded305764bdd9e92e4eafa67bb6dac7e1415e8c645b0950bccd26246fd0d4af37145af5fa026c0ec3a94853013eaae5ff1888360f4f9449ee023762ec195dff3f30ca0b08b8c947e3859877b5d7dced5c8715c58b53740b84e11fbc71349a27c31745fcefeeea57cff291099205e230e0c7c27e8e1c0512b"
            });
            RsaKeys.Add(new[]
            {
                "10001",
                "a55bb171aefecc9844b44970eedb4e94e74373a775642b0ea827326eeea039969385c59bc48b3a3fac4455768e2248f8d16ad244481c2c47e0f0c17c7643408ef2dc9205825852bc7f050d3681670bf9f6ebe5cdad4cded26b031ec45f1e36f1ba0aa7e1dda23682132aeaad4f05fec723dc589c30a17dcca8e4e839de3001ff",
                "854ab0728f395cfab10712dc31ee1e1df17d71d0ded3ebd158c29fe8c3f9ebf1f0e0b835a3ed06fb2485c0ce5c2c4ede231114856e0b27b6991ff917b6cce75007c93a94846890df86cf51abc555eb94a7f6ad62bc1f4f232579abe62a0f4b464b4354a956919a8437b684ca8e2c229b3d5c48d7d9869d712a78b7c8339ab001",
            });
            #endregion

            _packetloggerF = new Packetlogger();
            _tanjiConnect  = new TanjiConnect(this);

            _initiate   = Initiate;
            _reinitiate = Reinitiate;
            _debugging  = debugging;

            ISDirectionTxt.SelectedIndex = 1;
        }
Esempio n. 2
0
        public Main(bool debugging)
        {
            InitializeComponent();

            CheckForUpdates();
            TanjiSettings.Load();

            _game               = new HConnection();
            _game.Connected    += Game_Connected;
            _game.DataToClient += Game_DataToClient;
            _game.DataToServer += Game_DataToServer;

            _packetlogger = new Packetlogger();
            _tanjiConnect = new TanjiConnect(this);

            _inBlockedHeaders  = new List <ushort>();
            _inReplacedHeaders = new List <ushort>();

            _outBlockedHeaders  = new List <ushort>();
            _outReplacedHeaders = new List <ushort>();

            OSAlwaysOnTopChckbx.Checked       = TanjiSettings.Global.IsAlwaysOnTop;
            OSCloseOnDisconnectChckbx.Checked = TanjiSettings.Global.ShouldCloseOnDisconnect;

            _initiate   = Initiate;
            _reinitiate = Reinitiate;
            _debugging  = debugging;

            ISDestinationTxt.SelectedIndex  = 1;
            IFBDestinationTxt.SelectedIndex = 1;
            IFRDestinationTxt.SelectedIndex = 1;
        }