← cd ..

Miscellaneous & Tricks

contents
miscellaneous-tricks.md

All the tricks that couldn’t be classified somewhere else.

Send Messages to Other Users#

  • Windows
PS C:\> msg Swissky /SERVER:CRASHLAB "Stop rebooting the XXXX service !"PS C:\> msg * /V /W /SERVER:CRASHLAB "Hello all !"
  • Linux
wall "Stop messing with the XXX service !"wall -n "System will go down for 2 hours maintenance at 13:00 PM"  # "-n" only for rootwhowrite root pts/2 # press Ctrl+D  after typing the message. 

NetExec Credential Database#

nxcdb (default) > workspace create testnxcdb (test) > workspace defaultnxcdb (test) > proto smbnxcdb (test)(smb) > credsnxcdb (test)(smb) > export creds csv /tmp/creds

NetExec workspaces

# get current workspacepoetry run nxcdb -gw # create workspacepoetry run nxcdb -cw testing# set workspacepoetry run nxcdb -sw testing