DOS Command for Hacking

TCP/IP commands:
telnet
netstat
nslookup
tracert
ping
ftp

NetBIOS commands (just some examples):
nbtstat
net use
net view
net localgroup


TCP/IP stands for transmission control protocol/Internet protocol.
            As you can guess by the name, TCP/IP is the protocol under which the Internet runs.
             along with user datagram protocol (UDP). So when you are connected to the Internet, you can try these commands against other Internet computers. Most local area networks also use TCP/IP.

              NetBIOS (Net Basic Input/Output System) protocol is another way to communicate between computers. 
               This is often used by Windows computers, and by Unix/Linux type computers running Samba. You can often use NetBIOS commands over the Internet (being carried inside of, so to speak, TCP/IP).
                In many cases, however, NetBIOS commands will be blocked by firewalls.
Also, not many Internet computers run NetBIOS because it is so easy to break in using them.



C:\USERS\netinfobook>nbtstat -A 234.54.56.1
Local Area Connection:
Node IpAddress: [0.0.0.0] Scope Id: []

    Host not found.
C:\USERS\netinfobook>nbtstat/?
Displays protocol statistics and current TCP/IP connections using NBT
(NetBIOS over TCP/IP).

NBTSTAT [ [-a RemoteName] [-A IP address] [-c] [-n]
        [-r] [-R] [-RR] [-s] [-S] [interval] ]

  -a   (adapter status) Lists the remote machine's name table given its name
  -A   (Adapter status) Lists the remote machine's name table given its
                        IP address.
  -c   (cache)          Lists NBT's cache of remote [machine] names and their IP
addresses
  -n   (names)          Lists local NetBIOS names.
  -r   (resolved)       Lists names resolved by broadcast and via WINS
  -R   (Reload)         Purges and reloads the remote cache name table
  -S   (Sessions)       Lists sessions table with the destination IP addresses
  -s   (sessions)       Lists sessions table converting destination IP
                        addresses to computer NETBIOS names.
  -RR  (ReleaseRefresh) Sends Name Release packets to WINS and then, starts Refr
esh

  RemoteName   Remote host machine name.
  IP address   Dotted decimal representation of the IP address.
  interval     Redisplays selected statistics, pausing interval seconds
               between each display. Press Ctrl+C to stop redisplaying
               statistics.


C:\USERS\netinfobook>net view/?
The syntax of this command is:

NET
    [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
      HELPMSG | LOCALGROUP | PAUSE | PRINT | SESSION | SHARE | START |
      STATISTICS | STOP | TIME | USE | USER | VIEW ]

C:\USERS\netinfobook>net view \\234.34.43.55
System error 53 has occurred.

The network path was not found.

C:\USERS\netinfobook>net use/?
The syntax of this command is:

NET
    [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
      HELPMSG | LOCALGROUP | PAUSE | PRINT | SESSION | SHARE | START |
      STATISTICS | STOP | TIME | USE | USER | VIEW ]

C:\USERS\netinfobook>net use x:\\222.45.6.45\temp
System error 67 has occurred.

The network name cannot be found.

C:\USERS\netinfobook>nslookup/?
Usage:
   nslookup [-opt ...]             # interactive mode using default server
   nslookup [-opt ...] - server    # interactive mode using 'server'
   nslookup [-opt ...] host        # just look up 'host' using default server
   nslookup [-opt ...] host server # just look up 'host' using 'server'

C:\USERS\netinfobook>nslookup 234.45.65.34
*** Default servers are not available
Server:  UnKnown
Address:  127.0.0.1:53

DNS request timed out.
    timeout was 2 seconds.
*** Request to UnKnown timed-out

C:\USERS\netinfobook>nslookup www.google.com
*** Default servers are not available
Server:  UnKnown
Address:  127.0.0.1:53

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
*** Request to UnKnown timed-out

C:\USERS\netinfobook>nslookup www
*** Default servers are not available
Server:  UnKnown
Address:  127.0.0.1:53

DNS request timed out.
    timeout was 2 seconds.
*** Request to UnKnown timed-out

C:\USERS\netinfobook>nslookup 435
*** Default servers are not available
Server:  UnKnown
Address:  127.0.0.1:53

DNS request timed out.
    timeout was 2 seconds.
*** Request to UnKnown timed-out

C:\USERS\netinfobook>nslookup
*** Default servers are not available
Default Server:  UnKnown
Address:  127.0.0.1:53

Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-2001.

C:\USERS\netinfobook>nslookup/?
Usage:
   nslookup [-opt ...]             # interactive mode using default server
   nslookup [-opt ...] - server    # interactive mode using 'server'
   nslookup [-opt ...] host        # just look up 'host' using default server
   nslookup [-opt ...] host server # just look up 'host' using 'server'

C:\USERS\netinfobook>nslookup 234.45.65.34
*** Default servers are not available
Server:  UnKnown
Address:  127.0.0.1:53

DNS request timed out.
    timeout was 2 seconds.
*** Request to UnKnown timed-out

C:\USERS\netinfobook>nslookup www.google.com
*** Default servers are not available
Server:  UnKnown
Address:  127.0.0.1:53

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
*** Request to UnKnown timed-out

C:\USERS\netinfobook>nslookup www
*** Default servers are not available
Server:  UnKnown
Address:  127.0.0.1:53

DNS request timed out.
    timeout was 2 seconds.
*** Request to UnKnown timed-out

C:\USERS\netinfobook>nslookup 435
*** Default servers are not available
Server:  UnKnown
Address:  127.0.0.1:53

DNS request timed out.
    timeout was 2 seconds.
*** Request to UnKnown timed-out

C:\USERS\netinfobook>nslookup
*** Default servers are not available
Default Server:  UnKnown
Address:  127.0.0.1:53


C:\USERS\netinfobook>tracert 230.45.76.7
Tracing route to 230.45.76.7 over a maximum of 30 hops
  1  General failure.
Trace complete.
C:\USERS\netinfobook>

C:\USERS\netinfobook>ftp/?
Transfers files to and from a computer running an FTP server service
(sometimes called a daemon). Ftp can be used interactively.

FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-A] [-x:sendbuffer] [-r:recvbuf
fer] [-b:asyncbuffers] [-w:windowsize] [host]

  -v              Suppresses display of remote server responses.
  -n              Suppresses auto-login upon initial connection.
  -i              Turns off interactive prompting during multiple file
                  transfers.
  -d              Enables debugging.
  -g              Disables filename globbing (see GLOB command).
  -s:filename     Specifies a text file containing FTP commands; the
                  commands will automatically run after FTP starts.
  -a              Use any local interface when binding data connection.
  -A              login as anonymous.
  -x:send sockbuf Overrides the default SO_SNDBUF size of 8192.
  -r:recv sockbuf Overrides the default SO_RCVBUF size of 8192.
  -b:async count  Overrides the default async count of 3
  -w:windowsize   Overrides the default transfer buffer size of 65535.
  host            Specifies the host name or IP address of the remote
                  host to connect to.

Notes:
  - mget and mput commands take y/n/q for yes/no/quit.
  - Use Control-C to abort commands.

C:\USERS\netinfobook>

0 comments: