How to trace a running process?

Using strace one can trace the system calls being executed by a running process. To stop the strace press control-C To display the system calls being executed $ strace -p <pid> or To display a summary of system calls being executed $ strace -cfo <logfile> -p <pid> Example: In this example smon process was being…

List of all system privileges

Using the view “system_privilege_map” one can list all the system privileges or search for a specific privilege. Example: List all privilege that have “TABLE” keyword in it. SQL> select * from system_privilege_map where NAME like ‘%TABLE%’; PRIVILEGE NAME PROPERTY ———- —————————————- ———- -10 CREATE TABLESPACE 0 -11 ALTER TABLESPACE 0 -12 MANAGE TABLESPACE 0 -13…

Script to change date on a computer

' ' script to change computer date ' DIM objShell strComputer = "." ' current host ' get current time Set objWMIService = GetObject("winmgmts:{(Systemtime)}\\" & strComputer & "\root\cimv2") Set colOS = objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem WHERE Primary=True") For Each objOS In colOS Exit For Next Wscript.Echo "Current Date: " & strDate strNow = objOS.LocalDateTime '…