Skip to content

Commit

Permalink
add a pwn.conf to disable pwntools update checking
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Oct 4, 2022
1 parent b4f029f commit 3a72323
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions challenge/.pwn.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[update]
interval=never
4 changes: 3 additions & 1 deletion challenge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ COPY vm /opt/pwn.college/vm
COPY .tmux.conf /opt/pwn.college/.tmux.conf
COPY .gdbinit /opt/pwn.college/.gdbinit
COPY .radare2rc /opt/pwn.college/.radare2rc
COPY .pwn.conf /opt/pwn.college/.pwn.conf
RUN gcc /opt/pwn.college/setuid_python.c -o /opt/pwn.college/python && \
rm /opt/pwn.college/setuid_python.c
Expand All @@ -222,7 +223,8 @@ RUN ln -s /opt/pwn.college/vm/vm /usr/local/bin/vm
RUN ln -sf /home/hacker/.tmux.conf /root/.tmux.conf && \
ln -sf /home/hacker/.gdbinit /root/.gdbinit && \
ln -sf /home/hacker/.radare2rc /root/.radare2rc
ln -sf /home/hacker/.radare2rc /root/.radare2rc && \
ln -sf /home/hacker/.pwn.conf /root/.pwn.conf
RUN echo 'pwn.college{uninitialized}' > /flag && \
chmod 400 /flag
Expand Down
3 changes: 2 additions & 1 deletion challenge/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,6 @@ sidebarWidth=90
treeViewHeader=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x1\xec\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xff\0\0\0\x1\0\0\0\0\0\0\0?\0\0\0\x1\0\0\0\0\0\0\0@\0\0\0\x1\0\0\0\0\0\0\0n\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\xff\xff\xff\xff)
viewMode=List
END
cp -auv /usr/share/desktop-base/profiles/xdg-config/xfce4 /home/hacker/.config/
cp -u /opt/pwn.college/.pwn.conf /home/hacker/.pwn.conf
cp -au /usr/share/desktop-base/profiles/xdg-config/xfce4 /home/hacker/.config/
DISPLAY=:42 xfce4-session &

0 comments on commit 3a72323

Please sign in to comment.