drakvuf-sandbox icon indicating copy to clipboard operation
drakvuf-sandbox copied to clipboard

Toggle network state from the web-interface

Open rakovskij-stanislav opened this issue 4 years ago • 2 comments

It will be great to see a tumbler at the web interface to turn on and off the internet connection for the scan.

I suppose, you can turn on/off it in drakrun/main.py file using ifconfig vif manipulation, like sudo ifconfig vifX.0 down at the "process" function. Plus self.current_task.payload.get to obtain the tumbler state.

rakovskij-stanislav avatar Aug 01 '20 23:08 rakovskij-stanislav

Thanks for the idea. This does sound like a feature we could add.

BonusPlay avatar Aug 02 '20 01:08 BonusPlay

We can create a js toggle in the ui folder , and call a function from main.py. In main we can use process or os functions to turn interfaces down.

techathena avatar Feb 15 '21 03:02 techathena