2015-09-08

Change HostName on Solaris11

=== check  hoostname ===
root@solaris11:~# svccfg -s system/identity:node listprop config
config                 application      
config/nodename       astring     solaris11
config/loopback       astring     solaris11

=== set new hostname ===
root@solaris11:~# svccfg -s system/identity:node setprop config/nodename="new-hostname"
root@solaris11:~# svccfg -s system/identity:node setprop config/loopback="new-hostname"

=== refresh property =====
root@solaris:~# svccfg -s system/identity:node refresh
=== restart servicce ====
root@solaris:~# svcadm restart system/identity:node

=== check new hoostname ===
root@solaris11:~# svccfg -s system/identity:node listprop config
config                 application      
config/nodename       astring     new-hostname
config/loopback       astring     new-hostname

2015-07-21

block Null Session Attacks on Windows Server

Edit  registry:
HKLM/System/CurrentControlSet/Control/LSA
Value: RestrictAnonymous=1

2015-07-08

show RPC port

for windows2008 and Windows2012
C:\Windows\system32>netsh int ipv4 show dynamicport udp

Protocol udp Dynamic Port Range
---------------------------------
Start Port      : 49152
Number of Ports : 16384


C:\Windows\system32>netsh int ipv4 show dynamicport tcp

Protocol tcp Dynamic Port Range
---------------------------------
Start Port      : 49152
Number of Ports : 16384