r/shittyprogramming • u/Intrexa • Nov 05 '14
super approved Help me DOS a website
Someone killed me in an online game, and I want to get back at him! I know his website, so I heard I can DOS it. I found an old copy of MS-DOS on a floppy disk, how do I upload it to his website?
32
u/skiguy0123 Nov 05 '14
Change your gaming handle to the path of the file, then kill him in game and tea-bag his corpse to begin the upload.
26
u/treycook Nov 05 '14 edited Nov 05 '14
First, you're going to have to gain access to his D:\ drive. This way you can ensure a D:\DOS install to maximize brute force security breachage.
switch ($commentEffort > $adequate) {
case true:
postComment($content);
break;
case false:
print "Fuck it";
postComment($content);
break;
}
return "Success!";6
6
45
u/cmoneywork Nov 05 '14
Boot it up on your pc and type deltree /Y c:
this should rustle their jimmies effectively.
8
u/MikeOShay Nov 05 '14
Well the main difference between MS-DOS and regular DOS is that MS-DOS wears a bow and moves a lot faster.
Most people won't notice the difference, but you said this guy's a gamer, so if you really wanna take him down you're gonna need to get regular DOS.
5
u/FedoraWearingAlien Nov 06 '14 edited Nov 06 '14
Hackers like you should be killed, I was happily running my *nix box when some RUDE FUCK came and installed MS-DOS, he also tried to download windows server 2003 to upgrade but the "upgrade" "upgraded" my disk space to less than 50MB, I'm currently waiting for ebay to dispatch my floppy disk reader so I can downgrade to linux.
9
u/calsosta Nov 05 '14
Shittyprogrammed this to convert a website to DOS. Obviously depends on jQuery.
var test = $.getScript("http://terminal.jcubic.pl/js/jquery.terminal-0.8.8.min.js", function(){
var dom = {};
var currentParent = dom;
var currentDir = dom;
var path = "dom";
$(document).contents ().each (function processNodes(){
var prevCurrentParent = currentParent;
if (this.nodeType == 3){
if(currentParent.files === undefined) currentParent.files = [];
currentParent.files.push($(this).text());
} else {
var parName = $(this).attr("id") ? $(this).attr("id") : $(this).prop("tagName");
if( parName && currentParent[parName] === undefined ){
currentParent[parName] = {};
}
currentParent = currentParent[parName];
$(this).contents ().each (processNodes);
}
currentParent = prevCurrentParent;
});
window.dir = function(){
var filesAndFolders = Object.getOwnPropertyNames(currentDir);
var res = [];
filesAndFolders.forEach(function(dir) {
if(dir==='files'){
if(currentDir['files']){
currentDir['files'].forEach(function(file){
res.push(file);
});
}
} else {
res.push(dir)
}
});
return res.join("\n");
}
window.cd = function(dir){
if( dir === ".."){
path = path.split(".").pop().join(".");
eval("currentDir=" + path);
} else {
path += "."+dir;
currentDir = currentDir[dir];
}
return dir
}
$('body').terminal(function(command, term) {
if (command !== '') {
try {
if( command.indexOf(" ") !== -1 ){
command = command.split(" ").join("('") + "');";
} else {
command += "()";
}
var result = window.eval(command);
if (result !== undefined) {
term.echo(new String(result));
}
} catch(e) {
term.error(new String(e));
}
} else {
term.echo('');
}
}, {
greetings: 'DOSED',
name: 'DOS',
height: "100%",
prompt: 'C:> '});
});5
u/calsosta Nov 05 '14
Worth mentioning this thing is pretty cool.
I built a really slick JS CLI before but I lost the code :(
7
u/calsosta Nov 05 '14
Found it! It was slick but boy was this shittyprogramming.
I think I used to get paid per global variable
1
5
4
u/awshidahak Nov 05 '14
Pull his website up in Network Neighborhood and then upload the files from the diskette onto his root directory. Afterward, run setup.exe and the rest should be taken care of from there.
3
3
3
1
u/Msskue Nov 06 '14
On a serious note- I've been on the receiving end of an Apache Benchmark test attack about 6 months ago. If you don't know how time prevent them, it's enough to cripple a site that was thrown up for 15USD/month. Takes maybe 30 minutes to figure out how to mitigate them, though.
1
0
Nov 05 '14
[deleted]
12
u/lichorat Nov 06 '14
Not just that! He'll upgrade you to 512mb of RAM, so it will run super fast.
Also all connections from now on are done through dial up.
4
u/POTUS Nov 06 '14
512 MB is way more than any DOS system I ever had. Hell, I think my last one had only 30MB of hard drive space.
1
0
Nov 06 '14
[deleted]
8
u/lichorat Nov 06 '14
Wow. Literally using processor speed as a timer blows my mind. Now we have CMOS.
7
u/Crashmatusow Nov 06 '14
still happens(sort of) some modern games have state updates tied to frame updates.
2
u/RenaKunisaki Nov 09 '14
A lot of console games did that too, since on consoles you know the CPU speed is never going to change.
1
u/lichorat Nov 06 '14
I learned the hard way why not to tie rendering to framerate. (Although it made for an interesting game, and I made it into a "find-the-quirks" game which was more fun to watch people play anyways.
Also, I programmed in in VB.net.)
1
u/alanaktion Nov 07 '14
The fact this was still used in GTA IV makes it nearly impossible to beat the last mission if your PC isn't garbage :P
1
u/tHEbigtHEb Dec 13 '14
There was a need for speed games (rivals I think) which had it's frame rate locked to 30fps on PCs and it would go ape shit crazy if you were to unlock it by messing with game files. There's a hilarious video by a YouTuber called totalbiscuit covering this game.
1
Nov 07 '14
Not so fun fact: I discovered that everything in my C&C: The First Decade game pack older than C&C Generals was unplayable due to too-fast processors... :(
1
u/GMY0da Nov 07 '14
Can't you just under clock to like, .2 GHz and be done?
3
Nov 08 '14
That's still 200Mhz. The average 486 would be hitting 66Mhz on a good day.
1
u/GMY0da Nov 08 '14
Just... Wow. Just thinking about how that works, and if we played it now on a 4 GHz computer is crazy
1
u/RenaKunisaki Nov 09 '14
The NES had a blistering 1mhz 8-bit CPU and a whole 2048 bytes of RAM.
1
u/GMY0da Nov 09 '14
I really want to take mine apart now, but I figure I'll break it. Honestly, once of the coolest things for me is just seeing how technology progresses.
2
1
1
1
0
43
u/Simpfally Nov 05 '14
You're doing it wrong, first you need to ping him to get his IP.