Tag:Execute command

  • Ubuntu 20.04 apt installation php8.0


    Dependencies required for installation First, we install some dependent packages for later installation: sudo apt install ca-certificates apt-transport-https software-properties-common First, we execute the following command to install PPA: sudo add-apt-repository ppa:ondrej/php Here is a note, that is, half of the execution, the following text needs a carriage return to continue the execution. Press [ENTER] to […]

  • Let’s hit the target 01


    0x00 introduction to target Target address:BoredHackerBlog: Social Network ~ VulnHub Target difficulty: medium Recommended virtual machine: VirtualBox 0x01 content introduction Attack methods involved Host discovery Port scan Service discovery Path crawling Code injection Shell script Intranet information collection Intranet penetration Vulnerability exploitation Password cracking Local rights raising Attack code modification 0x02 environment construction Download the […]

  • Let’s hit the target 02


    0x00 introduction to target Target address:BoredHackerBlog: Cloud AV ~ VulnHub Target difficulty: low (ideas and skills) Recommended virtual machine: VirtualBox 0x01 content introduction Attack methods involved Port scan Web investigation SQL injection Command injection Password explosion Code audit NC series Local rights raising brief introduction Although the difficulty level is low, from the perspective of […]

  • Instance creates its own NPM package, publishes the NPM package and uses


    * preface: NPM is node JS official package management tool. We often use NPM package (“NPM install XXX”) in projects. Why do we need NPM? My understanding is that NPM is to solve:Code reuse;Because the rapid development of new applications based on the existing mature code can greatly improve the development efficiency, “don’t build wheels […]

  • Installation of SAP commerce cloud smartedit


    The extensions to be included during manual installation must be in localextensions The XML file contains the following extensions: cmsbackoffice cmssmartedit cmssmarteditwebservices cmswebservices permissionswebservices previewwebservices smartedit smarteditaddon smarteditwebservices Ysmarteditmodule (provided that there is a need to expand SAP commerce framework or CMS functionality) Manually install addon using the following command line: ant addoninstall -Daddonnames=smarteditaddon -DaddonStorefront.yacceleratorstorefront=<your_custom_storefront> […]

  • Docker desktop is installed on windows11


    1、 Install Hyper-V Create hyper Bat, copy the following code, run the script as an administrator, and actually download the virtual machine that comes with windows ushd “%~dp0″ dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt for /f %%i in (‘findstr /i . hyper-v.txt 2^>nul’) do dism /online /norestart /add-package:”%SystemRoot%\servicing\Packages\%%i” del hyper-v.txt Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL 2、 […]

  • Simple use of Tsung


    The main difference between Tsung and JMeter in stress testing is that the way of concurrent contracting is different. Tsung is multi-process contracting and JMeter is multi-threaded contracting. It is relatively simple for Tsung to simulate massive concurrent requests. Therefore, in view of the pressure test of nginx not long ago, it was convenient to […]

  • Write a front scaffolding tool that belongs to you


    You may have used many front-end scaffolding tools. Have you ever wondered how to write a scaffolding that belongs to you? Scaffolding dependent tools commander.jsCommand line tools download-git-repoGit warehouse code download chalkCommand line output style beautification Inquirer.jsCommand line interaction oraCommand line loading effect Project construction Initialize project Execute after creating the project directorynpm initFollow the […]

  • Golang executes the command operation exec Command


    I won’t say any more nonsense. Let’s just look at the code~ cmd := exec.Command(“cmd”) in := bytes.NewBuffer(nil) cmd. Stdin = in // bind input var out bytes.Buffer cmd. Stdout = &out // bind output go func() { in. Writestring (“node e:/design/test.js\n”) // write your command. There can be multiple lines, “\n” means enter }() […]

  • Explanation of exit status in shell script


    The return value of a command is its exit status, which is used to check the result of command execution (success / failure). If the exit status is 0, the command is executed successfully. If the command fails, the exit status is non-zero.The following table shows the explanation of the return value corresponding to the […]

  • Big data era: how to log in SSH without password?


    Hadoop cluster is composed of many node servers. When we start Hadoop cluster, Hadoop namenodes need to connect and manage these node servers (mainly datanodes). At this time, the system will ask the user to enter the password. The prompt content is the same as that when SSH connects to localhost in the previous article. […]

  • JDK installation and problems on CentOS 7


    For image download, domain name resolution and time synchronization, please clickAlibaba cloud open source image station Download and install using yum useyum -y list javperhapsyum search jdklookupjavaList of related installation packages Yum -y list java search #Yum -y list search demo $ yum -y list java Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile […]