Ausnahme gefangen: SSL certificate problem: certificate is not yet valid ๐Ÿ“Œ VPS-Docker-For-Pentest - Create A VPS On Google Cloud Platform Or Digital Ocean Easily With The Docker For Pentest

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š VPS-Docker-For-Pentest - Create A VPS On Google Cloud Platform Or Digital Ocean Easily With The Docker For Pentest


๐Ÿ’ก Newskategorie: IT Security Nachrichten
๐Ÿ”— Quelle: feedproxy.google.com


Create a VPS on Google Cloud Platform or Digital Ocean easily with the docker for pentest included to launch the assessment to the target.

Requirements
  • Terraform installed
  • Ansible installed
  • SSH private and public keys
  • Google Cloud Platform or Digital Ocean account.

Usage

1.- Clone the repository
git clone --depth 1 https://github.com/aaaguirrep/vps-docker-for-pentest.git vps
cd vps

2.- Credentials

For Google Cloud Platform
  • Create a new project.
  • Create service account with "Compute Admin" role and download a key in json format in credentials folder.
  • Rename the key to pentest.json
  • Enable "Compute Engine API" for the project.

For Digital Ocean
  • Create a Personal access tokens with write permission and copy it. See Tutorial

SSH Private and Public keys
  • Inside credentials folder run ssh-keygen -t rsa -f pentest in the terminal. Empty passphrase is ok.
  • It creates two files: private and public key.

3.- Terraform

Google Cloud Platform
  • Enter to gcp folder and modify the next value:
    • In main.tf file change the project value with your project-id.
  • Run the next commands:
# Initialize terraform provider
$ terraform init
Terraform has been successfully initialized!

# Create the resources
$ terraform apply -auto-approve
Apply complete! Resources: 3 added, 0 changed, 0 destroyed.
Outputs:
external_ip = x.x.x.x
  • Copy the external_ip value
Note: The instance type and the region used are: n1-standard-1 and us-central1. You can change the values on server.tf and main.tf
Demo

Digital Ocean
  • Enter to digital-ocean folder
  • With the personal access token copied run export TF_VAR_do_token="Personal_Access_Token_Here"
  • Run the next commands:
# Initialize terraform provider
$ terraform init
Terraform has been successfully initialized!

# Create the resources
$ terraform apply -auto-approve
Apply complete! Resources: 3 added, 0 changed, 0 destroyed.
Outputs:
external_ip = x.x.x.x
  • Copy the external_ip value
Note: The droplet type and the region used are: s-2vcpu-4gb and nyc3. You can change the values on server.tf and variables.tf
Demo

4.- Ansible
  • Enter to ansible folder
  • In hosts.yaml change the x.x.x.x by external_ip value copied.
  • Run the next command:
$ ansible-playbook playbook.yaml
TASK [Configuration finished] *******************************************************
ok: [x.x.x.x] => {
"msg": "System configured correctly."
}
Demo

5.- Access to VPS
  • In gcp or digital-ocean folder run the next command. Change x.x.x.x by external_ip value copied.
# Access to VPS
$ ssh pentest@x.x.x.x -i ../credentials/pentest
Demo

6.- Destroy the VPS
  • In gcp or digital-ocean folder run the next command.
# Destroy the resource
$ terraform destroy -auto-approve
Note: For Digital Ocean, if you dont have a default VPC created in the region used it shows an error to destroy the VPC but no problem, it will destroy the others resources.



...



๐Ÿ“Œ How to Watch โ€˜Oceanโ€™s 11,โ€™ โ€˜Oceanโ€™s 12,โ€™ and โ€˜Oceanโ€™s 13โ€™ on Netflix Anywhere


๐Ÿ“ˆ 45.53 Punkte

๐Ÿ“Œ PostgreSQL Migration From Digital Ocean DBaaS to Digital Ocean Droplet


๐Ÿ“ˆ 41.89 Punkte

๐Ÿ“Œ Gรผnstige VPS - was ist ein Virtual Private Server (VPS)? - Windowspower.de


๐Ÿ“ˆ 31.67 Punkte

๐Ÿ“Œ Using VPS for Bug Bounty, comparing VPS providers


๐Ÿ“ˆ 31.67 Punkte

๐Ÿ“Œ Linux VPS vs. Windows VPS: Which One Should You Choose?


๐Ÿ“ˆ 31.67 Punkte

๐Ÿ“Œ Ocean-wide Sensor Array Provides New Look at Global Ocean Current


๐Ÿ“ˆ 30.35 Punkte

๐Ÿ“Œ Und Microsoft so: Cloud, Cloud, Cloud, Cloud, Cloud, Cloud, Cloud


๐Ÿ“ˆ 27.23 Punkte

๐Ÿ“Œ The Orphaned Internet โ€“ Taking Over 120K Domains via a DNS Vulnerability in AWS, Google Cloud, Rackspace and Digital Ocean


๐Ÿ“ˆ 26.83 Punkte

๐Ÿ“Œ Digital Ocean: Cloud-Hoster lรถscht versehentlich Primรคrdatenbank


๐Ÿ“ˆ 24.83 Punkte

๐Ÿ“Œ Mounted Digital Ocean cloud file system with sshfs on local Xubuntu Thunar. Razor-sharp beauty of Linux!


๐Ÿ“ˆ 24.83 Punkte

๐Ÿ“Œ Reimagining Digital Transformation with Capgeminiโ€™s Digital Cloud Platform for Restaurants on AWS


๐Ÿ“ˆ 21.83 Punkte

๐Ÿ“Œ HTC U (Ocean) To Feature 6GB of RAM and Snapdragon 835 Platform


๐Ÿ“ˆ 21.58 Punkte

๐Ÿ“Œ World's First Ocean Hybrid Platform Converts Tidal Waves Into Energy


๐Ÿ“ˆ 21.58 Punkte

๐Ÿ“Œ Western Digital's My Cloud NAS Devices Turn Out to Be Easily Hacked


๐Ÿ“ˆ 21.38 Punkte

๐Ÿ“Œ How to Build a C2 Infrastructure with Digital Ocean โ€“ Part 1


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ My Digital Ocean droplet is being brute forced. What do I do?


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ sed not working on my digital ocean droplet


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ Digital Ocean Service weak authentication


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ Digital Ocean Service weak authentication


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ Digital Ocean says it exposed customer data after it left an internal document online


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ Digital Ocean springs a leak: Miscreant exploits hole to peep on unlucky customers' billing details for two weeks


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ Digital Ocean dumps Mailchimp after attack leaked customer email addresses


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ Digital Ocean dumps Mailchimp after attack leaked customer email addresses


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ Digital Ocean Service schwache Authentisierung


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ Deploy a containerised Fast API application in Digital Ocean


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ Top 5 Digital Ocean Alternatives 2023


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ Learn how to deploy to Digital Ocean


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ How to Build a Command & Control Infrastructure with Digital Ocean: C2K Revamped


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ How to Build a Command & Control Infrastructure with Digital Ocean: C2K Revamped


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ Remotely accessing ubuntu terminal to connect to my digital ocean server


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ Linux Machines on Digital Ocean With 100 Bucks Credit


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ Digital Ocean's 6th Annual 'Hacktoberfest' Celebrates Open Source and Environmental Projects


๐Ÿ“ˆ 20.94 Punkte











matomo