-------------------------------------------------------------------------------
 
Whoami 2.1 for Windows 
By Aubrey Hall 
 
-------------------------------------------------------------------------------
Supported Platforms 
-------------------------------------------------------------------------------
 
Windows 9x 
Windows NT 
Windows 2000 
Windows XP 
 
-------------------------------------------------------------------------------
Contact 
aubhall@yahoo.com 
 
-------------------------------------------------------------------------------
DISCLAIMER
-------------------------------------------------------------------------------
THIS PROGRAM IS RELEASED WITH NO GUARANTEES OR WARRANTIES	
OF ANY KIND.THE AUTHOR HAS MADE EVERY EFFORT TO TEST THE PROGRAM,	
BUT IS NOT RESPONSIBLE FOR ANY ERRATIC MACHINE BEHAVIOR BEFORE, DURING,	
OR AFTER PROGRAM EXECUTION.	

-------------------------------------------------------------------------------
What it Does?
-------------------------------------------------------------------------------

Whoami 2.1 is based on the idea of the whoami command under unix. There is a similar
command avalible under the Windows NT4 resource kit. Some of its feature may be 
added to future verions of whoami.

WHOAMI 2.1 - Is a command line executible originally designed to display just 
who you are logged on as and system details.
 
WHOAMI 2.1 expands on this theme providing the user with more Local sytem detail
and Network details that ever before.

-------------------------------------------------------------------------------
Sample Outputs for Whoami Version 2.1 
-------------------------------------------------------------------------------
 
\\AUBREY-14N8QN0W\Aubrey Hall
-------------------------------------------------------------------------------
whoami /?   	
-------------------------------------------------------------------------------
 

WHOAMI
      [/?]              Syntax Output
      [/s]              System Info
      [/nc]             Network Configuration
      [/ip]             Network IP
      [/dns]            Network DNS
      [/route]          Network Routing Table
      [/nb]             Local Netbios Names
      [/ns]             Network Connections
      [/la]             Local Accounts
      [/n]              Current Network Mappings
      [/l]              Licence
      [/all][Filename]  All system info

-------------------------------------------------------------------------------
whoami /s   	
-------------------------------------------------------------------------------
 


Machinename and Username are \\AUBREY-14N8QN0W\Aubrey Hall
Domain Name is AUBREY-14N8QN0W
Processor is x86 Family 6 Model 8 Stepping 3, GenuineIntel x 1 
Systemdrive is E:
Home path is E:\Documents and Settings\Aubrey Hall
Operating system is Windows_NT
logon server is \\AUBREY-14N8QN0W
The Current path is E:\WINDOWS\system32;E:\WINDOWS;E:\WINDOWS\System32\Wbem
Path extensions are .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
Library path for OS/2 
Command Prompt is $P$G
Systemroot is E:\WINDOWS

MS-DOS Version 5.00.500


Share name   Resource                        Remark

-------------------------------------------------------------------------------
IPC$                                         Remote IPC                        
D$           D:\                             Default share                     
ADMIN$       E:\WINDOWS                      Remote Admin                      
H$           H:\                             Default share                     
C$           C:\                             Default share                     
J$           J:\                             Default share                     
E$           E:\                             Default share                     
The command completed successfully.

-------------------------------------------------------------------------------
 whoami /nc   	
-------------------------------------------------------------------------------
 


New connections will be remembered.


Status       Local     Remote                    Network

-------------------------------------------------------------------------------
Unavailable  O:        \\Slim600\CD Drive (G)    Microsoft Windows Network
Unavailable  P:        \\Slim600\CM9900          Microsoft Windows Network
Unavailable  Q:        \\Slim600\GKILLERS        Microsoft Windows Network
Unavailable  R:        \\Slim600\backup (Z)      Microsoft Windows Network
Unavailable  Y:        \\Slim600\C               Microsoft Windows Network
Unavailable  Z:        \\Slim600\System (D)      Microsoft Windows Network
The command completed successfully.

Server Name            Remark

-------------------------------------------------------------------------------
\\AUBREY-14N8QN0W                                                              
The command completed successfully.


