misc-scripts | Miscellaneous scripts and programs I want to share
kandi X-RAY | misc-scripts Summary
kandi X-RAY | misc-scripts Summary
Miscellaneous scripts and programs I want to share with the world
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of misc-scripts
misc-scripts Key Features
misc-scripts Examples and Code Snippets
Community Discussions
Trending Discussions on misc-scripts
QUESTION
I'm currently going through "Hacking; the Art of Exploitation", and am practicing writing shell code injections on some example code I wrote up.
I'm injecting shell code as an environment variable. In lldb I can see that I am overwriting the return address, and that the EIP is being set to the middle of my NOP sled. However, it then throws "EXC_BAD_ACCESS" and segfaults.
Here's the part of the stack with my shellcode:
...ANSWER
Answered 2017-Feb-19 at 21:01From the Apple developer documentation:
There are two ways to make the stack and heap executable:
Pass the -allow_stack_execute flag to the compiler. This makes the stack (not the heap) executable.
Use the mprotect system call to mark specific memory pages as executable. The details are beyond the scope of this document. For more information, see the manual page for mprotect.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install misc-scripts
You can use misc-scripts like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page