Skip to content

pooladkhay/knocklock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KnockLock

a simple implementation of Port Knocking

How to run

Make sure Go compiler is installed on your machine

git clone https://github.com/pooladkhay/knocklock.git
cd knocklock 
go run .

Program wil start listening on four ports which are hard-coded. Expected knocking sequence is: 2002, 6006, 3003, 1001

Open a new terminal window and try connecting using ssh:

ssh root@127.0.0.1 -p 2002

or netcat:

nc 127.0.0.1 2002

Try different sequences and see the results.

I have also added some comments to explain the code inside main.go

About

a simple implementation of Port Knocking

Resources

License

Stars

Watchers

Forks

Languages