BLOG


Welcome to the blog!


Deploying React with Apache

23/08/23

So you want to deploy your React app to a Linux server with Apache2..

In this guide, we make the following assumptions: You have an app called react-app and you want to deploy to server your-server.com and the package manager on your server is apt.

From your local react app folder, run the following command to create a chunked version ready for deployment, into a folder called build(npm) or dist(vite).

// from your local machine
npm run build

Now we want to..

Read more

Ubuntu as a Domain Controller

29/03/23

In this guide, we will be setting up Ubuntu as a domain controller with kerberos and samba.

sudo apt update && sudo apt upgrade -y
sudo passwd root
sudo hostnamectl set-hostname srv

At this point create one password for the user ‘root‘, because you will have to proceed as ‘su‘ instead of the command ‘sudo‘. Then switch to root user:

su
apt-get install samba krb5-config winbind net-tools smbclient -y

Three questions will popup. Answer the Default Kerbe..

Read more

Cheatsheet - SCP (Secure Copy)

13/03/23

Here is a cheatsheet for SCP (Secure Copy) - a program for transferring files over SSH.

Copy the file "foobar.txt" from a remote host to the local host

scp your_username@remotehost:foobar.txt /some/local/directory

Copy the file "foobar.txt" from the local host to a remote host

scp foobar.txt your_username@remotehost:/some/remote/directory

Recursively copy entire directories

scp -r user@your.server.example.com:/path/to/foo /home/user/Desktop/

Copy th..

Read more

How easy is it to hack wifi?

08/03/23

It's hard to imagine a world without Wi-Fi, but it's also important to remember that it's not entirely secure. Wi-Fi hacking attacks are becoming increasingly prevalent, and it's crucial to be aware of the potential dangers.

One of the most common Wi-Fi hacking attacks is the deauthentication attack. This attack involves sending deauthentication frames to a Wi-Fi access point or client, causing them to disconnect from the network. Once disconnected, the hacker can intercept and steal sensitiv..

Read more

How to Create a Server in Golang

07/03/23

Here's a basic example of a simple server in Golang.

We will be utilising the net/http package, which provides HTTP client and server implementations.

First, we will define the server routes.

func homePage(w http.ResponseWriter, r *http.Request) {
    fmt.Fprintf(w, "Welcome to the homepage!")
}

func main() {
    http.HandleFunc("/", homePage)
    http.ListenAndServe(":8080", nil)
}

In this example, the "http.HandleFunc()" method is used to creat..

Read more

About Me

03/03/23

HI! I'm Mitch. I'm a passionate software developer and cybersecurity researcher.

I plan to use this blog to write about cool technologies as I learn about them, and detail some projects I have done in the past.

Read more