Skip to content

Instantly share code, notes, and snippets.

View rferreiraperez's full-sized avatar
💭
I may be slow to respond.

Rubén Ferreira rferreiraperez

💭
I may be slow to respond.
View GitHub Profile
@rferreiraperez
rferreiraperez / windows-copy-data-over-the-network.ps1
Created November 14, 2023 09:41
Copying data over the network in Windows
param(
[string]$Source,
[string]$Destination,
[string]$Log,
[string]$Username,
[string]$Password
)
# Establish network connection
net use $Destination /user:$Username $Password

HERRAMIENTAS DE RED

Comprobar que un equipo responde

ping <ip>

Por defecto, se detiene en la 4ª respuesta

@rferreiraperez
rferreiraperez / cheat-sheat-linux-commands-network.md
Last active March 15, 2024 10:09
Lista de comandos de Linux

HERRAMIENTAS DE RED

Comprobar si el tráfico hacia una dirección IP y un puerto específico

sudo apt-get install netcat
nc -zv  
@rferreiraperez
rferreiraperez / steps-to-configure-empty-vm.sh
Last active November 14, 2023 09:53
Steps to configure empty virtual machine
#!/bin/bash
#
# Steps to configure a new empty virtual machine
#
# Updates
sudo apt update && sudo apt upgrade -y
# Host