jm33-m0 / emp3r0r

Linux/Windows post-exploitation framework made by linux user
https://infosec.exchange/@jm33
MIT License
1.25k stars 235 forks source link

tmux ui issues #199

Closed opensesamedoors closed 1 year ago

opensesamedoors commented 1 year ago

1) when I execute ls_targets command, file tmux.go line 270 ------> err := ioutil.WriteFile(pane.TTY, []byte(msg), 0777) does not works on ubuntu 22,it prints nothing but when I change this line to CliPrint("%s",msg),it works. 2) when I execute target n,it works first time in tmux "Shell 2" panel,but when I execute target n second time,it show /dev/shm/.xxxxxxxxxxxxxxxxxxxxxx file can not find,so Shell 2 panel close and in dead status.

jm33-m0 commented 1 year ago

Thanks for reporting. For the second issue you can try with latest release, it should be solved.

For the first one, ls_targets doesn't really do anything, since Agent List now resides in a separate tmux window, you can find it on the bottom of your terminal, click on it and you can see the auto-refreshing agent list. To avoid confusion, in future releases I will let ls_targets take you to the corresponding tmux window automatically.