HavocFramework / Havoc

The Havoc Framework
https://havocframework.com
GNU General Public License v3.0
6.86k stars 962 forks source link

Issue with setting up Havoc #472

Open spartanq2 opened 7 months ago

spartanq2 commented 7 months ago

image

Using x11 and awesomewm and having an issue with xdg_runtime_dir being invalid or not set in the environment

I am 100% a script kiddie so apologies for any lack of information

spartanq2 commented 7 months ago

Also using arch, I was getting the same error using the makefile as I am using the Pacman repo

ramsy0dev commented 6 months ago

@spartanq2 This error is not related to Havoc but instead related to the variable XDG_RUNTIME_DIR not being carry on because when running a software as another user (in this case root) you're in fact starting a new minimal isolated environment that doesn't carry on some "excessive" variables (among others variables responsible for injecting libraries or setting privileges). To overcome this you will need to set the variable XDR_RUNTIME_DIR to the value that your user have:

sudo XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR havoc

ressources: