-
-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* moved `is-syscall` and `syscall-args` to gef-extras * moved the docs for `is-syscall` and `syscall-args` to gef-extras * [ci] changed the target binary for `nop` test
- Loading branch information
Showing
10 changed files
with
62 additions
and
350 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* -*- mode: c -*- | ||
* -*- coding: utf-8 -*- | ||
* | ||
* mmap-known-address.c : only mmap() at 0x1337000 and DebugBreak | ||
* | ||
* @author: @_hugsy_ | ||
* @licence: WTFPL v.2 | ||
*/ | ||
|
||
#include <stdio.h> | ||
#include <stdint.h> | ||
#include <stdlib.h> | ||
#include <unistd.h> | ||
#include <sys/mman.h> | ||
|
||
#include "utils.h" | ||
|
||
int main(int argc, char **argv, char **envp) | ||
{ | ||
void *p = mmap((void *)0x1337000, | ||
getpagesize(), | ||
PROT_READ | PROT_WRITE, | ||
MAP_ANONYMOUS | MAP_PRIVATE | MAP_FIXED, | ||
-1, | ||
0); | ||
|
||
if (p == (void *)-1) | ||
return EXIT_FAILURE; | ||
|
||
DebugBreak(); | ||
|
||
return EXIT_SUCCESS; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.