Steve Borba

My notes, I hope they help you, feel free to comment/add to them

Author: sjborbajr

SMTP

Quick Note on sending an email with just using putty or telnet putty -raw -P 25 192.168.7.251 HELO home.steveborba.com MAIL FROM: steve@steveborba.com RCPT TO: steve@steveborba.com DATA From: “Someone” To: “Myself” Subject: Testing email – 1 Steve, Testing this email thing. Thank you, Steve . quit

Basic Linux Setup

apt install -y netscript-ipfilter vim open-vm-tools sudo useradd steve -c “Borba, Steven J Jr” -m -G sudo -s /bin/bash sudo -usteve mkdir -p -m=0700 ~steve/.ssh echo “ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDm17k7lt1wuRsDGTs/xRCHtgy5byA2/EYmd0pJ0hmaYQns5D8XMXf6QsxQ6TBO1lkhZI8Nb1+V/An4Pc3M8R4Ftt5QIb8oyQqMOjRN8K8fFawK62eSgkDLmULb0Su3MFy9uSdbmDSaFGvK5dCNnUQKbViXLTHp7WFl/CR8NvD1ZCGtuU4FCQtpaLhL80AwwdcSXNXo5dKExG5XLSNHJdwk1lvEOMQz2VRqZbbvCgi2Aol+JWN97OLEnZBWhQjLksVwsbgHrgbtquwmQdjMX1WLBSgkhUo7i4+I0BgOdkdwSLdk7ZGq9a0syOIgvsaMkKt4T/fp/MAAiHtKgOGYsSTrcIcKm9BHbnuxjHPllKsivq22cTyguLQd/2hMdl/IWJhB675+C3v4uCKgm9RjSj72Iczmr1xODTEQNHO71v9Vxj3JVrk72umJMUCVYW0PxdfHDnihOwej39z45aLXz3UhrjUVHmWtFdhox7NThV7HYHlOVWaL9KLjJihPCDJ84/8= steve@sborba” | sudo -usteve tee ~steve/.ssh/authorized_keys sudo chmod 600 ~steve/.ssh/authorized_keys echo “net.ipv4.tcp_timestamps = 0 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1” >> /etc/sysctl.conf sysctl -p […]

Home Automation

I am working on setting up Home Automation and a lot of people call it Smart Home, but I don’t like that, just like calling Machine Learning AI. Half of the reason for this is just to document what I have now. Now after saying that, I am going to list my current Home Automation […]

CA with PANOS

First Generate a Root (this could be the CA you deploy using Global Protect or Group Policy or whatever you can) Then you would want to create an intermediate CA (this could be the decrypt CA) You should also create a new root that isn’t deployed to clients and use as untrusted CA.

WOL with Powershell

Here is a Powershell Script to send a WOL packet (and I’ve had it work over a routed connection, but it depends if the router will broadcast if doesn’t have arp for the IP): function Send-WOL { <# .SYNOPSIS Send a WOL packet to a broadcast address .PARAMETER mac The MAC address of the device […]