示例#1
0
 def injectCmd(self, cmd):
     radio = dup.dupRadio(self.curPkt)
     dot11 = dup.dupDot11(self.curPkt)
     snap = dup.dupSNAP(self.curPkt)
     llc = dup.dupLLC(self.curPkt)
     ip = dup.dupIP(self.curPkt)
     udp = dup.dupUDP(self.curPkt)
     raw = Raw(load=cmd)
     injectPkt = radio / dot11 / llc / snap / ip / udp / raw
     sendp(injectPkt)
示例#2
0
 def injectCmd(self, cmd):
     radio = dup.dupRadio(self.curPkt)
     dot11 = dup.dupDot11(self.curPkt)
     snap = dup.dupSNAP(self.curPkt)
     llc = dup.dupLLC(self.curPkt)
     ip = dup.dupIP(self.curPkt)
     udp = dup.dupIP(self.curPkt)
     raw = Raw(load=cmd)
     injectPkt = radio / dot11 / llc / snap / ip / udp / raw
     sendp(injectPkt)
示例#3
0
	def injectCmd(self, cmd):
        radio = dup.dupRadio(self.curPkt)
        dot11 = dup.dupDot11(self.curPkt)
        snap = dup.dupSNAP(self.curPkt)
        llc = dup.dupLLC(self.curPkt)
        ip = dup.dupIP(self.curPkt)
        udp = dup.dupUDP(self.curPkt)
        raw = Raw(load=cmd)
        injectPkt = radio / dot11 / llc / snap / ip / udp / raw
        # Scapy function to send the newly crafted packet
		sendp(injectPkt)