### Install OpenDKIM and opendkim-tools Source: https://github.com/notthehiddenwiki/nthw/blob/nthw/Notes/phishing_for_dummies.md Installs the necessary packages for OpenDKIM functionality. Run this command on your server. ```bash apt-get update apt-get install opendkim opendkim-tools ``` -------------------------------- ### Install mailutils and Send Test Email Source: https://github.com/notthehiddenwiki/nthw/blob/nthw/Notes/phishing_for_dummies.md Installs the mailutils package for email sending and demonstrates how to send a test email. Replace with the recipient's email address. ```bash apt install mailutils echo "Message" | mail -s "Topic" ## Instead of , enter the address to which you want to send the message ``` -------------------------------- ### Multi-stage Dockerfile Example Source: https://github.com/notthehiddenwiki/nthw/blob/nthw/Notes/helpdesk_stories.md This Dockerfile demonstrates a multi-stage build process, separating build dependencies from the final runtime image. It's useful for creating smaller, more secure production images. ```dockerfile # Build phase FROM golang:1.16-alpine AS build WORKDIR /src COPY . . RUN CGO_ENABLED=0 go build -o /app main.go # Launch phase FROM alpine:3.14 AS execute RUN addgroup -S app && adduser -S app -G app USER app COPY --from=build /app /app CMD ["/app"] ``` -------------------------------- ### Install Postfix Source: https://github.com/notthehiddenwiki/nthw/blob/nthw/Notes/phishing_for_dummies.md Installs the Postfix mail transfer agent using apt-get. This is a prerequisite for configuring email sending capabilities. ```bash apt-get install postfix ``` -------------------------------- ### Docker-Compose Command to Run Application Source: https://github.com/notthehiddenwiki/nthw/blob/nthw/Notes/helpdesk_stories.md Starts all services defined in the docker-compose.yml file in detached mode. Ensure you are in the directory containing the docker-compose.yml file. ```bash docker compose up -d ``` -------------------------------- ### Manage GoPhish Service and Check Ports Source: https://github.com/notthehiddenwiki/nthw/blob/nthw/Notes/phishing_for_dummies.md Commands to set up and manage the GoPhish service, including creating log directories, making the script executable, and starting/stopping the service. Also checks if GoPhish is listening on configured ports. ```bash mkdir /var/log/gophish chmod +x /etc/init.d/gophish update-rc.d gophish defaults service gophish start service gophish status ## You should have seen Active: active (running) ss -l | grep "3333\|443" ## You should see that something is listening on port 3333 service gophish stop ``` -------------------------------- ### Sideload Magisk ZIP Source: https://github.com/notthehiddenwiki/nthw/blob/nthw/Notes/HowToStartWith/nethunter_tutorial.md Install Magisk by sideloading its ZIP file through ADB in recovery mode. ```bash .\adb sideload patch-to-your-magisk.zip ``` -------------------------------- ### Configure Postfix main.cf Source: https://github.com/notthehiddenwiki/nthw/blob/nthw/Notes/phishing_for_dummies.md Sets the myhostname and mydestination parameters in the Postfix main configuration file. Replace with your actual domain name. ```postfix myhostname = mydestination = $myhostname, , localhost.com, localhost ```