Depends what kind of system your running and how the python package is packaged, source, binary etc.
But generally Python Packages are put in (for example) Python2.5/Lib/site-packages
But you can also keep the modules in the same directory as your script.
On windows if its a binary you can just double click the executable and if Python is in your path should pick it up
as for scapy, on Linux/Debian Pretty easy to install using apt. Scapy requires several different modules to install. On windows there is documentation on how to get it to work... it has limitations though
as for the source of this code
basically pretty simple most the work is done in scapy
the key is these lines
Code: Select all
frame = Dot11(addr1=station, addr2=bssid, addr3=bssid)/Dot11Disas(reason=rc)
this creates a Dot11 Packet and makes a disassociation request( note not sure the terminology is correct )
Sendp is a scapy function sendp is faster then send, the value loop = 1 means it will continue looping loop = True
Anyway hope that answers what ya needed