Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Scaleway Terraform Lab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
POCS
Scaleway Terraform Lab
Compare revisions
8805dad00b60b3124e52b451483e8d42430540cd to f1ac08a717e87d1f0b8f429f6d43ae207df3a8fa
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
pocs/scaleway_terraform_lab
Select target project
No results found
f1ac08a717e87d1f0b8f429f6d43ae207df3a8fa
Select Git revision
Branches
main
renovate/configure
2 results
Swap
Target
pocs/scaleway_terraform_lab
Select target project
pocs/scaleway_terraform_lab
1 result
8805dad00b60b3124e52b451483e8d42430540cd
Select Git revision
Branches
main
renovate/configure
2 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Install kali packags in webtop
· 7d7d163b
Jean JESTIN-SCANVION
authored
2 years ago
7d7d163b
Update packge installation
· f1ac08a7
Jean JESTIN-SCANVION
authored
2 years ago
f1ac08a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
create_lab.tf
+15
-8
15 additions, 8 deletions
create_lab.tf
with
15 additions
and
8 deletions
create_lab.tf
View file @
f1ac08a7
...
...
@@ -96,20 +96,27 @@ resource "null_resource" "provisioner" {
]
}
// Install kali packages
provisioner
"remote-exec"
{
inline
=
[
"docker exec -it webtop bash -c 'apt update -y'"
,
"docker exec -it webtop bash -c 'apt install openvpn git -y'"
,
"docker exec -it webtop bash -c 'apt install nmap john sqlmap kpartx sleuthkit qemu-utils gcc openvpn wfuzz smbclient mysql-client netcat gobuster -y'"
,
"docker exec -it webtop bash -c 'curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod +x msfinstall && ./msfinstall'"
,
"docker exec -it webtop bash -c 'git clone https://github.com/offensive-security/exploitdb.git /opt/exploitdb && ln -sf /opt/exploitdb/searchsploit /usr/local/bin/searchsploit'"
,
"docker exec -it webtop bash -c 'git clone https://github.com/danielmiessler/SecLists.git'"
,
"docker exec -it webtop bash -c 'apt install ruby-full -y && gem install wpscan'"
,
"docker exec -it webtop bash -c 'git clone https://github.com/rezasp/joomscan.git && apt install libwww-perl -y'"
]
}
// Install code-server
provisioner
"remote-exec"
{
inline
=
[
"curl -fsSL https://code-server.dev/install.sh | sh"
,
"mkdir -p /root/.config/code-server/"
,
"echo 'bind-addr: 0.0.0.0:8080
\n
auth: password
\n
password: yfB4W23G
\n
cert: false
\n
' > /root/.config/code-server/config.yaml"
,
"systemctl enable --now code-server@
$
USER"
,
"apt install nmap john sqlmap kpartx sleuthkit qemu-utils gcc openvpn wfuzz smbclient mysql-client netcat gobuster -y"
,
"curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod +x msfinstall && ./msfinstall"
,
"git clone https://github.com/offensive-security/exploitdb.git /opt/exploitdb && ln -sf /opt/exploitdb/searchsploit /usr/local/bin/searchsploit"
,
"git clone https://github.com/danielmiessler/SecLists.git"
,
"apt install ruby-full && gem install wpscan -y"
,
"git clone https://github.com/rezasp/joomscan.git && install libwww-perl"
,
"apt install openvpn -y"
"systemctl enable --now code-server@
$
USER"
]
}
}
This diff is collapsed.
Click to expand it.