begin process at 2010 02 10 13:19:39
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Réseaux & Internet

 > SCANNER D'IP

SCANNER D'IP


 Information sur la source

Note :
6 / 10 - par 1 personne
6,00 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Réseaux & Internet Source .NET ( DotNet ) Classé sous :scanner, ip Niveau :Débutant Date de création :21/12/2004 Date de mise à jour :29/12/2004 13:10:17 Vu :15 884

Auteur : abdoulax

Ecrire un message privé
Site perso
Ce membre participe au partage de revenus publicitaires
Commentaire sur cette source (9)
Ajouter un commentaire et/ou une note


 Description

Cliquez pour voir la capture en taille normale
Voici ma toute première source en Csharp, enfin !!! Bon ceci est un simple scanner multithread avec une interface graphique. A mon avis g fait un travail barbar malgrès que j'ai essayé de reprendre la structure que j'ai vu dans d'autre programme. Je m'attend bien sur à de nombreuses critiques...

Source

  • using System;
  • using System.Drawing;
  • using System.Windows.Forms;
  • using System.Net.Sockets;
  • using System.Net;
  • using System.IO;
  • using System.Threading;
  • namespace winscan
  • {
  • /// <summary>
  • /// Description of MainForm.
  • /// </summary>
  • public class Form1 : System.Windows.Forms.Form
  • {
  • private System.Windows.Forms.Label label3;
  • private System.Windows.Forms.Label label2;
  • private System.Windows.Forms.Button button1;
  • private System.Windows.Forms.Label label5;
  • private System.Windows.Forms.Label label4;
  • private System.Windows.Forms.Label label1;
  • private System.Windows.Forms.TextBox textBox4;
  • private System.Windows.Forms.TextBox textBox1;
  • private System.Windows.Forms.TextBox textBox3;
  • private System.Windows.Forms.TextBox textBox2;
  • public System.Windows.Forms.ListBox listBox1;
  • public static int n = 10;
  • static string ip;
  • static int port;
  • static object obmrd;
  • public Form1()
  • {
  • //
  • // The InitializeComponent() call is required for Windows Forms designer support.
  • //
  • InitializeComponent();
  • //
  • // TODO: Add constructor code after the InitializeComponent() call.
  • //
  • }
  • [STAThread]
  • public static void Main(string[] args)
  • {
  • Application.Run(new Form1());
  • }
  • #region Windows Forms Designer generated code
  • /// <summary>
  • /// This method is required for Windows Forms designer support.
  • /// do not change the method contents inside the source code editor. The Forms designer might
  • /// not be able to load this method if it was changed manually.
  • /// </summary>
  • private void InitializeComponent() {
  • this.textBox2 = new System.Windows.Forms.TextBox();
  • this.textBox3 = new System.Windows.Forms.TextBox();
  • this.textBox1 = new System.Windows.Forms.TextBox();
  • this.textBox4 = new System.Windows.Forms.TextBox();
  • this.label1 = new System.Windows.Forms.Label();
  • this.label4 = new System.Windows.Forms.Label();
  • this.label5 = new System.Windows.Forms.Label();
  • this.button1 = new System.Windows.Forms.Button();
  • this.listBox1 = new System.Windows.Forms.ListBox();
  • this.label2 = new System.Windows.Forms.Label();
  • this.label3 = new System.Windows.Forms.Label();
  • this.SuspendLayout();
  • //
  • // textBox2
  • //
  • this.textBox2.Location = new System.Drawing.Point(112, 24);
  • this.textBox2.Name = "textBox2";
  • this.textBox2.Size = new System.Drawing.Size(88, 20);
  • this.textBox2.TabIndex = 2;
  • this.textBox2.Text = "127.0.0.20";
  • //
  • // textBox3
  • //
  • this.textBox3.Location = new System.Drawing.Point(208, 24);
  • this.textBox3.Name = "textBox3";
  • this.textBox3.Size = new System.Drawing.Size(40, 20);
  • this.textBox3.TabIndex = 6;
  • this.textBox3.Text = "4444";
  • //
  • // textBox1
  • //
  • this.textBox1.Location = new System.Drawing.Point(16, 24);
  • this.textBox1.Name = "textBox1";
  • this.textBox1.Size = new System.Drawing.Size(88, 20);
  • this.textBox1.TabIndex = 1;
  • this.textBox1.Text = "127.0.0.1";
  • //
  • // textBox4
  • //
  • this.textBox4.Location = new System.Drawing.Point(256, 24);
  • this.textBox4.Name = "textBox4";
  • this.textBox4.Size = new System.Drawing.Size(24, 20);
  • this.textBox4.TabIndex = 8;
  • this.textBox4.Text = "10";
  • //
  • // label1
  • //
  • this.label1.ForeColor = System.Drawing.Color.Black;
  • this.label1.Location = new System.Drawing.Point(16, 8);
  • this.label1.Name = "label1";
  • this.label1.Size = new System.Drawing.Size(100, 16);
  • this.label1.TabIndex = 4;
  • this.label1.Text = "Ip start :";
  • //
  • // label4
  • //
  • this.label4.Location = new System.Drawing.Point(256, 8);
  • this.label4.Name = "label4";
  • this.label4.Size = new System.Drawing.Size(48, 16);
  • this.label4.TabIndex = 9;
  • this.label4.Text = "Thread :";
  • //
  • // label5
  • //
  • this.label5.Location = new System.Drawing.Point(18, 240);
  • this.label5.Name = "label5";
  • this.label5.Size = new System.Drawing.Size(272, 23);
  • this.label5.TabIndex = 0;
  • this.label5.Text = "Waiting ...";
  • //
  • // button1
  • //
  • this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
  • this.button1.ForeColor = System.Drawing.SystemColors.Control;
  • this.button1.Location = new System.Drawing.Point(288, 24);
  • this.button1.Name = "button1";
  • this.button1.Size = new System.Drawing.Size(56, 24);
  • this.button1.TabIndex = 3;
  • this.button1.Text = "Scan";
  • this.button1.Click += new System.EventHandler(this.ButtonClick);
  • //
  • // listBox1
  • //
  • this.listBox1.Location = new System.Drawing.Point(16, 64);
  • this.listBox1.Name = "listBox1";
  • this.listBox1.ScrollAlwaysVisible = true;
  • this.listBox1.Size = new System.Drawing.Size(328, 173);
  • this.listBox1.TabIndex = 0;
  • this.listBox1.Tag = "";
  • //
  • // label2
  • //
  • this.label2.ForeColor = System.Drawing.Color.Black;
  • this.label2.Location = new System.Drawing.Point(112, 8);
  • this.label2.Name = "label2";
  • this.label2.Size = new System.Drawing.Size(96, 16);
  • this.label2.TabIndex = 5;
  • this.label2.Text = "Ip End :";
  • //
  • // label3
  • //
  • this.label3.Location = new System.Drawing.Point(208, 8);
  • this.label3.Name = "label3";
  • this.label3.Size = new System.Drawing.Size(32, 16);
  • this.label3.TabIndex = 7;
  • this.label3.Text = "Port :";
  • //
  • // MainForm
  • //
  • this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
  • this.BackColor = System.Drawing.Color.SlateGray;
  • this.ClientSize = new System.Drawing.Size(360, 262);
  • this.Controls.Add(this.label4);
  • this.Controls.Add(this.textBox4);
  • this.Controls.Add(this.label5);
  • this.Controls.Add(this.label3);
  • this.Controls.Add(this.textBox3);
  • this.Controls.Add(this.label2);
  • this.Controls.Add(this.label1);
  • this.Controls.Add(this.button1);
  • this.Controls.Add(this.textBox2);
  • this.Controls.Add(this.textBox1);
  • this.Controls.Add(this.listBox1);
  • this.Name = "MainForm";
  • this.Text = "IP scanner by aBd0ulaX";
  • this.Load += new System.EventHandler(this.MainFormLoad);
  • this.ResumeLayout(false);
  • }
  • #endregion
  • void ButtonClick(object sender, System.EventArgs e)
  • {
  • try
  • {
  • Thread run = new Thread(new ThreadStart(scanner));
  • if ( this.button1.Text == "Scan" )
  • {
  • n = int.Parse(this.textBox4.Text);
  • port = int.Parse(this.textBox3.Text);
  • //scanner(this.textBox1.Text,this.textBox2.Text);
  • run.Start();
  • //scanner();
  • this.button1.Text = "Stop";
  • this.textBox1.Enabled = false;
  • this.textBox2.Enabled = false;
  • this.textBox3.Enabled = false;
  • this.textBox4.Enabled = false;
  • this.listBox1.Items.Add( "*** Scanning " + this.textBox1.Text + " to " + this.textBox2.Text + " port " + port + " threads " + this.textBox4.Text);
  • this.listBox1.Refresh();
  • }
  • else
  • {
  • //run.Abort();
  • this.button1.Text = "Scan";
  • }
  • }
  • catch
  • {
  • MessageBox.Show("Parametre error !!","Error",MessageBoxButtons.OK,MessageBoxIcon.Error);
  • }
  • }
  • void MainFormLoad(object sender, System.EventArgs e)
  • {
  • this.listBox1.Items.Add("Scanning PGM ... Have Fun :-)");
  • this.listBox1.Items.Add("---------------------------------------------------------->");
  • obmrd = sender;
  • }
  • //public static void scanner(string ipString,string ipend)
  • public void scanner()
  • {
  • try
  • {
  • string ipString = this.textBox1.Text;
  • string ipend = this.textBox2.Text;
  • char[] delimite = {'.'};
  • string[] bAdd = ipString.Split(delimite,4);
  • string[] bAdd2 = ipend.Split(delimite,4);
  • long w ,x ,y ,z;
  • for (w=long.Parse(bAdd[0]);w<=256;w++) for (x=long.Parse(bAdd[1]);x<=256;x++) for (y=long.Parse(bAdd[2]);y<=256;y++) for (z=long.Parse(bAdd[3]);z<=256;z++)
  • {
  • if ( this.button1.Text == "Scan" )
  • {
  • CloseConnect();
  • return;
  • }
  • n--;
  • while (n <= 0 ) Thread.Sleep(300);
  • ip = w.ToString() + '.' + x.ToString() + '.' + y.ToString() + '.' + z.ToString();
  • //Console.WriteLine("{1}\t***Connection to {0}\n",ip,n);
  • label5.Text = ip;
  • label5.Refresh();
  • Connection ipToScan = new Connection(ip,port,this);
  • Thread t1 = new Thread(new ThreadStart(ipToScan.Connect));
  • t1.Start();
  • if ( ( w == long.Parse(bAdd2[0]) ) && ( x == long.Parse(bAdd2[1]) ) && ( y == long.Parse(bAdd2[2]) ) && ( z == long.Parse(bAdd2[3]) ) ) { this.button1.Text = "Scan"; }
  • }
  • }
  • catch
  • {
  • MessageBox.Show("Parametre error !!","Error",MessageBoxButtons.OK,MessageBoxIcon.Error);
  • CloseConnect();
  • return;
  • }
  • }
  • public void CloseConnect()
  • {
  • this.textBox1.Enabled = true;
  • this.textBox2.Enabled = true;
  • this.textBox3.Enabled = true;
  • this.textBox4.Enabled = true;
  • this.label5.Text = "Waiting ...";
  • this.listBox1.Items.Add("*** Scan Closed");
  • this.listBox1.Items.Add("---------------------------------------------------------->");
  • }
  • }
  • public class Connection
  • {
  • string ip;
  • Form1 frm;
  • int port;
  • public Connection(string ip1, int port1, Form1 frm1)
  • {
  • ip = ip1;
  • frm = frm1;
  • port = port1;
  • }
  • public void Connect()
  • {
  • try {
  • Socket s;
  • IPEndPoint ep;
  • s = new Socket( AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
  • ep = new IPEndPoint(IPAddress.Parse(ip),port);
  • s.Connect(ep);
  • frm.listBox1.Items.Add(ip + " port " + port);
  • frm.listBox1.Refresh();
  • //Console.WriteLine("***Connection to {0} succed\n",ip);
  • Form1.n++;
  • s.Close();
  • }
  • catch {
  • Form1.n++;
  • }
  • }
  • }
  • }
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Net.Sockets;
using System.Net;
using System.IO;
using System.Threading;

namespace winscan
{
    /// <summary>
    /// Description of MainForm.
    /// </summary>
    public class Form1 : System.Windows.Forms.Form
    {
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox textBox4;
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.TextBox textBox3;
		private System.Windows.Forms.TextBox textBox2;
		public System.Windows.Forms.ListBox listBox1;
		public static int n = 10;
        static string ip;
        static int port;
        static object obmrd;
        
    
        public Form1()
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();          
            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //
        }
        
        [STAThread]
        public static void Main(string[] args)
        {
            Application.Run(new Form1());
        }
        
        #region Windows Forms Designer generated code
        /// <summary>
        /// This method is required for Windows Forms designer support.
        /// do not change the method contents inside the source code editor. The Forms designer might
        /// not be able to load this method if it was changed manually.
        /// </summary>
        private void InitializeComponent() {
			this.textBox2 = new System.Windows.Forms.TextBox();
			this.textBox3 = new System.Windows.Forms.TextBox();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.textBox4 = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.button1 = new System.Windows.Forms.Button();
			this.listBox1 = new System.Windows.Forms.ListBox();
			this.label2 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.SuspendLayout();
			// 
			// textBox2
			// 
			this.textBox2.Location = new System.Drawing.Point(112, 24);
			this.textBox2.Name = "textBox2";
			this.textBox2.Size = new System.Drawing.Size(88, 20);
			this.textBox2.TabIndex = 2;
			this.textBox2.Text = "127.0.0.20";
			// 
			// textBox3
			// 
			this.textBox3.Location = new System.Drawing.Point(208, 24);
			this.textBox3.Name = "textBox3";
			this.textBox3.Size = new System.Drawing.Size(40, 20);
			this.textBox3.TabIndex = 6;
			this.textBox3.Text = "4444";
			// 
			// textBox1
			// 
			this.textBox1.Location = new System.Drawing.Point(16, 24);
			this.textBox1.Name = "textBox1";
			this.textBox1.Size = new System.Drawing.Size(88, 20);
			this.textBox1.TabIndex = 1;
			this.textBox1.Text = "127.0.0.1";
			// 
			// textBox4
			// 
			this.textBox4.Location = new System.Drawing.Point(256, 24);
			this.textBox4.Name = "textBox4";
			this.textBox4.Size = new System.Drawing.Size(24, 20);
			this.textBox4.TabIndex = 8;
			this.textBox4.Text = "10";
			// 
			// label1
			// 
			this.label1.ForeColor = System.Drawing.Color.Black;
			this.label1.Location = new System.Drawing.Point(16, 8);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(100, 16);
			this.label1.TabIndex = 4;
			this.label1.Text = "Ip start :";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(256, 8);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(48, 16);
			this.label4.TabIndex = 9;
			this.label4.Text = "Thread :";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(18, 240);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(272, 23);
			this.label5.TabIndex = 0;
			this.label5.Text = "Waiting ...";
			// 
			// button1
			// 
			this.button1.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.button1.ForeColor = System.Drawing.SystemColors.Control;
			this.button1.Location = new System.Drawing.Point(288, 24);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(56, 24);
			this.button1.TabIndex = 3;
			this.button1.Text = "Scan";
			this.button1.Click += new System.EventHandler(this.ButtonClick);
			// 
			// listBox1
			// 
			this.listBox1.Location = new System.Drawing.Point(16, 64);
			this.listBox1.Name = "listBox1";
			this.listBox1.ScrollAlwaysVisible = true;
			this.listBox1.Size = new System.Drawing.Size(328, 173);
			this.listBox1.TabIndex = 0;
			this.listBox1.Tag = "";
			// 
			// label2
			// 
			this.label2.ForeColor = System.Drawing.Color.Black;
			this.label2.Location = new System.Drawing.Point(112, 8);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(96, 16);
			this.label2.TabIndex = 5;
			this.label2.Text = "Ip End :";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(208, 8);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(32, 16);
			this.label3.TabIndex = 7;
			this.label3.Text = "Port :";
			// 
			// MainForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.BackColor = System.Drawing.Color.SlateGray;
			this.ClientSize = new System.Drawing.Size(360, 262);
			this.Controls.Add(this.label4);
			this.Controls.Add(this.textBox4);
			this.Controls.Add(this.label5);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.textBox3);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.button1);
			this.Controls.Add(this.textBox2);
			this.Controls.Add(this.textBox1);
			this.Controls.Add(this.listBox1);
			this.Name = "MainForm";
			this.Text = "IP scanner by aBd0ulaX";
			this.Load += new System.EventHandler(this.MainFormLoad);
			this.ResumeLayout(false);
		}
        #endregion
        void ButtonClick(object sender, System.EventArgs e)
        {
            try
            {
            	Thread run = new Thread(new ThreadStart(scanner));
            	if ( this.button1.Text == "Scan" ) 
            	{
            		n = int.Parse(this.textBox4.Text);
            		port = int.Parse(this.textBox3.Text);
        	        //scanner(this.textBox1.Text,this.textBox2.Text);
            	    run.Start();
	                //scanner();
	                
            		this.button1.Text = "Stop";
            		this.textBox1.Enabled = false;
            		this.textBox2.Enabled = false;
            		this.textBox3.Enabled = false;
            		this.textBox4.Enabled = false;
            		this.listBox1.Items.Add( "*** Scanning " + this.textBox1.Text + " to " + this.textBox2.Text + " port " + port + " threads " + this.textBox4.Text);
                	this.listBox1.Refresh();
            	}
            	else 
            	{
            		//run.Abort();
            		this.button1.Text = "Scan";
            	}
            }
            catch
            {
            	MessageBox.Show("Parametre error !!","Error",MessageBoxButtons.OK,MessageBoxIcon.Error);
            }
        }
        void MainFormLoad(object sender, System.EventArgs e)
        {
        	this.listBox1.Items.Add("Scanning PGM ... Have Fun :-)");
           	this.listBox1.Items.Add("---------------------------------------------------------->");
			obmrd = sender;
        }   
        //public static void scanner(string ipString,string ipend)
        public void scanner()
        {
        	try 
        	{
		        string ipString = this.textBox1.Text;
        		string ipend = this.textBox2.Text;
	    	    char[] delimite = {'.'};
    	    	string[] bAdd = ipString.Split(delimite,4);
        	    string[] bAdd2 = ipend.Split(delimite,4);           
            	long w ,x ,y ,z;
		        for (w=long.Parse(bAdd[0]);w<=256;w++) for (x=long.Parse(bAdd[1]);x<=256;x++) for (y=long.Parse(bAdd[2]);y<=256;y++) for (z=long.Parse(bAdd[3]);z<=256;z++)
       		   {
            		if ( this.button1.Text == "Scan" ) 
            		{
						CloseConnect();
	            		return;
    	        	}
        	        n--;
            	    while (n <= 0 ) Thread.Sleep(300);
                	ip = w.ToString() + '.' + x.ToString() + '.' + y.ToString() + '.' + z.ToString();
	                //Console.WriteLine("{1}\t***Connection to {0}\n",ip,n);
    	            label5.Text = ip;
        	        label5.Refresh();
        	        
        	        Connection ipToScan = new Connection(ip,port,this);        
            	    Thread t1 = new Thread(new ThreadStart(ipToScan.Connect));
                	t1.Start();
                	if ( ( w == long.Parse(bAdd2[0]) ) && ( x == long.Parse(bAdd2[1]) ) && ( y == long.Parse(bAdd2[2]) ) && ( z == long.Parse(bAdd2[3]) ) ) { this.button1.Text = "Scan"; }
	            }
        	}
            catch
            {
            	MessageBox.Show("Parametre error !!","Error",MessageBoxButtons.OK,MessageBoxIcon.Error);
            	CloseConnect();
            	return;
            }
        }
        public void CloseConnect()
        {
        	this.textBox1.Enabled = true;
           	this.textBox2.Enabled = true;
            this.textBox3.Enabled = true;
            this.textBox4.Enabled = true;
            this.label5.Text = "Waiting ...";
            this.listBox1.Items.Add("*** Scan Closed");
            this.listBox1.Items.Add("---------------------------------------------------------->");
        }
    }
    public class Connection
    {
    	string ip;
    	Form1 frm;
    	int port;
    	
		public Connection(string ip1, int port1, Form1 frm1)
        {
			ip = ip1;
			frm = frm1;
			port = port1;
		}
		        public void Connect()
        {
            try {
                Socket s;
                IPEndPoint ep;
                s = new Socket( AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
                ep = new IPEndPoint(IPAddress.Parse(ip),port);
                s.Connect(ep);
                frm.listBox1.Items.Add(ip + " port " + port);
                frm.listBox1.Refresh();
                //Console.WriteLine("***Connection to {0} succed\n",ip);
                Form1.n++;
                s.Close();
            }
            catch {
                Form1.n++;
            }
        }
    }
		
}

 Conclusion

Ce que j'aurai aimé faire c'est une seconde list avec les ip en cours de scan.
Je pensé pour de remplacer
//Console.WriteLine("{1}\t***Connection to {0}\n",ip,n);
par
listBox2.Items.Add(ip);
Mais je me suis rendu compte que le résultat ne s'affiché k la fin du scan et non au fur et à mesure. Faut que je trouve pkoi et si qlq1 pouvais m'aidé ce serai plus simple !!

Have fun


 Historique

26 décembre 2004 18:36:00 :
Ajout d'un label pour savoir kel est la dernière ip testé et fermeture du socket à la fin du thread , j'avais oublié ;)
29 décembre 2004 13:03:18 :
Tout d'abord y'avait un problème de paramètre avec les threads. Ensuite la source était bloqué kan je lancé le scan, résolut en executant le scan avec un thread. Enfin ajout dans l'interface graphique ..... Merci à Nico ki va se reconnaitre !!! Have Fun
29 décembre 2004 13:10:17 :
Ajout d'un ScreenShot

 Sources du même auteur

Source .NET (Dotnet) AUDIO MIX

 Sources de la même categorie

Source avec Zip Source avec une capture Source .NET (Dotnet) HTTP FLOOD STRESS TEST par NightMareLmW
Source avec Zip Source avec une capture Source .NET (Dotnet) SERVEUR/ESCLAVE MODBUS TCP/IP par SteveFuchsIT
Source avec Zip Source avec une capture Source .NET (Dotnet) IPHELPER - PORTS TCP/UDP, TABLES DE ROUTAGE/ARP + FONCTIONS ... par Willi
Source avec Zip Source avec une capture Source .NET (Dotnet) [.NET3.5] SYSTEM.IO.PIPES - UTILISATION D'UN CANAL NOMMÉ par Willi
Source avec Zip Source .NET (Dotnet) MESSAGES PERSOS MSN par XelectroX

 Sources en rapport avec celle ci

