manish
Ping and NMAP as REST API
I came across this idea while working on problem statement, where requirement was to run ping and nmap checks on devices and hosts from a jump server. Best way to offer nmap and ping check without getting users on jump server was to offer ping and nmap in some form of web service. To do […]
Python Dictionary – versatile data Structure
Python is really simple and powerful when you have to handle complex data objects. Dictionary is one of the popular data structures used in python. Just thought to put up quick code explaining what all you can do with a dictionary object in really simple way. Here is the output you get upon executing above […]
LDAP operations using Python
Normal command line LDAP tools such as ldapsearch, ldapadd, ldapmodify etc are handy when you are playing with standalone data. But if you want to do operations such as, taking user data from CSV in LDAP or get a neat formatted output for LDAP queries then python-ldap module is really what you need. Here is […]
Vanguard orros 10×42 binoculars review
After my recent visit to Jim Corbett nation park, I realised what I missed in absence of binoculars. I started looking for good binoculars and short listed celestron and Nikon. But after reading reviews I found that budget binoculars from these brands were slightly fragile with loose parts. First and foremost, quick zoom test 🙂 […]
SNMP polling using python
To play with SNMP using python install easysnmp python module. SNMP v2 Let us take a sample device Poll device using snmpwalk to get sysDescr value Python code to get same Save above code as pysnmpv2.py and execute SNMP v3 Lets take a sample device and its SNMP v3 parameters First using command line you […]
Add static IPs on raspbian
Most of the times you need raspberry pi remote access over static IP. Here is quick note on how to add static IP on raspbian OS. Edit /etc/dhcpcd.conf as sudo and add following lines to add static IPs on ethernet and wifi interfaces of raspberry pi. Reboot system and you can now access raspberry on […]
Agentless predictive asset scan on networks
This is an agent less solution to scan complete network and build an asset report. All you need is a Linux host with python3 and pythonping, nmap and ipaddress python modules along with nmap Linux package. Since we are not authenticating to hosts and just doing a predictive scan using underline nmap tool, so report […]
PySpark on python3 and Debian
Install openjdk 8 To install openjdk 8 on debian 10, follow steps mentioned at https://linuxize.com/post/install-java-on-debian-10/pyspark does not works well with newer versions of Java, so stick with openjdk or oracle java 8. Install PySpark Next install pyspark using python pip, I prefer python3 so installation goes with pip3 PySpark brings along required hadoop components Basic […]