-------------------------------------------------------------------------------
 whoami /ip   	
-------------------------------------------------------------------------------
 




Windows IP Configuration



        Host Name . . . . . . . . . . . . : aubrey-14n8qn0w

        Primary Dns Suffix  . . . . . . . : 

        Node Type . . . . . . . . . . . . : Unknown

        IP Routing Enabled. . . . . . . . : No

        WINS Proxy Enabled. . . . . . . . : No



Ethernet adapter Local Area Connection 3:



        Connection-specific DNS Suffix  . : 

        Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter (Network Address Translation (NAT) for VMnet8)

        Physical Address. . . . . . . . . : 00-50-56-C0-00-08

        Dhcp Enabled. . . . . . . . . . . : Yes

        Autoconfiguration Enabled . . . . : Yes

        IP Address. . . . . . . . . . . . : 192.168.11.1

        Subnet Mask . . . . . . . . . . . : 255.255.255.0

        Default Gateway . . . . . . . . . : 

        DHCP Server . . . . . . . . . . . : 192.168.11.254

        Lease Obtained. . . . . . . . . . : 22 July 2002 21:41:34

        Lease Expires . . . . . . . . . . : 22 July 2002 22:11:34



Ethernet adapter Local Area Connection 2:



        Connection-specific DNS Suffix  . : 

        Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter (basic host-only support for VMnet1)

        Physical Address. . . . . . . . . : 00-50-56-C0-00-01

        Dhcp Enabled. . . . . . . . . . . : Yes

        Autoconfiguration Enabled . . . . : Yes

        IP Address. . . . . . . . . . . . : 192.168.107.1

        Subnet Mask . . . . . . . . . . . : 255.255.255.0

        Default Gateway . . . . . . . . . : 

        DHCP Server . . . . . . . . . . . : 192.168.107.254

        Lease Obtained. . . . . . . . . . : 22 July 2002 21:42:17

        Lease Expires . . . . . . . . . . : 22 July 2002 22:12:17



Ethernet adapter Local Area Connection:



        Connection-specific DNS Suffix  . : 

        Description . . . . . . . . . . . : 3Com EtherLink XL 10/100 PCI TX NIC (3C905B-TX)

        Physical Address. . . . . . . . . : 00-50-04-4B-B1-E7

        Dhcp Enabled. . . . . . . . . . . : Yes

        Autoconfiguration Enabled . . . . : Yes

        Autoconfiguration IP Address. . . : 169.254.61.249

        Subnet Mask . . . . . . . . . . . : 255.255.0.0

        Default Gateway . . . . . . . . . : 



-------------------------------------------------------------------------------
whoami /dns  	
-------------------------------------------------------------------------------
 


Windows IP Configuration



         1.0.0.127.in-addr.arpa

         ----------------------------------------

         Record Name . . . . . : 1.0.0.127.in-addr.arpa.

         Record Type . . . . . : 12

         Time To Live  . . . . : 595318

         Data Length . . . . . : 4

         Section . . . . . . . : Answer

         PTR Record  . . . . . : localhost





         localhost

         ----------------------------------------

         Record Name . . . . . : localhost

         Record Type . . . . . : 1

         Time To Live  . . . . : 595318

         Data Length . . . . . : 4

         Section . . . . . . . : Answer

         A (Host) Record . . . : 127.0.0.1





