title: Program for ARP scanning
body: <pre><code>#!/usr/bin/python3
  #Fazer arping da conexao
  
  import sys
  from datetime import datetime
  from scapy.all import *
  
  try:
      interface = input ("\n[*] Set interface: ")
      ips = input("[*] Set IP RANGE or Network: ")
  except KeyboardInterrupt:
      print("\n user aborted")
      sys.exit()
  
  print("Scanning...")
  start_time = datetime.now()
  
  conf.verb = 0
  
  ans,unans = srp(Ether(dst = "ff:ff:ff:ff:ff:ff")/ARP(pdst = ips), timeout = 2, iface = interface ,inter= 0.1)
  
  print("\n\tMAC\t\tIP\n")
  
  for snd,rcv in ans:
      print(rcv.sprintf("%Ether.src% - %ARP.psrc%"))
  
  stop_time = datetime.now()
  total_time = stop_time - start_time
  print("\n[*] Scan Completed")
  print("[*] Scan Duration: %s" %(total_time))
  </code></pre>
  
  <p>I found this code on internet and I am trying to understand it.
  I didnt understand :</p>
  
  <pre><code> ans,unans = srp(Ether(dst = "ff:ff:ff:ff:ff:ff")/ARP(pdst = ips), timeout = 2, iface = interface ,inter= 0.1)
  </code></pre>
  
  <p>Why there is a tuple <code>ans,unans</code> ?
  Whats is <code>inter= 0.1</code> ?</p>
  
  <pre><code>for snd,rcv in ans:
          print(rcv.sprintf("%Ether.src% - %ARP.psrc%"))
  </code></pre>
  
  <p>I didnt understand <code>rcv.sprintf</code>. What is this? Why rcv.sprintf instead of print?
  What is <code>conf.verb = 0</code> ?</p>
  
  <p>Could someone explain it?</p>