Skip to content

Commit

Permalink
Add copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
rorymcnamara committed Aug 24, 2017
1 parent 5509c8c commit 34d3386
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions memfdcreate.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2017 Rory McNamara

# each syscall will subtract it's length from the SLEDLEN, so we know how many NOPs to write
SLEDLEN=$((${PAYLOADSIZE}/8))
SYSCALLS=()
Expand Down
2 changes: 2 additions & 0 deletions overwrite.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# Copyright (c) 2017 Rory McNamara

STARTTIME=$(date +%s)
SLEEPLEN=30
echo "Preparing for exploitation, finding LD_PRELOAD if necessary" >&2
Expand Down
2 changes: 2 additions & 0 deletions payload.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# Copyright (c) 2017 Rory McNamara

source utils.sh
source readsyms.sh

Expand Down
2 changes: 2 additions & 0 deletions readsyms.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# Copyright (c) 2017 Rory McNamara

shopt -s lastpipe # used for setting env vars in pipes to limit use of subshells
# https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header

Expand Down
2 changes: 2 additions & 0 deletions utils.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2017 Rory McNamara

declare -A hex
for ((j=1; j < 256; j++)); do
# we can't set \0 or \x0a in an array, so skip those, and we can check for them later. all other bytes are ok
Expand Down

0 comments on commit 34d3386

Please sign in to comment.