bytes.cat

La wiki d'FP d'informàtica

Eines de l'usuari

Eines del lloc


playground:playground

Diferències

Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.

Enllaç a la visualització de la comparació

Següent revisió
Revisió prèvia
playground:playground [2021/09/29 09:40]
127.0.0.1 edició externa
playground:playground [2023/10/05 09:33] (actual)
enric_mieza_sanchez
Línia 1: Línia 1:
 ====== PlayGround ====== ====== PlayGround ======
  
 +
 +===== Caixes - Wrap =====
 +
 +
 +<WRAP important>
 +Un advertiment o //warning//.
 +</WRAP>
 +
 +
 +===== icons =====
 +
 +https://pictogrammers.com/library/mdi/
 +
 +{{mdi>alert-circle?color=red&size=36}}
 +{{mdi>account-multiple?color=red&size=36}}
 +
 +{{mdi>check-circle?color=green&size=36}}
 +{{mdi>account-group?color=green&size=36}}
 +
 +{{mdi>alert-circle?color=red&size=36}}
 +{{mdi>account-multiple?color=red&size=36}}
 +{{mdi>account-multiple?color=red&size=36}}
 +
 +===== Tab Box plug-in =====
 +
 +<html><strong>This is my bold text</strong></html>
 +
 +
 +<tabbox Versió Linux>
 +
 +Java lalala
 +
 +<tabbox Versió Windows>
 +
 +Windows lalala
 +
 +</tabbox>
 +
 +
 +
 +===== Vagrant =====
 +
 +Vagrantfile per a tenir un "client" linux passant per una gateway Kali i poder inspeccionar el trànsit amb Wireshark.
 +
 +<file ruby Vagrantfile >
 +# -*- mode: ruby -*-
 +# vi: set ft=ruby :
 +
 +Vagrant.configure("2") do |config|
 +
 +  config.vm.define "client" do |client|
 +    client.vm.box = "ubuntu/jammy64"
 +    client.vm.network "private_network", ip: "192.168.56.100"
 +    client.vm.provider "virtualbox" do |vb|
 +      # Display the VirtualBox GUI when booting the machine
 +      vb.gui = true
 +      # Customize the amount of memory on the VM:
 +      vb.memory = "4096"
 +    end
 +  end
 +
 +  config.vm.define "gateway" do |gateway|
 +    gateway.vm.box = "kalilinux/rolling"
 +    gateway.vm.network "private_network", ip: "192.168.56.10"
 +    gateway.vm.provider "virtualbox" do |vb|
 +      # Display the VirtualBox GUI when booting the machine
 +      vb.gui = true
 +      # Customize the amount of memory on the VM:
 +      vb.memory = "4096"
 +    end
 +  end
 +
 +end
 +</file>
 +
 +
 +===== Mes coses =====
 +
 +Seguint [[https://how-to.fandom.com/wiki/How_to_set_up_a_NAT_router_on_a_Linux-based_computer|aquest article]]:
 +
 +Per canviar la default gateway al client:
 +<file bash change_default_gateway.sh>
 +route add default gw 192.168.56.10
 +netstat -rn
 +</file>
 +
 +Per fer de gateway a Kali:
 +<file bash gateway.sh>
 +modprobe iptable_nat
 +echo 1 > /proc/sys/net/ipv4/ip_forward
 +iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
 +iptables -A FORWARD -i eth1 -j ACCEPT
 +</file>
 +
 +
 +====== Imatges =====
 +
 +
 +{{:android_demanant_permisos.png}}
 +
 +
 +{{ :android-camera.jpg?direct }}
 +
 +{{scrum:backlog-infrastructure.png}}
 +
 +====== Taules =====
 +
 +^ Heading 1      ^ Heading 2       ^ Heading 3          ^
 +| Row 1 Col 1    | Row 1 Col 2     | Row 1 Col 3        |
 +| Row 2 Col 1    | some colspan (note the double pipe) ||
 +| Row 3 Col 1    | Row 3 Col 2     | Row 3 Col 3        |
playground/playground.1632908400.txt.gz · Darrera modificació: 2021/09/29 09:40 per 127.0.0.1