[IMG]http://i.imgur.com/RGRV4.png[/IMG]
I've found that little tool that actually motivates me, I've been using it all day for everything. What is it? Roadmaps! Strive for goals and get instant satisfaction when you achieve them. This is going to be a little platformer with 4x4 tiles or something. Lots of boilerplate code to get this far but my roadmap tells me exactly what I need to code next. It's a wonderful motivational tool for me - and I can look back and see how far I've come.
[QUOTE=Lexic;39122724]Any brace style that isn't K&R is wrong.[/QUOTE]
I put braces on the same line as any control statement or function arg list, it's more compact and it doesn't reduce readability that much.
Did my first crypter in C# in two days :D heck, it was interesting experience :D!
Now gotta move to C++ because C# has dependencies <.<
[QUOTE=Lexic;39122724]Any brace style that isn't K&R is wrong.[/QUOTE]
Allman 4 lyfe
[QUOTE=HeatPipe;39123360]Did my first crypter in C# in two days :D heck, it was interesting experience :D!
Now gotta move to C++ because C# has dependencies <.<[/QUOTE]
C++ has dependencies too.
[QUOTE=HeatPipe;39123360]Did my first crypter in C# in two days :D heck, it was interesting experience :D!
Now gotta move to C++ because C# has dependencies <.<[/QUOTE]
Malware is useless.
C without the standard library is probably the closest you'll come to for having no dependencies since it only requires a compiler toolchain that can produce the kind of binaries you need
[editline]7th January 2013[/editline]
A program like that couldn't really [I]do[/I] anything, tho.
[editline]7th January 2013[/editline]
I mean, unless you implemented various standard library components yourself in which case it'd just be able to run on the platforms you implemented them for and have more dependencies again.
If you're on Linux then you can create your entire project from scratch and statically link against [url=http://www.musl-libc.org/]musl[/url] for a somewhat portable, dependency free experience. Pretty cool stuff.
[editline]7th January 2013[/editline]
Which is a C library, so that kinda nulls my point.
[QUOTE=cody8295;39123514]Malware is useless.[/QUOTE]
As long as it's for educational purposes, malware can teach you quite a bit. And it comes with the knowledge of how to remove it.
This is probably the smallest OS ever, guess what it does? NOTHING!
[code]using System;
using Mosa.HelloWorld.x86.Tests;
using Mosa.Kernel.x86;
using Mosa.Kernel.x86.Smbios;
using Mosa.Platform.x86.Intrinsic;
using Mosa.DeviceSystem;
using Keyboard = Mosa.Kernel.x86.Keyboard;
namespace Mosa.HelloWorld.x86
{
/// <summary>
///
/// </summary>
public static class Boot
{
public static ConsoleSession Console;
public static void Main()
{
Mosa.Kernel.x86.Kernel.Setup();
//DebugClient.Setup(Serial.COM1);
IDT.SetInterruptHandler(ProcessInterrupt);
Console = ConsoleManager.Controller.Boot;
Console.Clear();
Console.Color = Colors.White;
Console.BackgroundColor = Colors.Black;
CMOS cmos = new CMOS();
Mosa.DeviceDrivers.ScanCodeMap.US KBDMAP = new DeviceDrivers.ScanCodeMap.US();
byte LastScancode = 0x0;
// Console.Write("> ");
while (true)
{
//DisplayCMOS(cmos);
byte scancode = Keyboard.ReadScanCode();
if (scancode != LastScancode)
{
LastScancode = scancode;
KeyEvent keyevent = KBDMAP.ConvertScanCode(LastScancode);
string PressedChar = keyevent.Character.ToString();
Console.Goto(0, 0);
Console.Write(PressedChar);
}
DisplayTime(cmos);
Native.Hlt();
}
}
private static void DisplayTime(CMOS cmos)
{
Console.Goto(24, 52);
Console.Color = Colors.Green;
Console.Write(@"Time: ");
byte bcd = 10;
if (cmos.BCD)
bcd = 16;
Console.Color = Colors.White;
Console.Write(cmos.Hour, bcd, 2);
Console.Color = Colors.Gray;
Console.Write(':');
Console.Color = Colors.White;
Console.Write(cmos.Minute, bcd, 2);
Console.Color = Colors.Gray;
Console.Write(':');
Console.Color = Colors.White;
Console.Write(cmos.Second, bcd, 2);
Console.Write(' ');
Console.Color = Colors.Gray;
Console.Write('(');
Console.Color = Colors.White;
Console.Write(cmos.Month, bcd, 2);
Console.Color = Colors.Gray;
Console.Write('/');
Console.Color = Colors.White;
Console.Write(cmos.Day, bcd, 2);
Console.Color = Colors.Gray;
Console.Write('/');
Console.Color = Colors.White;
Console.Write('2');
Console.Write('0');
Console.Write(cmos.Year, bcd, 2);
Console.Color = Colors.Gray;
Console.Write(')');
}
private static uint counter = 0;
public static void ProcessInterrupt(byte interrupt, byte errorCode)
{
uint c = Console.Column;
uint r = Console.Row;
byte col = Console.Color;
byte back = Console.BackgroundColor;
Console.Column = 31;
Console.Row = 0;
Console.Color = Colors.Cyan;
Console.BackgroundColor = Colors.Black;
counter++;
Console.Write(counter, 10, 7);
Console.Write(':');
Console.Write(interrupt, 16, 2);
Console.Write(':');
Console.Write(errorCode, 16, 2);
if (interrupt == 14)
{
// Page Fault!
PageFaultHandler.Fault(errorCode);
}
else if (interrupt == 0x20)
{
// Timer Interrupt! Switch Tasks!
}
else
{
Console.Write('-');
Console.Write(counter, 10, 7);
Console.Write(':');
Console.Write(interrupt, 16, 2);
if (interrupt == 0x21)
{
byte scancode = Keyboard.ReadScanCode();
Console.Write('-');
Console.Write(scancode, 16, 2);
}
}
Console.Column = c;
Console.Row = r;
Console.Color = col;
Console.BackgroundColor = back;
}
}
}
[/code]
It would do something if the keyboard worked correctly. >.>
Also i switched to C# because of depression i got when you guys told me i am a fag for using VB.
[QUOTE=Se1f_Distruct;39123657]As long as it's for educational purposes, malware can teach you quite a bit. And it comes with the knowledge of how to remove it.[/QUOTE]
It's always something that sounds like a fun challenge, but it's also something that comes with the inherent problem of being illegal and an assholish thing.
[QUOTE=cartman300;39123708]
Also i switched to C# because of depression i got when you guys told me i am a fag for using VB.[/QUOTE]
The only difference in the syntax (among some other small things which people will be raging about in a moment)
[QUOTE=supersnail11;39123716]It's always something that sounds like a fun challenge, but it's also something that comes with the inherent problem of being illegal and an assholish thing.[/QUOTE]
What's illegal about writing malware, though
What if you want to spy on yourself or some shit
[editline]7th January 2013[/editline]
The excuse could be something like having a split personality
if that is even a thing
I can't remember whether modern medicine / psychology consider it a thing
Dissociative identity disorder (the newer name) is a thing
[QUOTE=esalaka;39123838]What's illegal about writing malware, though
What if you want to spy on yourself or some shit
[editline]7th January 2013[/editline]
The excuse could be something like having a split personality
if that is even a thing
I can't remember whether modern medicine / psychology consider it a thing[/QUOTE]
While it's all nice to write the virus you don't get to release it to anyone and see if it actually works.
[editline]6th January 2013[/editline]
Unless you're REALLY good at writing viruses and you never get caught (code red guys never got caught, right?)
[QUOTE=garry;39116310]Lolz, he can do what he wants as per license, I don't mind.[/QUOTE]
I wasn't really saying it one way or another, but I was talking to someone the other day who wanted to use a UI library and didn't pick GWEN because it "costs money". He didn't know about it being on github free. He also isn't displaying the license.
-snip-
[editline]6th January 2013[/editline]
So the thread isn't dead. Apparently he thinks that an MIT license means Garry doesn't care (which apparently he doesn't), and mentions that Garry made gwen - but in the readme you get when you buy it.
He's now included the MIT license but still doesn't mention that Garry made it in the post.
[QUOTE=supersnail11;39124153]-snip-
[editline]6th January 2013[/editline]
So the thread isn't dead. Apparently he thinks that an MIT license means Garry doesn't care (which apparently he doesn't), and mentions that Garry made gwen - but in the readme you get when you buy it.
He's now included the MIT license but still doesn't mention that Garry made it in the post.[/QUOTE]
With the MIT license you're free to do as you wish, and you don't have to mention the author or anything, or contribute back in any way.
[url=http://opensource.org/licenses/MIT]source[/url]
[code]
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[/code]
[img]http://puu.sh/1KBdo[/img]
Ummmm... anybody got an idea why i get this when i press any key?
It's written in C# and source can be found here
[url]http://svn.github.com/mosa/MOSA-Project.git[/url]
[QUOTE=T3hGamerDK;39124242]With the MIT license you're free to do as you wish, and you don't have to mention the author or anything, or contribute back in any way.
[url=http://opensource.org/licenses/MIT]source[/url]
[code]
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[/code][/QUOTE]
[code]
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
[/code]
and it's still rude to not mention him, even if it's legal
[QUOTE=supersnail11;39124299][code]
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
[/code]
and it's still rude to not mention him, even if it's legal[/QUOTE]
You just said yoursself that he includes the MIT with the software you get, just not on the post which is perfectly fine.
And as rude as it is, many pieces of software use other software without giving courtesy credits
If Garry wanted credit he would have chosen a different license. He obviously doesn't care about credit.
[QUOTE=Electroholic;39124551]If Garry wanted credit he would have chosen a different license. He obviously doesn't care about credit.[/QUOTE]
It's still funny to tell him off in front of all the people he accepted compliments from though.
[QUOTE=T3hGamerDK;39123477]C++ has dependencies too.[/QUOTE]
I know, I know. Let me rephrase my statement. With .NET languages you need .NET framework, which can render malware useless for some targets.
[QUOTE=cody8295;39123514]Malware is useless.[/QUOTE]
People wouldn't make malware if it would be useless.
[QUOTE=Se1f_Distruct;39123657]As long as it's for educational purposes, malware can teach you quite a bit. And it comes with the knowledge of how to remove it.[/QUOTE]
Yeah, I already learned quite a bit. I made my own XOR function (i know it's pretty basic stuff lol), I used CodeDOM to compile stub, learned quite more about files and streams.
I also tested crypter, and it rendered some anti-viruses useless (not main ones though).
[QUOTE=esalaka;39123838]What's illegal about writing malware, though
What if you want to spy on yourself or some shit
The excuse could be something like having a split personality
[/QUOTE]
Haha thanks for giving me laugh :D. But, I want to test some shit in future.. I want to make my botnet and turn zombies into processing machines. That power might be useful for something like Folding@Home or something better. Still not sure, I have plenty of time anyway :)
[QUOTE=HeatPipe;39125009]Haha thanks for giving me laugh :D. But, I want to test some shit in future.. I want to make my botnet and turn zombies into processing machines. That power might be useful for something like Folding@Home or something better. Still not sure, I have plenty of time anyway :)[/QUOTE]
Bitcoin botnet.
Don't laugh, it's a thing. Due to the nature of bitcoin you can spend the money anonymously and get away with it as long as they don't trace the original virus.
Then you can use it to buy mountains of heroin and alpaca socks.
Well, nevermind on the picture above, i figured out KeyEvents throw errors for some yet unknown reason and that hangs the OS, found a workaround. And when i press a key and hold it decodes to small letter that i'm pressing and when i let it go it decodes to a capital letter... heck, it will take some time until i rewrite the keyboard drivers in the kernel >.<
[editline]7th January 2013[/editline]
Also i've migrated from Cosmos to MOSA because i can control every aspect of the OS in MOSA and EVERYTHING's written in C#! :D
[QUOTE=Se1f_Distruct;39123657]As long as it's for educational purposes, malware can teach you quite a bit. And it comes with the knowledge of how to remove it.[/QUOTE]
And it can be hilarious.
I have two laptops, one of them is a media center for movies, music and stuff. Both of my room mates and myself use this laptop quite often.
About a couple years ago I wrote a program to remotely control it from another laptop or computer around the home network. Because why not.
Anyway, one day they were horsing around with the windows voice control thing. They'd say something like "Open Browser" and giggle to themselves. They were doing this for an hour and I was getting annoyed by it because I wanted to watch some movie or something.
Well anyway, my program had functions written in it that allowed me to open programs and web site addresses. I waited for one of them to say "Open Browser" again and I issued a command to open a website with the video of 2 girls 1 cup. Apparently neither one of them watched this movie(I guess it wasn't as popular around this time or something). It's been awhile, but the conversation went something like this:
[quote]Roommate A: Wtf?
Roommate B: OH dude its porn
Roommate A: Hit play, lets watch it
Roommate B: Alright
Roommate A: Lesbians omg *giggle*
Roommate B: thats hot *giggle*
Roommate A: fast forward
Roommate B: no man, they're kissing
...
Roommate A: fast forward, maybe they'll do it
Roommate A & B: *giggle*
Roommate A: what are they doing now?
Roommate B: maybe theyre goi---- WTF?
Roommate A & B: WTF
Roommate A & B: WTF
*more WTF spam*
Roommate A to Roommate B: WHY WOULD YOU BRING ME HERE YOU NASTY LOSER
Roommate B: I DIDN'T DO IT YOURE THE ONE WHO TOLD IT TO OPEN THE BROWSER
Roommate A: YOURE THE ONE CONTROLLING THE MOUSE
Roommate B: BUT YOU TOLD ME TO HIT PLAY
...
Roommate A: OMG GROSS I CANT WATCH ANYMORE
Roommate B: WTF ARE THEY DOING NOW WTF
*they keep watching*
Roommate A & B: OMFG
Roommate A: ARE THEY'RE EATING IT???
Roommate A & B: *gag*
Roommate B to Roommate A: WHY WOULD YOU WATCH THIS
Roommate A: YOURE WATCHING IT TOO[/quote]
Then they both ran off into the kitchen and got into a fight. It was pretty great. Had I known they never watched the video I'd have recorded it. They never suspected me.
I wrote malware that opened and closed the CD drive :(
[QUOTE=Hentie;39125363]I wrote malware that opened and closed the CD drive :([/QUOTE]
A window pops up
"Do you want a cupholder?"
The only option is yes and when you press it the cd drive opens
Sorry, you need to Log In to post a reply to this thread.