hacks
FreeBSD kernel stack overflows
by argp on Jul.03, 2009, under exploitation, freebsd, hacks, kernel, research, security
Last May (2008/05/30) I presented my research on FreeBSD kernel stack overflows at the University of Piraeus Software Libre Society, Event #16: Computer Security. The slides from my talk are now available from the research section of the census web page.
In the talk I explored in detail the process of exploiting kernel stack overflows in the 7.0 production release of the FreeBSD operating system. There were extensive examples and live experimentation, all of which are unfortunately not reflected in the supporting slides. The main contribution of the study is the development of a kernel exploitation algorithm and the presentation of comprehensive i386 kernel shellcode. Although the focus was on the then most current production release of FreeBSD (7.0), the presented algorithm and methodologies are applicable to both the latest stable (7.1) and current (8.0) FreeBSD versions.
exploiting the FreeBSD kernel memory allocator
by argp on Jun.12, 2009, under code, exploitation, freebsd, hacks, kernel, research, security
The new Phrack issue is out at last!
My contribution to Phrack issue #66 is an article on exploiting FreeBSD’s kernel memory allocator, or UMA – the universal memory allocator. The initial inspiration to work on this subject came to me from signedness.org challenge #3 by karl, therefore I felt it was the right thing to do to add karl as a co-author.
Issue #66 contains in total three articles by Greek authors, Exploiting DLmalloc frees in 2009 by huku and Exploiting TCP Persist Timer Infiniteness by ithilgore in addition to mine. And that’s just amazing!
lastfm.pl
by argp on Dec.31, 2008, under code, hacks
I have updated my last.fm irssi script:

linksys wrt54gl resurrection
by argp on Oct.20, 2008, under hacks
Last week I was experimenting with various changes to OpenWrt Kamikaze version 7.09 on my Linksys WRT54GL wireless router. The objective was to modify the Kamikaze firmware for WRT54GL in order to implement a rogue access point for use in various penetration testing contracts. I decided to start the whole endeavor since the Airsnarf Rogue Squadron firmware only supports the WRT54G model. After a lot of successful firmware flashings during testing, I eventually (and perhaps unavoidably) flashed my router with a corrupted firmware. The result was a dead WRT54GL that was not replying to pings, not even after a hard reset.
To resurrect it I followed void main’s WRT54G revival guide. Although the guide was written for the WRT54G model, it is mostly applicable to WRT54GL as well. One of the main differences is that I had to short pins 16 and 17, not 15 and 16 (see the photograph):

A rather important tip is that right after a successful flashing you should always enable the boot_wait NVRAM option in order to be able to use the TFTP bootloader. This will save you a lot of time if you are in the edit-compile-upload firmware-debug cycle.
Final note: I was triumphant and there was much rejoicing indeed.
ελληνικός ιστός εμπιστοσύνης (ενημέρωση)
by argp on Sep.11, 2008, under greek, hacks
Leave a Comment :authentication, gpg, keysigning, pgp, web of trust more...διαγραμματική παράσταση του ελληνικού ιστού εμπιστοσύνης (ενημέρωση)
by argp on Aug.26, 2008, under greek, hacks
Leave a Comment :authentication, gpg, graph, keysigning, pgp, web of trust more...διαγραμματική παράσταση του ελληνικού ιστού εμπιστοσύνης
by argp on May.11, 2008, under greek, hacks
Μετά τη συνάντηση της 23 Απριλίου στη Θεσσαλονίκη αποφάσισα να δημιουργήσω (και να συντηρώ) τη διαγραμματική παράσταση του ελληνικού ιστού εμπιστοσύνης. Προφανώς το εγχείρημα αυτό απαιτεί μεγάλο όγκο αρχικών δεδομένων και αυτοματοποίηση της διαδικασίας δημιουργίας του γράφου. Τη δεύτερη απαίτηση την ικανοποίησα με ένα απλό Perl πρόγραμμα μεγέθους μερικών δεκάδων γραμμών το οποίο κάνει χρήση του προγράμματος sig2dot.pl ως βιβλιοθήκη.
Για την ικανοποίηση της πρώτης απαίτησης μπορείτε να συνεισφέρετε στέλνοντάς μου στη διεύθυνση argp at domain cs.tcd.ie το αποτέλεσμα της εντολής gpg --list-sigs > $USER.txt.
Κάποια πρώτα αποτελέσματα υπάρχουν παρακάτω. Η πρόσφατη συνάντηση στη Θεσσαλονίκη είναι εμφανής στο πάνω δεξιά μέρος του γράφου.

ελληνικός ορθογράφος για το vim
by argp on Mar.30, 2008, under greek, hacks
Δυστυχώς η τελευταία έκδοση του vim δεν συμπεριλαμβάνει ελληνικό λεξικό για τον ενσωματωμένο ορθογράφο του. Ευτυχώς μπορούμε πολύ εύκολα να δημιουργήσουμε ένα χρησιμοποιώντας το ελληνικό λεξικό που παρέχει το OpenOffice:
$ cd ~/ $ wget http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/el_GR.zip $ unzip el_GR.zip
Στη συνέχεια κάνουμε εκκίνηση του vim, και δίνουμε την παρακάτω εντολή:
:mkspell el ~/el_GRΑφού έχουμε κλείσει το vim βλέπουμε ότι έχει δημιουργηθεί το αρχείο ~/el.utf-8.spl, το οποίο πρέπει να μεταφερθεί στον κατάλληλο κατάλογο:
$ mkdir -p ~/.vim/spell $ mv ~/el.utf-8.spl ~/.vim/spell $ rm -f el_GR.aff el_GR.dic el_GR.zip README_el_GR.txt
Από εδώ και πέρα τα πράγματα είναι απλά. Ο τρόπος με τον οποίο θα χρησιμοποιηθεί ο ελληνικός ορθογράφος κατά τη χρήση του vim είναι θέμα προσωπικής προτίμησης. Για λόγους πληρότητας παραθέτω παρακάτω τις συναφείς σειρές του ~/.vimrc αρχείου μου (τα λεξικά en_us και en_gb συμπεριλαμβάνονται στο vim):
map <F8> <Esc>:setlocal spell! spelllang=el<CR> map <F7> <Esc>:setlocal spell! spelllang=en_us<CR> map <F6> <Esc>:setlocal spell! spelllang=en_gb<CR>
irssi last.fm now playing script
by argp on Apr.28, 2007, under code, hacks
I wrote an irssi script that displays the most recent last.fm audioscrobbled track. You can find it here; it is published under a BSD-style license.
The script polls the specified last.fm profile for the most recent audioscrobbled track every $timeout_seconds (default is 120). The track is displayed only in the channels specified in the @channels array or, if @channels is undefined, in the active window. Be careful if you want to change the value of $timeout_seconds; too aggressive polling may get your IP blacklisted.
Put it in ~/.irssi/scripts/lastfm.pl, load it with /script load lastfm.pl and start a new session with /lastfm start your_lastfm_username. /lastfm help outputs usage details.
Suggestions and bug reports are welcome.
netris hack
by argp on Apr.23, 2007, under code, hacks
This patch I coded against netris version 0.52 allows you to send junk rows to your opponent. The default key to do this is h and the default number of rows to send is 1. You can change the former by remapping the keys (with the -k switch) and the latter with the new -j switch (see the output of netris -h for more details). Have fun and don’t be too mean.





