Skip to main content
Settings
Search
Appearance
Theme Mode
About
Jekyll v3.10.0
Environment Production
Last Build
2026-05-22 22:41 UTC
Current Environment Production
Build Time May 22, 22:41
Jekyll v3.10.0
Build env (JEKYLL_ENV) production
Page Location
Page Info
Layout default
Collection docs
Path _docs/wargames/overthewire/blacksun/blacksun2.md
URL /docs/wargames/blacksun/blacksun2/
Date 2026-04-07
Theme Skin
SVG Backgrounds
Layer Opacity
0.6
0.04
0.08

Blacksun2

By Amr

Level2 is a test application from a [pop3 library][] that's pretty buggy. The idea is to write a pop3 server to trigger a vulnerability (pick any you like :p) in the code and get a shell.

Estimated reading time: 0 minutes

Table of Contents

Source: This content is aggregated from overthewire (MIT). Visit the original repository for the latest version.

Level2 is a test application from a pop3 library that’s pretty buggy. The idea is to write a pop3 server to trigger a vulnerability (pick any you like :p) in the code and get a shell.

Notes

  • -fpic -fPIC was added to the compile options to remote DT_TEXTREL’s :p
  • If you’re feeling generous, perhaps drop the author a note about any bugs you find so that future versions of the library can be fixed.
  • ASLR remote fun!

Binary information

Binary information

Stack smashing protection (SSP): Disabled
Postition Independent Executable (PIE): Disabled
Address space layout randomisation (ASLR): Enabled
Non-executable pages: None / disabled
Code Location: /levels/2/libspopc-0.7, using poptest1.c, and associated library code
Location: /levels/level2