We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9911b9a commit 2ea01b5Copy full SHA for 2ea01b5
rpi-dectector-1.py
@@ -1,3 +1,6 @@
1
+#import os
2
+#import platform
3
+#import re
4
import nmap
5
import json
6
@@ -17,6 +20,9 @@ def pi_search():
17
20
item = nm[host]['addresses']
18
21
if nm[host].hostname() == 'raspberrypi' :
19
22
print (nm[host].hostname(),item)
23
+ if 'mac' in nm[host]['addresses']:
24
+ print('mac address found: {}'.format(nm[host]['addresses']))
25
+ print('vendor: {}'.format(nm[host]['vendor']))
26
27
print ("---------------------------")
28
@@ -25,7 +31,7 @@ def main():
31
if rpi_ip_list == []:
32
print ('Running nmap')
33
pi_search()
- #need to do some works to display correctly
34
+
29
35
30
36
if __name__ == "__main__":
37
main()
0 commit comments