index
:
bufflow.git
A collection of code examples e.g. a buffer overflow + exploit, crypter, shellcodes and more.
log msg
author
committer
range
master
about
summary
refs
log
tree
commit
diff
path:
root
/
exploit.py
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'exploit.py')
-rwxr-xr-x
exploit.py
2
1 files changed, 1 insertions, 1 deletions
diff --git a/exploit.py b/exploit.py
index 7b285bd..09f590d 100755
--- a/
exploit.py
+++ b/
exploit.py
@@ -80,4 +80,4 @@ if __name__ == '__main__':
print('Return Address: {}'.format(hex(new_return_addr_tuple[1])))
ret = run_exploit(new_return_addr_tuple[1], exploit_buffer, optional_destination_offset)
- print('Exit Code: {}'.format(ret))
+ print('Exit Code: {}'.format("SIGSEGV (-11)" if ret == -11 else str(ret)))