Geçenlerde kitabın, "Siyah şapka piton" aracılığıyla takip ediyorum tanımlanmamış, sorun olmuştur ama get_mac
işlevini çalıştığınızda konsol özellikle bir hata tükürür:Ubuntu Python: "get_mac" fonksiyonu
NameError: name 'get_mac' is not defined".
Bunun sadece Linux tabanlı bir sorun olup olmadığından emin değilim.
Kodu:
from scapy.all import *
import os
import sys
import threading
import signal
interface="en1"
target_ip="10.0.0.17"
gateway_ip="10.0.0.138"
packet_count=1000
# set up our interface
conf.iface=interface
# turn off input
conf.verg=0
print"[*] Setting up %s"%interface
gateway_mac=get_mac(gateway_ip)
Böyle bir işlev yok. Belki daha önce kitapta tanımlanmış mıydı? –