mirror of https://github.com/n1nj4sec/pupy.git
Use config from pupysrv if possible
This commit is contained in:
parent
4db302b048
commit
3df62c7fa5
|
@ -66,7 +66,7 @@ class Screenshoter(PupyModule):
|
||||||
'({}x{})'.format(screen['top'], screen['left'])))
|
'({}x{})'.format(screen['top'], screen['left'])))
|
||||||
return
|
return
|
||||||
|
|
||||||
config = PupyConfig()
|
config = self.client.pupsrv.config or PupyConfig()
|
||||||
folder = config.get_folder('screenshots', {'%c': self.client.short_name()})
|
folder = config.get_folder('screenshots', {'%c': self.client.short_name()})
|
||||||
|
|
||||||
screenshots, error = rscreenshot.screenshot(args.screen)
|
screenshots, error = rscreenshot.screenshot(args.screen)
|
||||||
|
|
Loading…
Reference in New Issue