Source avec Zip Source .NET (Dotnet) ANALYSEUR LEXICAL par T_Mehdi
Source avec Zip Source avec une capture Source .NET (Dotnet) SAVOIR L'ADRESSE PHYSIQUE (MAC) DES CARTES RÉSEAUX DE L'ORDI... par boutemine
Source avec une capture Source .NET (Dotnet) MODIFIER LA CONFIGURATION DU RÉSEAU LOCAL par thithi242
Source avec Zip Source .NET (Dotnet) NSLOOKUP EN C# OU COMMENT FAIRE UNE REQÛETE DNS EN PRÉCISANT... par ShareVB
Source .NET (Dotnet) SNAPSHOT DISQUE DUR par naigeon

Commentaires et avis

Commentaire de Arthenius le 24/12/2004 10:06:21

pour ton pb de scan qui s'affiche ka la fin, utilise des thread....pour afficher en temps reel...

Commentaire de abdoulax le 26/12/2004 17:43:54

Euh tu ve pas etre plus précis !!
Sinon je me demandé si g poa oublier de fermer les socket comme en C !!

Have fun

Commentaire de Arthenius le 27/12/2004 09:32:23

pour les sockets je sais po...
pour les thread jette un oeuil sur ce site y a plein d'exemple...

Commentaire de abdoulax le 27/12/2004 12:37:16

