Skip to content
Snippets Groups Projects
Commit 5e3d54df authored by Nathan Rodet's avatar Nathan Rodet
Browse files

feat: added tools scripts

parent 0326c0f1
No related branches found
No related tags found
No related merge requests found
Pipeline #97072 failed
......@@ -9,22 +9,33 @@ packages:
- curl
- git
- argon2
- pip3
- ffuf
- nmap
- john
- nikto
- dirb
- sqlmap
runcmd:
#
# Cloud-init execute cmd before HOME and USER are set.
#
#
# Cloud-init execute cmd before HOME and USER are set.
#
- "export HOME=/root"
- "export USER=root"
#
# Install Docker
#
- "curl https://forge.grandlyon.com/systemes-dinformation/alpha/pocs/cloud-machinist/cloud-machinist-templates/scaleway-instances-template/-/raw/main/instance-scripts/scripts/docker.sh | bash"
#
# Install Atrium
#
- "curl https://forge.grandlyon.com/systemes-dinformation/alpha/pocs/cloud-machinist/cloud-machinist-templates/scaleway-instances-template/-/raw/main/instance-scripts/scripts/atrium.sh | bash"
#
# Install ttyd
#
- "curl https://forge.grandlyon.com/systemes-dinformation/alpha/pocs/cloud-machinist/cloud-machinist-templates/scaleway-instances-template/-/raw/main/instance-scripts/scripts/ttyd.sh | bash"
\ No newline at end of file
#
# Install Docker
#
- "curl https://forge.grandlyon.com/systemes-dinformation/alpha/pocs/cloud-machinist/cloud-machinist-templates/scaleway-attack-instances-template/-/raw/main/instance-scripts/scripts/docker.sh | bash"
#
# Install Atrium
#
- "curl https://forge.grandlyon.com/systemes-dinformation/alpha/pocs/cloud-machinist/cloud-machinist-templates/scaleway-attack-instances-template/-/raw/main/instance-scripts/scripts/atrium.sh | bash"
#
# Install ttyd
#
- "curl https://forge.grandlyon.com/systemes-dinformation/alpha/pocs/cloud-machinist/cloud-machinist-templates/scaleway-attack-instances-template/-/raw/main/instance-scripts/scripts/ttyd.sh | bash"
#
# Install Tools
#
- "curl https://forge.grandlyon.com/systemes-dinformation/alpha/pocs/cloud-machinist/cloud-machinist-templates/scaleway-attack-instances-template/-/raw/main/instance-scripts/scripts/tools.sh | bash"
......@@ -7,7 +7,7 @@
export USER_PASSWORD_HASH=$(echo -n "$(scw-userdata user_password)" | argon2 "$(echo $RANDOM | md5sum | head -c 12)" -id -l 32 -e)
mkdir -p /root/atrium/data && mkdir -p /root/atrium/letsencrypt_cache
curl https://forge.grandlyon.com/systemes-dinformation/alpha/pocs/cloud-machinist/cloud-machinist-templates/scaleway-instances-template/-/raw/main/instance-scripts/config-files/atrium.yaml -o root/atrium/atrium.yaml
curl https://forge.grandlyon.com/systemes-dinformation/alpha/pocs/cloud-machinist/cloud-machinist-templates/scaleway-attack-instances-template/-/raw/main/instance-scripts/config-files/atrium.yaml -o root/atrium/atrium.yaml
sed -i "s|%atrium_hostname%|$(scw-userdata atrium_hostname)|g" /root/atrium/atrium.yaml
sed -i "s|%project_domain%|$(scw-userdata project_domain)|g" /root/atrium/atrium.yaml
......
#!/bin/bash
# Nmap
# John
# Nikto
# Dirb
# XSStrike
# SQLMap
# Wfuzz
# Fuff
# Gobuster
# Dirbuster
# Exegol
# Make a directory to store the tools
mkdir /root/tools
# Clone the XSStrike repository
git clone https://github.com/s0md3v/XSStrike.git
mv /XSStrike /root/tools
# Pip install Wfuzz
pip3 install wfuzz
# Python3 pip install Exegol
python3 -m pip install exegol
# Make a directory to store the tools
mkdir -p /root/tools
# Clone the XSStrike repository
git clone https://github.com/s0md3v/XSStrike.git /root/tools/XSStrike
# Create a symbolic link to xsstrike.py and make it executable
ln -s /root/tools/XSStrike/xsstrike.py /usr/local/bin/xsstrike
chmod +x /usr/local/bin/xsstrike
\ No newline at end of file
......@@ -7,7 +7,7 @@
mkdir -p /root/ttyd
curl -k -L -s https://github.com/tsl0922/ttyd/releases/download/1.7.3/ttyd.x86_64 -o root/ttyd/ttyd.x86_64
chmod +x /root/ttyd/ttyd.x86_64
curl https://forge.grandlyon.com/systemes-dinformation/alpha/pocs/cloud-machinist/cloud-machinist-templates/scaleway-instances-template/-/raw/main/instance-scripts/config-files/ttyd.service -o etc/systemd/system/ttyd.service
curl https://forge.grandlyon.com/systemes-dinformation/alpha/pocs/cloud-machinist/cloud-machinist-templates/scaleway-attack-instances-template/-/raw/main/instance-scripts/config-files/ttyd.service -o etc/systemd/system/ttyd.service
sed -i "s|%user_password%|$(scw-userdata user_password)|g" /etc/systemd/system/ttyd.service
systemctl enable ttyd.service && systemctl start ttyd.service
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment