February 21, 2018, 05:19:59 PM
Welcome, Guest. Please login or register.

If you are not part of the solution...You are part of the precipitate.

Author Topic: Port knocking script: knocker.sh  (Read 2137 times)

Offline TAPE

  • Top Hat Member Moderator
  • Elite
  • ********
  • Posts: 1249
  • Internets: +193/-0
Port knocking script: knocker.sh
« on: March 11, 2016, 06:33:35 AM »
Hey Guyz & Galz,

Ch3rn0byl, Grey-Matter and I were having a blast with one of the vulnhub VM's called knockknock, this VM required some portknocking to be done and how / why it wasnt working as I expected it to was really, really annoying me..

So after we (ok, well ch3rn) figured out how to get the port knocking to work consistently I still couldn't let it go and had to script
something to get it off my chest, outta my head :D

Enter knocker.sh !

Help info & options (-h switch);

Some examples (-x switch);

Version info (-v switch);

Some feedback if you don't give sufficient / correct input;

[size=78%]knocker.sh in action on 3 ports;[/size]

Knocking on the same 3 ports, but repeating the process 3x ;

Knocking on all possible sequences of the given ports;

And the one it was actually kinda made for.. knocking on all ports in all sequences after getting port info from NetCat banner grabbing on port 1337;

Useful ? Well, probably only of you are doing that particular VM and have forgotten how to do the knocking sequence... lol

But in any case fun to make and informative if you are new to port knocking.

Any feedback appreciated especially if you encounter bugs or have improvement suggestions !

Enjoy ;P

Download here;
« Last Edit: March 11, 2016, 11:16:04 AM by TAPE »
Take all the advice you like and then tell everyone to **** off and do your own thing -- Gitsnik

Offline ch3rn0byl

  • Top Hat Member
  • Experienced
  • ********
  • Posts: 192
  • Internets: +1338/-0
  • Grumpy Old Man with Mounds of Salt
Re: Port knocking script: knocker.sh
« Reply #1 on: March 11, 2016, 01:15:49 PM »
haha naw man, WE figured out that badboy!! :)
Will *personally* drive the fucking hour to rip the computer out of your hands

Offline H4v0K

  • Administrator
  • Elite
  • *****
  • Posts: 1020
  • Internets: +986/-1
Re: Port knocking script: knocker.sh
« Reply #2 on: March 11, 2016, 03:14:52 PM »
Cheaters :P  ......... Very nice TAPE ill have to try it out . i don't think i ever tried that VM

Offline GalaxyNinja

  • Global Moderator
  • Elite
  • *****
  • Posts: 1734
  • Internets: +96/-0
  • My password is **********
Re: Port knocking script: knocker.sh
« Reply #3 on: March 11, 2016, 04:42:42 PM »
Loving this!  :)
The script, or a variant may come in handy in the future....  :D
A computer is only as strong as its user! -R4v3n

Offline b4b3w

  • s!nCe 1995
  • Top Hat Member
  • Experienced
  • ********
  • Posts: 150
  • Internets: +10/-1
Re: Port knocking script: knocker.sh
« Reply #4 on: March 12, 2016, 01:34:29 PM »
thanks Tape for your nice tutorial and you nice script :D
Security is an Illusion
the Matrix has you...