Most Recent Posts

-

Sorting IPs

on January 1, 2017

I scan my home network frequently. There are a good number of smarthome devices, raspberry pies, phones, laptops, PCs etc. Using nmap to quickly scan a network is too slow for me - and it is a challenge to parse the output for easy reading (of course I would use awk to do that). So I use arp-scan (available in most repositories). So output might look like this:

``` $ sudo arp-scan -I wlo1 192.168.1.0/24 Interface: wlo1, datalink type: EN10MB (Ethernet) Starting arp-scan 1.8.1 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/) 192.168.1.1 44:94:fc:93:4f:26 (Unknown) 192.168.1.2 00:17:88:2a:b5:12 Philips Lighting BV 192.168.1.17 b8:27:eb:42:e9:01 (Unknown) 192.168.1.62 b8:27:eb:42:e9:01 (Unknown) 192.168.1.72 b8:27:eb:42:e9:01 (Unknown)

Continue reading

Quick N Dirty Python Debug Function

on December 22, 2016

Pdb is a great debugger for python but I like to use my own simple debug functions. Here is a simple debug function for python which could definitely be improved:

Continue reading

Raspberry Pi and Xrdp

on December 16, 2016

I decided to have some remote desktop fun with one of my raspberry pies. Remote desktop for the raspberry pi (or any linux machine) can be done so many different ways - but the easiest from my perspective is xrdp. It is available really on any linux distro and works with Windows remote desktop protocol (kinda). It requires that you install xrdp and tightvncserver (under the covers it uses a vnc server - thightvncserver is probably the best choice here). Then as a client on my laptop I use the very good remote desktop client called remmina; again it is availalbe on almost any linux distro.

Continue reading

All Posts