Skip to content

Commit

Permalink
chore: Update .gitignore and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
WangYihang committed Aug 28, 2024
1 parent e388484 commit e8e059c
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 3 deletions.
57 changes: 57 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,61 @@
# Prerequisites
*.d

# Object files
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb

# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf

# Apache HTTPd
.libs/*
*.la
*.lo
*.slo

# Visual Studio Code
.vscode/
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@
Starting the exploited demo server in Docker

```bash
docker compose up
docker run \
--rm \
--interactive \
--detach \
--tty \
-p \
4444:80 \
ghcr.io/wangyihang/apache-http-server-module-backdoor:master
```

Run the exploit script

```bash
python exploit.py [HOST] [PORT]
python exploit.py 127.0.0.1 4444
```

Example:
Expand Down
2 changes: 1 addition & 1 deletion modules.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod_backdoor.la: mod_backdoor.slo
$(SH_LINK) -rpath $(libexecdir) -module -avoid-version mod_backdoor.lo
DISTCLEAN_TARGETS = modules.mk
shared = mod_backdoor.la
shared = mod_backdoor.la

0 comments on commit e8e059c

Please sign in to comment.