SHARE
TWEET

CLIENT SIDE PORT KNOCK

Malic Oct 16th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from scapy.all import *
  2. import time
  3. srcIp=input("enter ip address XXX.XXX.XXX.XXX")
  4. dstIp=input("enter ip address XXX.XXX.XXX.XXX")
  5.  
  6. desPort=[11111,22222,33333]
  7. for i in desPort:
  8.     packet=IP(dst="192.168.1.28",src="192.168.1.10")/TCP(dport= i,flags="S")
  9.     time.sleep(2)
  10.     send(packet,count=1)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top