Pentesting-Exploitation Programs and Commands , Protocols Network / Ports
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get install wget apt-transport-https gnupg lsb-release -y | |
| wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --dearmor | sudo tee /usr/share/keyrings/trivy.gpg > /dev/null | |
| echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/trivy.list | |
| sudo apt-get update | |
| sudo apt-get install trivy -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo vi /etc/nginx/sites-available/mrcloudbook.online | |
| Paste in the following configuration block, which is similar to the default, but updated for our new directory and domain name: | |
| Paste the below (replace your domain) | |
| upstream jenkins{ | |
| server 127.0.0.1:8080; | |
| } | |
| server{ | |
| listen 80; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Prequesites : | |
| 4 cpus max and min used 2 in this video | |
| 20 gb storage | |
| java 8 | |
| Aws account | |
| ==> sudo apt update #update packages | |
| Now, install the Java OpenJDK 8 via the apt command below. Input Y when asked to confirm the installation and press ENTER to proceed. | |
| ==> sudo apt install openjdk-8-jdk # install java8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| prerequisites for JFrog | |
| small or medium instance t2 ytpe | |
| 2cpus | |
| 8081 and 8082 and ssh ports | |
| openjdk 11 | |
| ==> $ sudo apt update | |
| First of all add the GPG key by entering the following command. | |
| ==> sudo apt install default-jre |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pipeline { | |
| agent any | |
| stages { | |
| stage('Veracode Scan') { | |
| steps { | |
| // Use Veracode plugin or API to scan code | |
| script { | |
| // Example API call to upload and scan code | |
| sh 'curl -u "username:password" -F "file=@path/to/code.zip" https://analysiscenter.veracode.com/api/5.0/uploadandscan.do' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Step 1: Stop All Services | |
| echo "Stopping all services..." | |
| sudo systemctl stop postfix | |
| sudo systemctl stop dovecot | |
| sudo systemctl stop apache2 | |
| sudo systemctl stop nginx | |
| sudo systemctl stop mysql | |
| # Add other services to stop here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -xe | |
| # | |
| # jenkins backup scripts | |
| # https://github.com/sue445/jenkins-backup-script | |
| # | |
| # Usage: ./jenkins-backup.sh /path/to/jenkins_home /path/to/destination/archive.tar.gz | |
| readonly JENKINS_HOME="$1" | |
| readonly DEST_FILE="$2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 3 docker run -d -p 5000:5000 --restart=always --name my-registry registry:2 | |
| 4 docker pull nginx:latest | |
| 5 docker image tag nginx:latest localhost:5000/nginx:latest | |
| 6 docker push localhost:5000/nginx:latest | |
| 7 docker pull httpd:latest | |
| 8 docker image tag httpd:latest localhost:5000/httpd:latest | |
| 9 docker push localhost:5000/httpd:latest | |
| 10 docker image prune -a | |
| 11 ls | |
| 12 docker images |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat > text.list <<-EOF | |
| erti | |
| ori | |
| sami | |
| EOF |
NewerOlder