A vrai dir hier g fé une mise a jour pour résoudre mes problème et ça aucun rapport avec des thread, il a juste fallu que je rajoute listbox.refresh();
( Dailleur merci pour la petite aide .... )
Sinon je voie pas du tout ce que vienne faire des thread dans mon problème en plus ma source utilise déjà plein de thread ce serai dommage d'en rajouter encore ....

Donc si tu pouvais me montrer que ta technique marche ce cool de me filer un exemple ...

Have fun

Commentaire de Arthenius le 27/12/2004 14:11:24

oups javais pas vu que tu utilisait des thread...

ben non pas mieux...
desole :o)))

Commentaire de hackring le 22/08/2005 17:44:53

salut je suis vachemant in téréssé part ton scan pourait tu m' expliqué coment puije le re crée ?? mercie ;)

Commentaire de maytetino le 15/01/2007 01:11:46

Bonsoir
je c'esqt tré bien mes sa bug de que je le lasse, les fichier sources zipper c'est mieux

Commentaire de Bikarfioul le 21/05/2007 19:50:14

Pourrais t'on avoir une source ZIP.

Car je débute et j'arrive pas a voir l'erreur qui est généré et reporté par MsVisual C# 2005

Commentaire de abdoulax le 21/05/2007 20:33:39

Oula, pas possible, sa fait longtemps que j'ai pas touché à ce langage, j'ai même plus le framework d'installer et encore moins visual studio...

