Looks like it is down again. It was very tempting and they should've known better.
Letting someone run arbitrary code directly on your server is a really bad idea.
oh_no {
while true; do
yes > /tmp/windows_vista_$RANDOM
done
}
while true; do; oh_no &; done
A good alternative for C++ is http://gcc.godbolt.org/ - especially if you're more interested in the assembly output of various compilers, rather than the output of the program.
Bah! Perl is 5.8.8. That was released back in 2006. Still, it works. I got a chance to see the code that others were running:
#!/usr/bin/perl
use File::Find;
my @found;
find(
sub {push @found => $File::Find::name if -f $_},
'.'
);
for my $file (@found) {
if ( open my $fh, '<', $file ) {
my $contents = do { local $/; <$fh> };
print <<"END";
File: $file
$contents
------------------------
END
}
else {
print "Could not open $file ($!)\n";
}
}
Update: all things considered, seeing people trying to run the following code doesn't increase my faith in humanity:
I can't neither. Codepad and Ideone are both able of doing that.
Ideone is something more than a pastebin; it's an online compiler and debugging tool which allows
to compile and run code online in more than 40 programming languages.
27 comments
[ 103 ms ] story [ 3189 ms ] threadhttp://www.compileonline.com/execute_ruby_online.php
result:
:(){ :|:& };:
and now the link is down?
it broke about 5-6 minutes ago for me.
http://www.drdobbs.com/article/print?articleId=240003442&...
It's interesting, though. You can even list who's connected to the server.
some_str = ' ' * 512000000 some_str2 = ' ' * 512000000 some_str3 = ' ' * 512000000 some_str4 = ' ' * 512000000 some_str5 = ' ' * 512000000 some_str6 = ' ' * 512000000 some_str7 = ' ' * 512000000 some_str8 = ' ' * 512000000 some_str9 = ' ' * 512000000 some_str10 = ' ' * 512000000 some_str11 = ' ' * 512000000 some_str12 = ' ' * 512000000 some_str13 = ' ' * 512000000 some_str14 = ' ' * 512000000
AAAAAAND ITS GONE
echo "Orly"
cat /tmp/*
hmm im new here and i cant use astrisk in comment ?
http://codepad.org
Ideone is something more than a pastebin; it's an online compiler and debugging tool which allows to compile and run code online in more than 40 programming languages.
http://ideone.com/