-------------------------------------------------------------------------------
whoami /route  	
-------------------------------------------------------------------------------
 
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 50 56 c0 00 08 ...... VMware Virtual Ethernet Adapter (Network Address Translation (NAT) for VMnet8)
0x3 ...00 50 56 c0 00 01 ...... VMware Virtual Ethernet Adapter (basic host-only support for VMnet1)
0x4 ...00 50 04 4b b1 e7 ...... 3Com EtherLink XL 10/100 PCI TX NIC (3C905B-TX) - Packet Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1	  1
      169.254.0.0      255.255.0.0   169.254.61.249  169.254.61.249	  20
   169.254.61.249  255.255.255.255        127.0.0.1       127.0.0.1	  20
  169.254.255.255  255.255.255.255   169.254.61.249  169.254.61.249	  20
     192.168.11.0    255.255.255.0     192.168.11.1    192.168.11.1	  30
     192.168.11.1  255.255.255.255        127.0.0.1       127.0.0.1	  30
   192.168.11.255  255.255.255.255     192.168.11.1    192.168.11.1	  30
    192.168.107.0    255.255.255.0    192.168.107.1   192.168.107.1	  30
    192.168.107.1  255.255.255.255        127.0.0.1       127.0.0.1	  30
  192.168.107.255  255.255.255.255    192.168.107.1   192.168.107.1	  30
        224.0.0.0        240.0.0.0   169.254.61.249  169.254.61.249	  20
        224.0.0.0        240.0.0.0     192.168.11.1    192.168.11.1	  30
        224.0.0.0        240.0.0.0    192.168.107.1   192.168.107.1	  30
  255.255.255.255  255.255.255.255   169.254.61.249  169.254.61.249	  1
  255.255.255.255  255.255.255.255     192.168.11.1    192.168.11.1	  1
  255.255.255.255  255.255.255.255    192.168.107.1   192.168.107.1	  1
===========================================================================
Persistent Routes:
  None
-------------------------------------------------------------------------------
whoami /nb 	
-------------------------------------------------------------------------------
 
    
Local Area Connection 3:
Node IpAddress: [192.168.11.1] Scope Id: []



                NetBIOS Local Name Table



       Name               Type         Status

    ---------------------------------------------

    AUBREY-14N8QN0W<00>  UNIQUE      Registered 

    MSHOME         <00>  GROUP       Registered 

    AUBREY-14N8QN0W<20>  UNIQUE      Registered 

    MSHOME         <1E>  GROUP       Registered 

    MSHOME         <1D>  UNIQUE      Registered 

    ..__MSBROWSE__.<01>  GROUP       Registered 

    
Local Area Connection 2:
Node IpAddress: [192.168.107.1] Scope Id: []



                NetBIOS Local Name Table



       Name               Type         Status

    ---------------------------------------------

    AUBREY-14N8QN0W<00>  UNIQUE      Registered 

    MSHOME         <00>  GROUP       Registered 

    AUBREY-14N8QN0W<20>  UNIQUE      Registered 

    MSHOME         <1E>  GROUP       Registered 

    MSHOME         <1D>  UNIQUE      Registered 

    ..__MSBROWSE__.<01>  GROUP       Registered 

    
Local Area Connection:
Node IpAddress: [169.254.61.249] Scope Id: []



                NetBIOS Local Name Table



       Name               Type         Status

    ---------------------------------------------

    AUBREY-14N8QN0W<00>  UNIQUE      Registered 

    MSHOME         <00>  GROUP       Registered 

    AUBREY-14N8QN0W<03>  UNIQUE      Registered 

    AUBREY-14N8QN0W<20>  UNIQUE      Registered 

    MSHOME         <1E>  GROUP       Registered 

    MSHOME         <1D>  UNIQUE      Registered 

    ..__MSBROWSE__.<01>  GROUP       Registered 

-------------------------------------------------------------------------------
whoami /ns		
-------------------------------------------------------------------------------