Dsl, il va falloir que tu te débrouille !!

 Ajouter un commentaire


Discussions en rapport avec ce code source dans le forum

Accès [ par fredza ] Bonjour et bonne année à toutes et tous,J'ai un fichier ip.cs voilà brièvement son contenu :namespace iprog{ /// &lt;summary&gt; /// Description résum Probleme d'IP [ par MorpionMx ] Bonjour,Voila, je développe un tout petit chat sans prétention, le probleme c'est que avec ce bout de code :private static Socket s = new Socket (addr Lire et modifier une adresse IP [ par fardator ] Salut à tous,Je voudrais lire (et éventuellement modifier) mon (mes ?) adresse IP. Je n'ai pas trouvé mon bonheur dans System.Net.Quelqu'un connait la Controle IP... [ par Miltiades ] J'aimerai savoir s'il le controle "Adresse IP" qui avait été implémenté en MFC existe en C#(ce controle sert à afficher une adresse IP en séparant les Besoin d'aide : "Pinger" un Ip:Port [ par SidSilver ] Voici mon problème.J'ai créé une application Win32 avec Visual C#.Je voudrais que cette application soit capable de tester si le port machin de l'ip t Recuperer l'adresse IP d'un utilisateur distant [ par eRRaTuM ] Bijour,Je cherche une methode pour que je puisse recuperer l'adresse IP d'un remote user, pour pouvoir faire des statistiques, je sais que je dois uti Adresse IP Internet (récupérer) [ par merlintintin ] Bonjour,j'aimerais savoir quelle est la méthode pour retourner l'adresse IP actuelle de ma connexion Internet ? Les seules fonctions que j'ai trouvées Récuperer sa propre IP ... [ par chimerique ] Slt, je voulais savoir si il y avais une facon simple de recupere sa propre adresse IP ?L'unique facon que j'ai trouvé, c'est récupéré mon nom d'host, Comment créer un jeux en ligne... [ par PeterG ] J'ai fait un petit jeux de blackjack sur Visual Studio .net et j'aimerai pouvoir jouer en réseau contre quelqu'un d'autre qui possède un Ip différent. Adresse IP Internet [ par syl2 ] Bonjour,Existe-t'il une méthode pour retrouner l'adresse IP actuelle de ma connexion Internet ?Les seules méthodes que j'ai pu trouver sont liées au c


Nos sponsors


Sondage...

CalendriCode

Février 2010
LMMJVSD
1234567
891011121314
15161718192021
22232425262728

Consulter la suite du CalendriCode

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 1,279 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales