➡️Post Installation Setup
Setting up Tab Completion
Currently, we use argcomplete to automatically do tab completion through argparse.
Once you've installed nxc globally, do the following:
sudo apt install python3-argcomplete
# For Bash
register-python-argcomplete nxc >> ~/.bashrc
# For Zsh
register-python-argcomplete nxc >> ~/.zshrcOpen a new shell and you are ready to go:
NetExec
netexec
nxcConfiguring NetExec's Homefolder
NetExec will create a folder to which the nxc.conf configuration file and all other data created/extracted during day-to-day use are written. The default folder that will be created is ~/.nxc. If you would like to change the destination folder set the environment variable NXC_PATH to the target folder.
Configuring NetExec's Bloodhound Ingestor
Netexec's default Bloodhound ingestor is CE. If you want Netexec to ingest data for legacy:
Open
nxc.confSet
bh_enabled = TrueSet
bhce_enabled = FalseSave and you're ready to roll
Bash one liners:
For enabling legacy, disabling CE:
sed -Ei 's/^[[:space:]]*bh_enabled[[:space:]]*=.*/bh_enabled = True/; s/^[[:space:]]*bhce_enabled[[:space:]]*=.*/bhce_enabled = False/' ~/.nxc/nxc.confFor enabling CE, disabling legacy:
sed -Ei 's/^[[:space:]]*bh_enabled[[:space:]]*=.*/bh_enabled = False/; s/^[[:space:]]*bhce_enabled[[:space:]]*=.*/bhce_enabled = True/' ~/.nxc/nxc.conf
Last updated
Was this helpful?

