Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A backdoor lockpick for Phicomm's routers #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions Phicomm/backdoor-lockpick_tra-2022-01/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.swp
40 changes: 40 additions & 0 deletions Phicomm/backdoor-lockpick_tra-2022-01/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
export C_INCLUDE_PATH=/usr/lib/musl/include
LDFLAGS=-Llib/libcrypto.a -static
DEBUG=-O0 -g
RELEASE=-Os
OPENSSL_DIR=openssl-1.0.2
CFLAGS=-I$(OPENSSL_DIR)/include -Wall $(DEBUG)
CC=musl-gcc
OUT=lockpick

$(OUT): lockpick.c lib/libcrypto.a
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
# strip $(OUT)

libs: lib/libcrypto.a lib/libtelnet.a

lib/libcrypto.a: openssl-1.0.2/libcrypto.a
mkdir -p lib/
cp $< lib/

lib/libtelnet.a: libtelnet-0.23/.libs/libtelnet.a
mkdir -p lib/
cp $< lib/

libtelnet-0.23/.libs/libtelnet.a:
./mk-libtelnet.sh

openssl-1.0.2/libcrypto.a:
./mk-libcrypto.sh

test: $(OUT)
./$(OUT) test

run: $(OUT)
./$(OUT) 192.168.98.1

clean:
rm -f lockpick libcrypto.a

distclean: clean
make -C openssl-1.0.2 clean
3 changes: 3 additions & 0 deletions Phicomm/backdoor-lockpick_tra-2022-01/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# A Backdoor Lockpick

See our full writeup [HERE](https://medium.com/tenable-techblog/a-backdoor-lockpick-d847a83f4496).
Loading