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.
Port Scanner is built on Python 3 and uses some extra libraries such as
from datetime import datetimeascii_banner = pyfiglet.figlet_format("PORT SCANNER")
print(ascii_banner)# Defining a target
if len(sys.argv) ==…
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…
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…
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…
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.
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.
To create a profile section for yourself, follow the steps that are given below.
When you create a repository same as your username, you are…
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.
arr denotes the array.
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
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…
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:
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…
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.
Love to write about life, technology and things that matter.