Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Pradeep Jhuriya
Page 3 of 8
Evil-Winrm : Winrm Pentesting Framework
Introduction Penetration testing is a crucial aspect of securing modern systems and networks. It helps identify potential vulnerabilities that attackers can exploit. With the growing complexity of systems and the plethora of attack vectors available, the tools used for penetration testing have evolved over the years. One such tool, Evil-WinRM, has become a go-to tool for pentesters when it comes to attacking Windows-based systems. What is Evil-WinRM? Evil-WinRM, an open source penetration testing framework, is designed to provide an easy and efficient way to automate various tasks and run complex commands on a remote Windows machine. It is a powerful ...
Read MoreRecursively Deleting Files With a Specific Extension on Linux
Introduction On Linux, there are several ways to recursively remove files with a specific extension (.xyz) in a directory and its subdirectories. Deleting files recursively means deleting all files with the specified extension from the directory and all of its subdirectories. This operation can take a long time if done manually, especially for a large number of files. In this article, we will look at three methods to recursively delete files with a specific extension on Linux. Using the rm command The rm command is a basic file manipulation tool in Linux used to remove files and directories. It can ...
Read MoreLinux tr Command
Introduction The tr (translate) command is a Linux utility that allows you to perform various transformations on text input. Whether you need to change case, remove repeating characters, remove characters, set complements or remove newline characters, tr can handle it all. In this article, we'll explore the various options available with the tr command and show you how to use them to transform text. Syntax of tr Command The basic syntax of the ‘tr’ command is as follows − $ tr SET1 SET2 < inputfile where − SET1 is a set of characters to be replaced by the ...
Read MoreExecute a Command in Multiple Directories on Linux
Introduction As a Linux user, it's common to run the same command in multiple directories. For example, you might want to search for all files with a certain extension or run a shell script in multiple directories. This task can be time-consuming if done manually, and becomes even more tedious as the number of directories increases. Fortunately, Linux provides several methods for running a command across multiple directories efficiently. In this article, we'll take a look at some of these methods and show you how to run a command on multiple directories in Linux. Using the Find Command to Execute ...
Read MoreLinux ps Command
Introduction The ps command is a widely used utility in Linux that provides a snapshot of current processes and their status. It helps monitor running processes, identify process ID (PID), terminal type (TTY), CPU time usage, command name, user ID and other information. This article provides a comprehensive overview of the various use cases of the ps command in real life. Syntax of ps Command The basic syntax of the ps command is as follows − $ ps [OPTIONS] The ps command supports three different syntax styles: Unix, BSD, and GNU. Unix-style syntax can be wrapped and preceded by ...
Read MoreHow to Find and Replace Text in a File on Linux
Introduction In Linux-based operating systems, there are many ways to search (find) and replace text in a file. Depending on the size of a file and the complexity of the find and replace operation, different tools and commands may be more appropriate. In this article, we'll learn a few different methods of finding and replacing text in Linux environments. Using the sed command to find and replace text The sed (stream editor) command line tool is another powerful tool that can be used to find and replace text in files on Linux. This tool is often used to perform more ...
Read MoreWrite a Bash Script that Answers Interactive Prompts
Introduction Interactive prompts are a common feature in many Linux command-line tools and utilities. These prompts allow the user to provide input or make a selection in order to proceed with a task. While interactive prompts can be useful in some situations, they can also be a nuisance when running scripts or automating tasks. In these cases, it can be helpful to know how to automatically answer interactive prompts. Handling Interactive Prompts There are several ways to automatically answer interactive prompts in Linux. One method is to use the expect command, which is a scripting language specifically designed for automating ...
Read MoreJobs and Job Control in Linux
Introduction In the Linux operating system, jobs refer to processes that are running in the background or foreground. Job control refers to the ability to manipulate these processes, including suspending, resuming, and terminating them. This can be useful for managing multiple tasks or for debugging problems with a process. Job control is made possible by the shell, which is a command-line interface that allows users to interact with the operating system. The most common shell in Linux is the Bourne Again Shell (BASH), but other shells such as the Z Shell (ZSH) and the Korn Shell (KSH) are also available. ...
Read MoreThe echo Command in Linux
Introduction The echo command is a fundamental command in Linux that is used to send text or variables to the terminal. It is one of the most basic and essential Linux commands, and mastering it is imperative for beginners to navigate the command line more easily. In this post, we'll take a closer look at the use and advanced features of the echo command. Basic use of echo command The echo command is used to print text to the terminal. It can be used with both single and double quotes, with double quotes allowing the use of variables and special ...
Read MoreLinux watch Command
Introduction The watch command in Linux is a powerful tool that allows you to execute a program periodically, showing output in fullscreen. This command runs the specified command repeatedly, displaying its output and errors. By default, the specified command runs every two seconds and watch runs until interrupted. In this article, we will explore the various options and uses of the watch command. Syntax of watch command The basic syntax of the watch command is − $ watch [options] command The watch command has several options that can be used to customize its behavior. These include − -d, ...
Read More