On OpenSuse, the package is called libcap-progs. You may need to install the necessary packages. setcap needs to be run with superuser privileges: setcap cap_net_raw=eip /path/to/virtualenv/bin/python3 The capability needed is cap_net_raw=eip and this needs to be set on the python interpreter used and the tcpdump binary using setcap. You may run it as root - not recommended - or you set the necessary capabilities (man 7 capabilities). Lanscan needs special permissions, to be able to open a raw socket. ![]() To make callingĮasier, create the file /usr/local/bin/lanscan with: #!/bin/bash Will automatically be installed within your virtualen. I don’t think, that it will work on Windows or OS X.Ĭreate a virtualenv and call pip install lanscan. Lanscan has been written using Python 3.5, so the chances are good, Let’s scan the default network: # lanscan scanġ92.168.50.124 YotaPhone-1b4fe319cb0f71a1 28:c6:71:01:3a:6d True Yota Devices OY Installation portscan / -no-portscan Let nmap do a simple connect-portscan. vendor / -no-vendor Vendor lookup based on Mac addres. n, -network TEXT The network to scan in CIDR notation or the Scan a network, defaults to default network. The lanscan scan command has a few parameters: $ lanscan scan -help Show interfacesĪ list of all current interfaces: $ lanscan interfacesģ enp0s20f0u1u4 r8152 Realtek RTL8152/RTL8153 Based USB Ethernet Adaptersĥ wlp1s0 iwlwifi Intel(R) Wireless WiFi driver for Linux Show local networksĪ list of all local networks: $ lanscan networksĤ * 192.168.50.0/24 enp0s20f0u1u4 Scan a local network ![]() ![]() Scan Scan a network, defaults to default network. Networks Display a list of available networks. Interfaces Display a list available interfaces Auto-detection of configured interfaces: airport, Ethernet, virtual interfaces, etc. It also gives information about present network interfaces and LanScan is a simple and efficient IPv4 network-scanner that discovers all active devices on any subnet-local or public-that you configure. It scans a given local network and presents all devices on this Lanscan is a Python 3 module, that provides the lanscan consoleĬommand.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |