calebstewart / pwncat

Fancy reverse and bind shell handler
https://pwncat.readthedocs.io
MIT License
2.61k stars 256 forks source link

Aliases & shortcuts from pwncatrc not working #238

Open ChocolateOverflow opened 2 years ago

ChocolateOverflow commented 2 years ago

Bug Description

I've set some aliases & shortcuts in my pwncatrc and they're not working correctly.

pwncat version

I'm using Arch Linux, installed using the BlackArch package pwncat-caleb

$ pwncat --version
0.5.1

Steps to Reproduce

My pwncatrc:

# vi: ft=sh

# aliases
alias up upload
alias down download
alias q exit

# shortcuts
shortcut ! local
shortcut @ run

Alias in my .bashrc/.zshrc:

alias pwncat="python -m pwncat -c $HOME/.config/pwncat/pwncatrc"

(Without -c, it doesn't run the pwncatrc but that's for another issue)

Expected Behavior

Aliases and shortcuts should be applied

Actual behavior