Mikkeep / turtles

TryHackMeRoomTurtles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Turtles

TryHackMeRoomTurtles

If you want to customize the RiteCMS application files, then make changes to the cms/ritedev/data/sql files. Edit the file with the wanted changed content and generate a new database file sqlite3:

Example for content.db:

sqlite3 content.db < sqlite_content_init.sql

Installation

The provided Ansible script and guide assumes the Ubuntu virtual machine has been created with a user called tester. If your account differs from this, change the occurences of the user within the script and from the below commands.

To SSH into the development machine

ssh -o PubkeyAuthentication=no -o PreferredAuthentications=password username@ipaddress

Make ssh config file for easier access

nano ~/.ssh/config

Host tryhackmevm
	Hostname <vm_ip_here>
	User tester
	PreferredAuthentications=password
	PubkeyAuthentication=no

Copy the git folder to the virtual machine

Use this command from the git root repository folder

scp -r * tryhackmevm:/home/tester

Install pip3 and Ansible on the virtual machine

sudo apt install python3-pip
pip3 install ansible

Install Ansible also via apt

sudo apt install ansible

Go to ansible folder

cd /home/tester/ansible

Create the become pass file

nano pass.txt

Insert the sudo password in here

Deploy the Ansible playbook to install the needed packages and files

ansible-playbook --connection=local build.playbook --become-password-file pass.txt

About

TryHackMeRoomTurtles


Languages

Language:PHP 56.9%Language:JavaScript 22.2%Language:Smarty 14.7%Language:CSS 3.2%Language:PLpgSQL 2.3%Language:HTML 0.7%Language:Shell 0.0%