June 24, 2017, 03:33:29 AM
Welcome, Guest. Please login or register.

There are two rules for success: #1 Never Tell Everything You Know.

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

Offline TAPE

  • Top Hat Member Moderator
  • Elite
  • ********
  • Posts: 1247
  • Internets: +192/-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;
http://www.mediafire.com/download/rsdd9cbb6b3ay2g/knocker_v0-1.sh
« 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: 186
  • Internets: +1337/-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!! :)
The quieter you become, the more you are unlikely to sound stupid.

Offline H4v0K

  • Administrator
  • Elite
  • *****
  • Posts: 1017
  • 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: 1713
  • Internets: +95/-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

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...