Network Statistics

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    aubrey-14n8qn0w:epmap  0.0.0.0:0              LISTENING
  TCP    aubrey-14n8qn0w:microsoft-ds  0.0.0.0:0              LISTENING
  TCP    aubrey-14n8qn0w:1025   0.0.0.0:0              LISTENING
  TCP    aubrey-14n8qn0w:1033   0.0.0.0:0              LISTENING
  TCP    aubrey-14n8qn0w:3389   0.0.0.0:0              LISTENING
  TCP    aubrey-14n8qn0w:5000   0.0.0.0:0              LISTENING
  TCP    aubrey-14n8qn0w:netbios-ssn  0.0.0.0:0              LISTENING
  TCP    aubrey-14n8qn0w:netbios-ssn  0.0.0.0:0              LISTENING
  TCP    aubrey-14n8qn0w:netbios-ssn  0.0.0.0:0              LISTENING
  UDP    aubrey-14n8qn0w:epmap  *:*                    
  UDP    aubrey-14n8qn0w:microsoft-ds  *:*                    
  UDP    aubrey-14n8qn0w:isakmp  *:*                    
  UDP    aubrey-14n8qn0w:1028   *:*                    
  UDP    aubrey-14n8qn0w:1029   *:*                    
  UDP    aubrey-14n8qn0w:ntp    *:*                    
  UDP    aubrey-14n8qn0w:1900   *:*                    
  UDP    aubrey-14n8qn0w:ntp    *:*                    
  UDP    aubrey-14n8qn0w:netbios-ns  *:*                    
  UDP    aubrey-14n8qn0w:netbios-dgm  *:*                    
  UDP    aubrey-14n8qn0w:1900   *:*                    
  UDP    aubrey-14n8qn0w:ntp    *:*                    
  UDP    aubrey-14n8qn0w:netbios-ns  *:*                    
  UDP    aubrey-14n8qn0w:netbios-dgm  *:*                    
  UDP    aubrey-14n8qn0w:1900   *:*                    
  UDP    aubrey-14n8qn0w:ntp    *:*                    
  UDP    aubrey-14n8qn0w:netbios-ns  *:*                    
  UDP    aubrey-14n8qn0w:netbios-dgm  *:*                    
  UDP    aubrey-14n8qn0w:1900   *:*                    
Interface Statistics

                           Received            Sent

Bytes                        131874          140690
Unicast packets                  80              48
Non-unicast packets             853             868
Discards                          0               0
Errors                            0               0
Unknown protocols                 0

IPv4 Statistics

  Packets Received                   = 884
  Received Header Errors             = 0
  Received Address Errors            = 23
  Datagrams Forwarded                = 0
  Unknown Protocols Received         = 0
  Received Packets Discarded         = 0
  Received Packets Delivered         = 884
  Output Requests                    = 887
  Routing Discards                   = 0
  Discarded Output Packets           = 0
  Output Packet No Route             = 0
  Reassembly Required                = 0
  Reassembly Successful              = 0
  Reassembly Failures                = 0
  Datagrams Successfully Fragmented  = 0
  Datagrams Failing Fragmentation    = 0
  Fragments Created                  = 0

ICMPv4 Statistics

                            Received    Sent
  Messages                  7           7         
  Errors                    0           0         
  Destination Unreachable   7           7         
  Time Exceeded             0           0         
  Parameter Problems        0           0         
  Source Quenches           0           0         
  Redirects                 0           0         
  Echos                     0           0         
  Echo Replies              0           0         
  Timestamps                0           0         
  Timestamp Replies         0           0         
  Address Masks             0           0         
  Address Mask Replies      0           0         

TCP Statistics for IPv4

  Active Opens                        = 0
  Passive Opens                       = 0
  Failed Connection Attempts          = 0
  Reset Connections                   = 0
  Current Connections                 = 0
  Segments Received                   = 0
  Segments Sent                       = 0
  Segments Retransmitted              = 0

UDP Statistics for IPv4

  Datagrams Received    = 737
  No Ports              = 131
  Receive Errors        = 0
  Datagrams Sent        = 865

-------------------------------------------------------------------------------
 
-------------------------------------------------------------------------------
whoami /la		

Aliases for \\AUBREY-14N8QN0W

-------------------------------------------------------------------------------
*__vmware__
*Administrators
*Backup Operators
*Debugger Users
*Guests
*HelpServicesGroup
*Network Configuration Operators
*Power Users
*Remote Desktop Users
*Replicator
*Users
The command completed successfully.

Force user logoff how long after time expires?:       Never
Minimum password age (days):                          0
Maximum password age (days):                          42
Minimum password length:                              0
Length of password history maintained:                None
Lockout threshold:                                    Never
Lockout duration (minutes):                           30
Lockout observation window (minutes):                 30
Computer role:                                        WORKSTATION
The command completed successfully.

-------------------------------------------------------------------------------
whoami /n 		
-------------------------------------------------------------------------------
 
Server Name                           \\AUBREY-14N8QN0W
Server Comment                        

Software version                      Windows 2002
Server is active on                   
	NetbiosSmb (000000000000)
	NetBT_Tcpip_{D8F9A771-6EE2-48A9-9CE8-D56377645C6A} (0050044bb1e7)
	NetBT_Tcpip_{B9921727-EAF6-4118-9F06-87C1C3C5BA5C} (005056c00008)
	NetBT_Tcpip_{A2D49622-523F-46D7-BF4E-FF1E54410A82} (005056c00001)


Server hidden                         No
Maximum Logged On Users               10
Maximum open files per session        16384

Idle session time (min)               15
The command completed successfully.

Computer name                        \\AUBREY-14N8QN0W
Full Computer name                   aubrey-14n8qn0w
User name                            Aubrey Hall

Workstation active on                
	NetbiosSmb (000000000000)
	NetBT_Tcpip_{D8F9A771-6EE2-48A9-9CE8-D56377645C6A} (0050044BB1E7)
	NetBT_Tcpip_{A2D49622-523F-46D7-BF4E-FF1E54410A82} (005056C00001)
	NetBT_Tcpip_{B9921727-EAF6-4118-9F06-87C1C3C5BA5C} (005056C00008)

Software version                     Windows 2002

Workstation domain                   MSHOME
Workstation Domain DNS Name          (null)
Logon domain                         AUBREY-14N8QN0W

COM Open Timeout (sec)               0
COM Send Count (byte)                16
COM Send Timeout (msec)              250
The command completed successfully.

-------------------------------------------------------------------------------
Changelog 

-------------------------------------------------------------------------------

0.50  - Created test file 
0.70  - Tested completed program file 
1.00  - Final completed 02/11/2002 
1.0b  - Uploaded to http://www.simtel.com  
1.0c  - 200+ downloads in the 1st 3 months better than expected  
1.0c  - Http://www.nonags.com link added, gets 5 star award  
1.0d  - Deside to create version 2  
1.1a  - Created basic install and uninstall 
1.1b  - Created Faq 
1.2a  - Added switches support 
1.2b  - Added OS Check 
1.3a  - Combined install and uninstall into Install.com  
1.3a  - Updated Readme and FAQ 
1.3c  - Added Pad files to Archieve 
1.40  - Added Freedos choice.com and errorcheck for file 
1.4b  - Added cdrom.com which reports cdrom drive letter 
1.4c  - Tested process timer element, further work required  
1.50  - Changed readme.txt to whoami21.txt and faq.txt to thefaq.txt 
1.5b  - Updated install.com which filechecking  
1.60  - Optimisiation begins  
1.6a  - Removed choice.com as menu   
1.6b  - Process timer code removed   
1.70  - Removed cdrom.com, needs more testing 
1.80  - Defining what is working and what is not
1.90  - Final Build preparation  
1.9a  - Final code agreed and compiled  
1.9b  - Final code tested  
1.9c  - Final whoami21.txt compiled  
1.9d  - Final faq.txt writen  
1.9e  - Version 1 added for those who still require it  
2.10  - Final 
2.11  - Downloads have exceeded 700+ 
2.12  - Added support for Windows 9x 
2.13  - Removed piped output  
2.14  - Created license.txt 
2.15  - Updated and finalised license.txt 
2.16  - Optimised program, more function within the same space  
2.17  - Removed whoami21.txt,thefaq.txt links from within whoami 
2.18  - Updated Readme1st.txt,whoami21.txt and thefaq.txt
2.19  - Final testing 
2.10  - Final Build
 
What next? 
1 - Test cdrom.com and add to next build 
2 - Research implementing all the feature of the nt resource 
    kit whoami. 
3 - Implement Whoami Professional to include installer and source code 
4 - Implement help documents as html, more features than txt files with low overhead 
5 - All suggestions to author at aubhall@yahoo.com

Support me by listening 
 
http://www.mp3.com/djjademan 
http://www.mp3.com/technophobiac 
 
Enjoying Humour 	
 
http://jokeie.cjb.net - Ultimate Joke Resource 
 
Checking out my other projects 
 
http://whoamint.dk3.com 
