Autor Beitrag
AnyKey
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Mi 19.03.08 14:37 
Moderiert von user profile iconNarses: Abgetrennt von [url=www.delphi-forum.de/...ighlight=]hier[/url]

Weiß zufällig jemand, wie ich mit Delphi ein Programm schreiben kann, welches über eine mir bekannte IP-adresse eines anderen PC's, dessen MAC adresse auslesen kann? Geht so etwas überhaupt?
Für eine schnelle Antwort und möglicherweise Quelltext oder Links mit Hilfen wäre ich sehr dankbar!

Gruß AnyKey
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 19.03.08 15:31 
Titel: Re: Ich hätte da auch einmal eine Frage!
Moin und :welcome: im Forum!

user profile iconAnyKey hat folgendes geschrieben:
Weiß zufällig jemand, wie ich mit Delphi ein Programm schreiben kann, welches über eine mir bekannte IP-adresse eines anderen PC's, dessen MAC adresse auslesen kann?
Gib mal an der Kommandozeile
ausblenden Quelltext
1:
nbtstat -A <ip>					

ein, liefert das die gewünschte Info?

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
AnyKey Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Mi 19.03.08 15:49 
Titel: Re: Ich hätte da auch einmal eine Frage!
Also ich denke mal du meinst den Befehl netstat -A <ip> :)
Ich bekomme mit dem Befehl eine menge Daten angezeigt, jedoch keine MAC-adresse :(

Gruß AnyKey
klezmor
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 558


delphi 6 personal delphi 2005 personal
BeitragVerfasst: Mi 19.03.08 15:50 
vermute mal du meintest netstat -a?

_________________
"Beware of bugs in the above code; I have only proved it correct, not tried it." Donald Knuth
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 19.03.08 15:55 
Titel: Re: Ich hätte da auch einmal eine Frage!
Moin!

user profile iconAnyKey hat folgendes geschrieben:
Also ich denke mal du meinst den Befehl netstat -A <ip> :)
Ich bekomme mit dem Befehl eine menge Daten angezeigt, jedoch keine MAC-adresse :(
Bitte nicht vermuten, einfach mal ausprobieren... :roll: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Kalfany
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 26

Win 2000 SP4, XP SP2
D5 Enterprise, C# SharpDevelop, D2007 Enterprise
BeitragVerfasst: Mi 19.03.08 16:00 
Das ist tatsächlich kein Schreibfehler! Danke Narses, das erspart mir in Zukunft die lästige tipperei der MAC Adresse wenn ich einen neuen PC in die Whitelist eintrag :)
AnyKey Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Mi 19.03.08 16:01 
Titel: Re: Ich hätte da auch einmal eine Frage!
Probiert hab ich es ja :) und es wird allerdings keine MAC angezeigt. Mit dem befehl ipconfig /all bekommt man die MAC angezeigt, allerdings will ich ja nicht die von meinem eigenen rechner, sondern die von einem pc im Netzwerk, dessen IP mir bekannt ist.

ciao
AnyKey
Kalfany
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 26

Win 2000 SP4, XP SP2
D5 Enterprise, C# SharpDevelop, D2007 Enterprise
BeitragVerfasst: Mi 19.03.08 16:03 
Titel: Re: Ich hätte da auch einmal eine Frage!
user profile iconAnyKey hat folgendes geschrieben:
Probiert hab ich es ja :) und es wird allerdings keine MAC angezeigt. Mit dem befehl ipconfig /all bekommt man die MAC angezeigt, allerdings will ich ja nicht die von meinem eigenen rechner, sondern die von einem pc im Netzwerk, dessen IP mir bekannt ist.

ciao
AnyKey


was hast du probiert? netstat oder nbtstat?
AnyKey Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Mi 19.03.08 16:06 
Titel: Re: Ich hätte da auch einmal eine Frage!
Ich habe beide Befehle probiert,
-> bei netstat -A bekomme ich einen haufen Daten, die mir allerdings nicht
wirklich etwas bringen.
-> bei nbstat -A bekomme ich von der DOS box lediglich gesagt das der Befehl
entweder falsch geschrieben ist oder nicht existiert

ciao
AnyKey
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 19.03.08 16:08 
Titel: Re: Ich hätte da auch einmal eine Frage!
Moin!

user profile iconAnyKey hat folgendes geschrieben:
Ich habe beide Befehle probiert,
-> bei netstat -A bekomme ich einen haufen Daten, die mir allerdings nicht
wirklich etwas bringen.
Davon habe ich nicht gesprochen. ;)

user profile iconAnyKey hat folgendes geschrieben:
-> bei nbstat -A bekomme ich von der DOS box lediglich gesagt das der Befehl
entweder falsch geschrieben ist oder nicht existiert
Was auch völlig korrekt ist... :D

:les: :mahn:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
AnyKey Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Mi 19.03.08 16:08 
Titel: Re: Ich hätte da auch einmal eine Frage!
user profile iconAnyKey hat folgendes geschrieben:
Ich habe beide Befehle probiert,
-> bei netstat -A bekomme ich einen haufen Daten, die mir allerdings nicht
wirklich etwas bringen.
-> bei nbstat -A bekomme ich von der DOS box lediglich gesagt das der Befehl
entweder falsch geschrieben ist oder nicht existiert

ciao
AnyKey


Ok... sorry ich nehme alles wieder zurück, nbtstat -A funktioniert doch *schäm*

ciao
AnyKey
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 19.03.08 16:10 
Moin!

Wenn dein Problem gelöst ist, markierst du den Thread dann noch entsprechend? Danke. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
AnyKey Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Mi 19.03.08 16:13 
user profile iconNarses hat folgendes geschrieben:
Moin!

Wenn dein Problem gelöst ist, markierst du den Thread dann noch entsprechend? Danke. ;)

cu
Narses


Also das einzige Problem, das ich jetzt noch habe ist, wie kann ich jetzt in meinem Delphi Programm die MAC adresse herausfinden??

ciao
AnyKey
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 19.03.08 16:17 
Moin!

user profile iconAnyKey hat folgendes geschrieben:
Also das einzige Problem, das ich jetzt noch habe ist, wie kann ich jetzt in meinem Delphi Programm die MAC adresse herausfinden?
Schau mal hier, damit solltest du weiter kommen. :idea: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.