Most viewed posts
LINUX COMMANDS
Search
Networking
Linux command: smbclient
smbclient - ftp-like client to access SMB/CIFS resources on servers
linux conmand options
-p port This number is the TCP port number that will be used when making connections to the server. The standard (well-known) TCP port number for an SMB/CIFS server is 139, which is the default.
smbclient -L windows_box List shares on windows machine or samba server
echo 'message' | smbclient -M windows_box Send popup to windows machine (off by default in XP sp2)
Linux command:smbtree
smbtree - smbtree is a smb browser program in text mode. It is similar to the "Network Neighborhood" found on Windows computers. It prints a tree with all the known domains, the servers in those domains and the shares on the servers.
smbtree [-b] [-D] [-S]
linux command options
Linux Command: netstat
netstat [options] [delay]
TCP/IP command. Show network status. Print information on active sockets, routing tables, interfaces, masquerade connections,
or multicast memberships. By default, netstat lists open sockets. When a delay is specified, netstat will print new information every
delay seconds.
netstat -tup List active connections to/from system
netstat -tupl List internet services on a system
Linux Command: ip
ip [options] object command [arguments]
ip [object [command]] help
System administration command. Show and manipulate network devices and routing. This command is a part of the iproute2 utilities
for controlling TCP and UDP IP networking and traffic control. It’s meant to replace the ifconfig, route, and arp commands among
others. On some distributions these utilities may be deprecated in favor of ip.
| ip link show | Show all configured network cards: |
| ip link set eth0 down | Bring down eth0 |
| ip route list dev eth1 | Show current routing table entries for device eth1 |
| ip route add 10.0.0.1/8 via 192.168.0.254 dev eth1 | Add a router table entry for a private network on eth1 with gateway via 192.168.0.254 |
| ip link set eth0 promisc on | Put eth0 into promiscuous mode in order to sniff traffic |
| ip neigh add 10.0.0.5 ll addr 52:54:00:32:5e:20 dev eth1 | Add a permanent entry to the neighbors table (arp table) for eth1 |