Skip to content

Instantly share code, notes, and snippets.

require [ "fileinto", "variables", "mailbox", "envelope" ];
if address :matches "delivered-to" "*+*@domain.com" {
set "lopart" "${1}";
} elsif address :matches "delivered-to" "*@domain.com" {
set "lopart" "${1}";
}
if mailboxexists "domain.com/${lopart}" {
fileinto "domain.com/${lopart}";
section .text
global _start
_start:
call _lib
jmp _expected
_lib:
push _exploited
ret
section .data
...
section .bss
...
section .text
global _start
_start: