Skip to content

Commit

Permalink
fix makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
velzie committed Oct 14, 2023
1 parent 881af88 commit 500466e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bin/asm.sh: src/main.sh obj/consts.sh src/macros.sh obj/malloc.bin obj/exec.bin obj/syscall.bin
bin/asm.sh: src/main.sh src/macros.sh obj/malloc.bin obj/exec.bin obj/syscall.bin obj/consts.sh
bin/bashpp src/main.sh -o $@

obj/consts.sh:
Expand Down
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ In all these examples, the injected code runs as the main process, meaning you c


## Is this a joke?
No.

# Installation
```bash
Expand All @@ -56,10 +55,8 @@ make install
```

# Usage
Once installed, in any shell you can run `source asm.sh`. Make sure to run `asm_init` before running any commands
Once installed, in any shell you can run `source asm.sh`. Make sure to run `asm_init` before running any commands.

Alternatively, you can grab the entire asm.sh from releases and include it inside your bash script if you don't want to manage dependencies.

Alternatively, you can grab the entire [asm.sh] from releases and include it inside your bash script if you don't want to manage dependencies.


Only amd64 is supported currently. ksh is supported but can be buggy sometimes. It may segfault instantly on your machine. I'm not entirely sure why
Only amd64 is supported currently. ksh is supported but can be buggy sometimes. It may segfault instantly on your machine, i'm not entirely sure why
2 changes: 1 addition & 1 deletion src/restore.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ int ret() {

// it crashes if i don't do this
// i have no idea why
int fd = open("/", 0, 0);
// int fd = open("/", 0, 0);

void *addr = (void *)0xffffffffffff;

Expand Down

0 comments on commit 500466e

Please sign in to comment.