Страница 1 из 1

Как узнать IP или hostname

Добавлено: 09 авг 2007, 10:46
Vims
Знаю user login name, как узнать IP or hostname?
Есть ли какая-либo утилита?
Это на винде .
Пасибо наперед

Добавлено: 09 авг 2007, 11:13
dima
ipconfig

Добавлено: 09 авг 2007, 11:21
Vims
dima писал(а):ipconfig
что то не вижу свитчей на user name etc.. :roll:
C:\PCTOOLS\TOOLS>ipconfig /?

USAGE:
ipconfig [/? | /all | /renew [adapter] | /release [adapter] |
/flushdns | /displaydns | /registerdns |
/showclassid adapter |
/setclassid adapter [classid] ]

where
adapter Connection name
(wildcard characters * and ? allowed, see examples)

Options:
/? Display this help message
/all Display full configuration information.
/release Release the IP address for the specified adapter.
/renew Renew the IP address for the specified adapter.
/flushdns Purges the DNS Resolver cache.
/registerdns Refreshes all DHCP leases and re-registers DNS names
/displaydns Display the contents of the DNS Resolver Cache.
/showclassid Displays all the dhcp class IDs allowed for adapter.
/setclassid Modifies the dhcp class id.

The default is to display only the IP address, subnet mask and
default gateway for each adapter bound to TCP/IP.

For Release and Renew, if no adapter name is specified, then the IP address
leases for all adapters bound to TCP/IP will be released or renewed.

For Setclassid, if no ClassId is specified, then the ClassId is removed.

Examples:
> ipconfig ... Show information.
> ipconfig /all ... Show detailed information
> ipconfig /renew ... renew all adapters
> ipconfig /renew EL* ... renew any connection that has its
name starting with EL
> ipconfig /release *Con* ... release all matching connections,
eg. "Local Area Connection 1" or
"Local Area Connection 2"

Добавлено: 09 авг 2007, 11:37
BB
netstat?
netstat -o shows process id.

Добавлено: 09 авг 2007, 11:42
Vims
BB писал(а):netstat?
netstat -o shows process id.
да оно показывает но нет user id or SID :roll:

Добавлено: 09 авг 2007, 11:45
dima
Vims писал(а):
dima писал(а):ipconfig
что то не вижу свитчей на user name etc.. :roll:
C:\PCTOOLS\TOOLS>ipconfig /?

USAGE:
ipconfig [/? | /all | /renew [adapter] | /release [adapter] |
/flushdns | /displaydns | /registerdns |
/showclassid adapter |
/setclassid adapter [classid] ]

where
adapter Connection name
(wildcard characters * and ? allowed, see examples)

Options:
/? Display this help message
/all Display full configuration information.
/release Release the IP address for the specified adapter.
/renew Renew the IP address for the specified adapter.
/flushdns Purges the DNS Resolver cache.
/registerdns Refreshes all DHCP leases and re-registers DNS names
/displaydns Display the contents of the DNS Resolver Cache.
/showclassid Displays all the dhcp class IDs allowed for adapter.
/setclassid Modifies the dhcp class id.

The default is to display only the IP address, subnet mask and
default gateway for each adapter bound to TCP/IP.

For Release and Renew, if no adapter name is specified, then the IP address
leases for all adapters bound to TCP/IP will be released or renewed.

For Setclassid, if no ClassId is specified, then the ClassId is removed.

Examples:
> ipconfig ... Show information.
> ipconfig /all ... Show detailed information
> ipconfig /renew ... renew all adapters
> ipconfig /renew EL* ... renew any connection that has its
name starting with EL
> ipconfig /release *Con* ... release all matching connections,
eg. "Local Area Connection 1" or
"Local Area Connection 2"
ты-же IP просил узнать

Re: Как узнать IP или hostname

Добавлено: 09 авг 2007, 11:53
CdR
Vims писал(а):Знаю user login name, как узнать IP or hostname?
who нету? Это сильно! :)
Тут вот говорят о каких-то pstools и psloggedon: http://www.ss64.com/nt/psloggedon.html
Ну или тут: http://www.ss64.com/bash/who.html внизу страницы аналоги для Windows XP.

Не оно?

Добавлено: 09 авг 2007, 11:56
BB
Admin Tools -> Terminal Services Manager -> Sessions

Добавлено: 09 авг 2007, 14:15
stuard
Administrative Tools->Computer Management->system tools->shared folder->sessions

Добавлено: 09 авг 2007, 14:37
stuard
еще можно использовать net send если она разрешена и NBTSTAT -S посмотреть как netbios имена промапированны в IP адреса.

Добавлено: 09 авг 2007, 18:22
Vims
stuard писал(а):еще можно использовать net send если она разрешена и NBTSTAT -S посмотреть как netbios имена промапированны в IP адреса.
короче извернулся следующим образом
cifs sessions -s username
Выдает IP addres этого пока хватило :wink: но хотелось бы как нибудь с DC или админской станции :wink:

Добавлено: 10 авг 2007, 14:06
El Comandante
На контроллере домена можно попробовать сделать. Поссмотри какие политики аудита можно енейблить для регистрации запросов на авторизацию в домене

Добавлено: 10 авг 2007, 16:17
Vims
El Comandante писал(а):На контроллере домена можно попробовать сделать. Поссмотри какие политики аудита можно енейблить для регистрации запросов на авторизацию в домене
Это не в моей "песочнице" :-)