You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# hybrid-sec !
|
|
|
|
|
|
|
|
|
|
|
|
## LabInstance sec
|
|
|
|
|
|
|
|
|
|
|
|
![alt text](images/swarmlab-network.png "")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Quickstart
|
|
|
|
|
|
|
|
This is a quickstart guide of howto use this *LabInstance to deploy Linux sec systems*
|
|
|
|
|
|
|
|
### HowTo use it
|
|
|
|
|
|
|
|
|
|
|
|
### Default Configuration
|
|
|
|
|
|
|
|
- Working Directory
|
|
|
|
|
|
|
|
> /project
|
|
|
|
|
|
|
|
- Default user
|
|
|
|
|
|
|
|
> docker
|
|
|
|
|
|
|
|
- Default password
|
|
|
|
|
|
|
|
> docker
|
|
|
|
|
|
|
|
- Default password4root
|
|
|
|
|
|
|
|
> pass
|
|
|
|
|
|
|
|
|
|
|
|
#### Find lab workers
|
|
|
|
|
|
|
|
|
|
|
|
> ifconfig
|
|
|
|
>
|
|
|
|
> nmap -sP 172.130.0.0/24
|
|
|
|
>
|
|
|
|
> or
|
|
|
|
>
|
|
|
|
> /project/bin/swarmlab-nmap
|
|
|
|
|
|
|
|
|
|
|
|
#### connect to workers
|
|
|
|
|
|
|
|
```bash
|
|
|
|
ssh docker@[IP]
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
#### Create hosts file
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
/project/bin/swarmlab-nmap > /project/hosts
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
**NOTE:** copy files to all clients
|
|
|
|
|
|
|
|
```bash
|
|
|
|
while read -r line;
|
|
|
|
do
|
|
|
|
scp /project/file docker@$line:/some_dir/file
|
|
|
|
done < /project/hosts
|
|
|
|
```
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**MORE INFO**
|
|
|
|
|
|
|
|
See
|
|
|
|
|
|
|
|
- <a href="http://docs.swarmlab.io/SwarmLab-HowTos/labs/sec/ex-1_iptables.adoc.html" target="_new">Sec1</a>
|
|
|
|
- [sec2](http://docs.swarmlab.io/SwarmLab-HowTos/labs/sec/ex-2_iptables.adoc.html){target="_blank" rel="noopener"}
|
|
|
|
- [sec3](http://docs.swarmlab.io/SwarmLab-HowTos/labs/sec/ex-3_iptables.adoc.html){target="_blank"}
|
|
|
|
- [sec4](http://docs.swarmlab.io/SwarmLab-HowTos/labs/sec/ex-3a_iptables-flow-chart.adoc.html){target="_blank"}
|
|
|
|
|