A Simple Port Scanner Using Python.

Sometimes we need to scan for open ports on a machine or host for our work or for security. We mostly use Nmap or any other port scanner for this work.

But sometimes all we need is a simple port scanner, not a complicated one. So in this article, we are going to create our own port scanner with python.

Let’s Build One

Port Scanner is built on Python 3 and uses some extra libraries such as socket and pyfiglet(For Banner).

import pyfiglet 
import sys
import socket
from datetime import datetime
ascii_banner = pyfiglet.figlet_format("PORT SCANNER")
# Defining a target
if len(sys.argv) ==…

Python Scripting Is One Of The Powerful Tool We Have And Browser Automation Is One Of Them

Python is one of the best tools a developer can have. Giving power to a user the power to solve daily problems or create an advanced application. Browser automation is one of them.

Just suppose you are filling some forms daily on the web from a file and wasting hours doing this or doing another browser task. And you wish there should be a tool that can do this for you so you can do more productive things.

So, here we are with selenium with python. It automates and controls browser for you.


We need to install Selenium module and…

Everything you need to know to get started with Dart programming language.

Most of the time, we spend watching hours of content on youtube or other sites, and all we want is to get started with that language. If you’re going to be a better developer, then you need to learn all the basic concepts, but if you want to build things as fast as possible, then all you need is a crash course.

Why learn Dart programming?

Dart is a relatively simple, modern, and highly efficient programming language. Dart is a client-optimized programming language for apps on multiple platforms. Dart is developed by Google and used to build mobile, desktop, server…

Everything You Need To Know About Keen

Google Keen

Google’s launched a new app called Keen, which is “a place to grow and share your interests with loved ones, and find things that will help in making this precious life count.”

“On Keen, which is a web and Android app, you say what you want to spend more time on, and then curate content from the web and people you trust to help make that happen. You make a “keen,” which can be about any topic, whether it’s baking delicious bread at home, getting into birding, or researching typography. Keen lets you curate the content you love, share your…

The new feature of GitHub is gold.

Github’s new profile section feature is here. This fantastic update is under development. If you want to use this feature, you have to create a repo Username and create a file README.md, and now you can design your GitHub profile using README.md.

Now Less Headache

Previously we were using Github pages or other platforms to create a Profile section to show our skills. Now you don’t have to use another GitHub page to showcase your projects, your repository.

Enabling This Feature

To create a profile section for yourself, follow the steps that are given below.

Create a USERNAME/USERNAME repo on Github:

When you create a repository same as your username, you are…

Everything you need to know to get started with NumPy.

Numpy is an open-source numerical library for Python. It provides a high-performance multidimensional array object and tools for working with these arrays.

Sometimes we need a cheat sheet to go through instead of wasting our time on long articles. That’s why we created this cheat sheet for you.

Here arr denotes the array.

Importing Numpy

Before getting started with numpy we have to import it.

import numpy as np


Numpy provides many inbuilt methods for exporting and importing files.

np.loadtxt('file.txt')                     Saving from a text file
np.genfromtxt('file.csv',delimiter=',') Saving from a CSV file
np.savetxt('file.txt',arr,delimiter=' ') Writes to a text file

Let’s Explore Array Data Structures.

An array can stores elements in contiguous memory locations in a ram. So, you are thinking now what do I mean by contiguous memory locations. But before that, let’s see how memory works.

When we run a program, our computer keeps the variables or data, and it stores it in RAM. Ram is more like a bookshelf, where each block holds a data of one byte(8 bits), and every block has a number. That number is the location of the memory. In actuality, the numbers are in the hexadecimal form.

RAM is connected to the processor with the help of…

Searching a page on the web or retrieving a record from a database, searching algorithms are a helpful tool to use.

Search algorithms are the best tool to retrieve pieces of information from a data structure. Searching algorithms are classified based on their mechanism of searching style. We can classify them into two categories:

  1. Sequential Search: Sequential Search algorithms are those who sequentially search a data structure, like linear Search
  2. Interval Search: We use interval search algorithms in sorted data structures. Comparision to linear searching these types of algorithms are more efficient and fast. An example of this type of search algorithm is Binary Search. …

A complete walkthrough guide to writing an API.

An API (Application Programming Interface) is a set of rules by which two programs can communicate with each other. An API can be used to return data, files, and additional information. In simple terms, it’s an abstraction so other people can utilize the functionality of that application without knowing business logic.

Let’s learn it by an example: suppose you are in a restaurant where the waiter is an API, and the kitchen is the server. You make an order to that waiter, and then that waiter goes to the kitchen and places your order to the chef, and then the…

From starting as a beginner to mastering a field, join him in this story, and experience the learning.

Here, I’m going to share things I have learned so far. I hope you are going to learn something from it.

One thing that I always keep in mind that I’m responsible for whatever I do in my life. If I have not achieved something in my life that means I have to work harder to achive it, and it doesn’t mean that I’m unable to achieve it.

Since my childhood, I always feel a connection towards technology. I ever wonder how it works internally.

🐱‍💻 My Journey In Programming:

Rajesh Kumar

Love to write about life, technology and things that matter.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store