Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

shansing/xavior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

6 Commits

Repository files navigation

xavior

a tcp forwarder/tunnel with xor

Experimental and insecure. NO WARRANTY. Use at your own risk!

Usage

xavior
 -l <listenHost> listened address 
 -r <remoteHost> remote address forwarding to 
 -sp <sendPassword> password when sending data 
 -rp <receivePassword> password when receving data 

Due to the nature of XOR, there is no need to distinguish the server and client, so the following command can be executed on the server side and the client:

 ./xavior -l "0.0.0.0:2222" -r "127.0.0.1:22" -sp "123456" -rp "123456"

You can specify different passwords for downstream and uplink. That adds a little security to active detection. But please note that it is still insecure!

Example

Let's say you want to encrypt traffic between your computer and the SSH server (10.10.10.10:22).

Execute this on your SSH server (10.10.10.10):

 ./xavior -l "0.0.0.0:2222" -r "127.0.0.1:22" -sp "ChangeTh1sToARandomLonger0ne123456" -rp "ChangeTh1sToARandomLonger0ne654321"

On your computer, execute:

 ./xavior -l "127.0.0.1:5555" -r "10.10.10.10:2222" -sp "ChangeTh1sToARandomLonger0ne123456" -rp "ChangeTh1sToARandomLonger0ne654321"

Right, no need to swap the -sp and -rp. Then you can log in to your SSH server through the XOR tunnel:

ssh username@127.0.0.1 -p5555

which is the replacement of

ssh username@10.10.10.10 -p22

Windows is also supported.

Build

Build xavior as you would a normal go lang program.

go build -ldflags "-s -w" xavior.go

Contribute

Well, it is merely a learning project. Please devote your valuable time to other ones.

About

a tcp forwarder/tunnel with xor

Resources

License

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /