Root Forums Gallery Calendar Archives

Latest

Author:

Infexion

Title:

G++ Password Check

Article:

Simple password check for C++ using linux. There are some modifications that need to be done but it can also work for windows. The invisible typing portion of the password entry will not work in windows. If you need information on that please let me know.

Kyle@digitalplague.com
 
#include
#include
#include
#include

using namespace std;

void echo( bool on);
void encrypt (char crypt[]);

int main ()
{
    char tCom [ ] = "";
    string pass = "23456789";
    cout << "Enter Password: ";
    echo (false);
    cin >> tCom;
    echo (true);
    cout << '\n';
    encrypt(tCom);
    if(!pass.compare(tCom))
    {
        cout << "Password Confirmed: Access Granted \n";
        return 1;
    }
    else
    {
        cout << "Password Unconfirmed: Access Denied \n";
        return 0;
    }   
return 0;
}

void echo( bool on = true )
{
    struct termios settings;
      tcgetattr( STDIN_FILENO, &settings );
      settings.c_lflag = on
                       ? (settings.c_lflag |   ECHO )
                       : (settings.c_lflag & ~(ECHO));
      tcsetattr( STDIN_FILENO, TCSANOW, &settings );
}

void encrypt(char crypt[])
{
    for(int i=0; crypt[i] != '\0'; ++i) ++crypt[i];
}




April 24, 2012, 8:34 pm


Author:

Infexion

Title:

To The Driver...

Article:

To the driver of the Black Honda Accord:


Please refrain from being a huge asshole in traffic. If you realize that you must get into another lane to continue straight do not do the following... DO NOT swerve your car directly into the next lane without using your turning signals and slam on your brakes. That is completely inconsiderate. Not to mention there was not a single person behind me so you could have slowed down from 50 miles and hour to 35 (The Speed Limit) and gradually merged into my lane. Also, 'No Right on Red' means DO NOT turn while the light is RED.

The next time you are considering doing these illegal things consider that I have your information AND I know for a fact that we work at the same place. Have fun! Drive Safe!

INFO:

License Plate: GTM2083
Make: Honda
Model: Accord
Color: Glossy (Black)
Interior Color: Beige
Purchased from: Interstate Mitsubishi
Person Description: Tan, dark hair, and goatee w/ soulpatch.


Oh! I almost forgot! FUCK YOU!



March 30, 2012, 5:49 pm


Author:

Infexion

Title:

A+ Experience

Article:

So...


I went to take my A+ Essentials exam today. I was not very nervous when I was at my house but once I got into my car and started driving there, everything changed. I was so nervous I thought my heart was going to explode. I parked my car walked into a building only to find out it was the wrong one. The lady at the desk was nice enough to leave her spot and walk me to the correct place. I walked into the testing room and they set the testing PC up for me. I sat down and began the test.

Now I am getting a little more calm but panic sets in the second I hit the first question I do not know the answer to. I started to freak out doing calculations in my head as I answer each question. "How many more can I miss?" I stopped and closed my eyes for a moment and said to myself "Dude... Calm the fuck down... This is only making it worse." I snapped out of it and continued. Finally I reach the last question... "SHIT!" I do not know what the answer is... Is this what it is down to? Am I going to fail over this BS question about how to talk to a user? I made my selection and pressed 'next'.

Well the test is done... I feel rather defeated... what is my score? WOW! I got an 822/900. That is not too shabby! I click on the next button and... The Application freezes... I ask the lady is this normal? She says "Oh this thing has been giving us a lot of trouble lately." I immediately do not like that answer and inquire "Is my test score OK?" She says "Oh it should be..." I did not like that response. I asked if this was possible to fix. She tells me that we should reboot the machine to see if that helps... 

*Panic Ensues*

CTRL + ALT + DEL {Click} Shutdown {Choose} Restart...

Crap...

Now she goes back on to the machine and the test comes back up only to say that I have to take the test over again...
**I cannot explain anymore my chest hurts from thinking about it. The final Results are... she was able to print me my certificate and all was back to normal in the universe. I need a drink...


March 28, 2012, 11:29 pm


Author:

Infexion

Title:

Broster

Article:

Ladies and Gentleman.... I present to you.... The Broster! (Mix of 'Bro' and 'Hipster') <- Terrifying.




February 13, 2012, 11:49 am


Author:

Infexion

Title:

Movie: The Thing

Article:

I just watched the 2011 version of "The Thing". I have never seen the original movie but I have seen the version from 1982 and it was fantastic. The 2011 version is not scary by any means. It keeps you on the edge of your seat but  I am not exactly sure why. The graphics were very animated and the ending was really nothing different from the first one in the sense of...


SPOILER ALERT: Mostly everyone dies.

The only thing that sets this movie apart from the others is that it is new. New cast and what not. Personally I thought the 1982 version was so much better because they did not use CGI as much as they used animatronics and real special effects. Another thing that was fairly underwhelming was the speed of the movie. I felt everything was a bit... rushed. 90% of the cast was killed directly after the first escape of the monster alien. That I felt was a bit much. Towards the end you could basically tell what was going to happen next.

I did find it interesting how they tied it together with the 1982 version of the movie. They basically played this movie as the Prequel to the 1982 version. All in all I really need to download the other movie because I believe that is truly the one that is worth watching.

Overall the entire concept of the "The Thing" is just absolutely awesome. There is nothing more terrifying than this in my opinion.

9/10

If you have not watched the movie yet then please go out and watch it. It is amazing. I would recommend watching the 1982 version because it is SOOOOOoooooo much better.



January 24, 2012, 10:42 pm


Author:

Infexion

Title:

Pinguy

Article:

I installed Pinguy Linux on my laptop the other day and I started messing around with the idea of making a minimalist design. I have successfully made this. Screenshot below.




If you want your very own copy of PinguyOS linux then just click HERE.


January 21, 2012, 3:51 pm


Digitalplague © Copyright 2010 ( 4608 )