Added: 3 years ago
From: zaxey
Views: 28,289
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (109)

Sign In or Sign Up now to post a comment!
  • Its an viruss!!!! To je virus!!!!!!!

  • it sais the sleep and the blockinput functions are undeclared is there a way to fix that or something i might've forgotten?

  • can I make it open with some folder

  • Its saying

    cout << "\nHow have you been?n\";  is wrong

    and ive a missing terminating " character

    First time using this software or ever using C++

    if anyone could help i'd be really thankful (:

  • @AoifelCullen It should be "\nHow have you been?\n";

  • hey i'm just learning does the sleep function freeze the user for 'x' milliseconds? also the int main void, what's the purpose of it, to not return an int? do answer :)

  • @Migue261 late reply if you already know thats cool but sleep means countdown.

  • Chill out on the system() commands man, way too resource heavy, especially for a small program like this.

  • can u make sms bomber tut please

  • dude, you have error ;)

  • what's the name of the music (the first one)?

  • @JonaasK It's a song from windows XP. It is played after installing it.

    If you have XP you can find it at "C:\WINDOWS\system32\oobe\imag­es\title.wma".

    ps: I have no idea why it is in a folder named "images" oO.

  • main()void

  • crappy Windows Xp installation music

  • how do i apply this to a word document, or a program. 

  • C++ is very powerful and you making program like this? Whats wrong with you?

  • @UKWazzak C++ can and will be used to write very large commercial software, as well as small trivial programs. It's not in your place to tell people what they can and can't use a language for.

  • Comment removed

  • cool ville det kryptere adgangskoden ved at indtaste den, siger, viser ren stjerner som du skriver adgangskoden, ville en god løsning være at bruge en funktion, som ikke findes i ANCI C ville getch (); fangster en karakter og viser ikke på skærmen , Hvilket kan gøre er at udskrive en anden ting, så enkelt. Salu2s

  • why you put "void" in the main() parameter?

  • hello zaxy, i found your video very helpful and i am a begginer at this c++ i have been reading the books and i am about to start the course at my college, but can you help me to take this lesson on password protection and make it work with an application? even testing it out on a simple jpeg file would be helpful. please teach me how.. thank you.

  • hope that i will use it on the future..now im teaching simple codes...logic formulation

  • i'm getting expected error pls help meeeeee

  • 1:53 =??

  • Using Sleep and inputting the password directly into the file is probably not the safest bet.

    Such programs can easily be reverse-compiled to extract the entire source.

    Decent for beginners though, I'll give you that.

  • @akny007 - Good advise.!

    Additionally, This tutorial goes beyond showing how to code for password. Zackey should have stuck to the password turtorial and not added the fluff.

    Who cares how to have the computer ask "how are you?" Plus, the way that is coded allows for multiple answers to give you a false positive. Hard coding a single word limits the response.

    Coreybear1

  • @coreybear1 Perfectly said. Having an actual value for the password removes any chances of "false positives" as you stated.

    I'd rather have some program look for (using if's, arrays, and while's) a specific specified password, as opposed to random guessing.

  • my antivir shows that my program is a virus^^

  • @matpuz81 PM me your code, I'll see what's going on

  • sense you are hardcoding the password in the executable it be very easy to find the string in memory with a debugger, you should have the password hashed, MD5/SHA and salted.

  • @icon0x1 agreed - even hex'ing out the password wouldn't be a difficult task

  • I found this video (program) very intresting .. bravO zaxey :)

  • for windows 7 users it will find 41 errors you just need to delete the lines that it tells are errors and your program will run. :)

  • Why throw away C++s cross-platform capabilities by including windows.h and winable.h?

    You should really avoid doing that.

  • @rhillner the only alternative is to make it os independant, which is a lot trickier

  • Not really. Something like this is just as easier with the standard headers. It's only checking that the user entered a certain string.

  • do you know where to get an os independant library?, I have searched half the internet looking for one, and haven't found anything

  • Comment removed

  • Blockinput(true);

    it told me : `Blockinput' undeclared (first use this function)

    what do i supossed to do??

  • its BlockInput(true) actually

  • you have to have caps on Block and Input, anything in the windows.h is anoying like that

  • i get sleep(2000); uncleard or w/e help?

  • you have to write it with a capital S

  • I like the tutorial :D

  • Thanks you for the tutorial was very helpful and also the music is very cool, i like it.

  • You want to get Eclipse I'm no fan of Java but the C++ is fantastic!

  • if (password ** "tavares")

    Can ne1 tell meh wats rong

  • Comment removed

  • confusing!

  • errors keep poping up

  • cout << "\nHow have you been?\n";

    What is wrong?

  • Bad idea... One could simply open the compiled EXE into a text editor and find the password string as ASCII

  • u realize how stupid u sound right now, this is a fucking test, he isnt working ith nasa, hes teaching.

  • I know... but people who watch tutorials don't necesssarily know that.. this could be used in a less 'secure' context

  • but why would anyone even try to do so? It would be even harder to integrate this program into another, even so, physical access is required.

  • Makes sense.. In the end the author of this tutorial should merely note that this is not a 'hacker-safe' method

  • It tells me the getline (cin, answer) is undeclared

  • Is Dec-C++ the same as regular VC++?

  • Yes Dev C++ is the same except its free , i know this cause i have both

  • You can also get Visual C++ Express for free of course.. And w/ about CodeBlocks ??

  • Yes , that's true , but i was talking about Visual Basic 6 and thats not free that cost.

  • Cool videos, you make creative use of what you have.

  • NOW I CAN SEE BUT I DON´T UNDERSTAND!

  • i write code and i go to

    Execute and compile and run and some windows just show and disapper and nothing happen

  • Can't see

  • Everytime i press enter it just closes, any reason?

  • it maybe your compiler problem.

    if your using dev c++, you have to add:

    cin.clear();

    cin.ignore(255, '\n');

    cin.get();

    before returning...

  • what is the little "" sort of things after password

  • Show us the definition of BlockImput().

    You made that, to froze the mouse?

  • many ppl face this same error, even me too...

    when u type :

    cout << "\nHow Have you been?\n"

    wrong right?

    here's the solution :

    Sleep(2000); cout << "\nHow Have you been?\n" <<endl;

    in the video above only type Sleep(2000) without " ; "

    i've personally tried out. it works after editting

  • idiot html is disabled.

  • could you send the source file to me? By the way, where did you learn C++? I am currently trying to learn

  • THX MAN !!!

    You helped me verry mutch!

  • i am trying to learn c++ and c. how did u learn the language. what websites did u visit. what books did u read. etc

    THANX IN ANTICIPATION

  • i keep getting an error on "string answer" part

  • whats the song´s name

  • nice tutorial :)

  • lol i wrote "feeling sick" and i got

    Glad to hear that!

    -----

    But thanks for the tut :D

  • lol you could try setting lots of things (like 100)

  • hey string answer; is wrong...

    What he need that?

  • how to create a password usibg c++

  • if(password == "thecode") (

    What Have I done Wrong

  • if(password == "thecode)

    {

    //Your Code

    }

    That's right. Use these "curved" brackets ({}) instead of parantheses (()).

  • no just do this:

    not: if(password=="thecode)

    good: if(password == "thecode")

    see?

  • Yeah, sorry. Forgot the terminating quotation mark.

  • its suposed to be

    if(password == "thecode")

    {

  • ^^

    ...

  • Hey I've done everything you did.. But when I'm trying to compiling it's getting an error in the this line:

    cout << "\nHow are you?\n";

    What have I done wrong?..

  • my password part will not work i dont know why i put every thing u did help?

  • same ehre im getting that same exact error i think he using a different verion of devc but im not sure im using 4.9.9.2

  • I found out what was wrong.. Our program is just saying that it's missing some commands.. So just look at the textbox in the bottom and it will tell you what to do.. Mine is working now :D

  • hey man sorry to bother but i have done exactly as i think you said and its not working any way you can help me?

    thanks!!

  • Sadly, this is extremely unsafe. Just use ollyDbg, display all strings, and you got it (and this applies to all applications, especially small ones). Don't hard code a password and if you have to, then encypt it.

  • Actually, if the executable is small, you can even open it in notepad and see it. Talk about security, heh.. Either encypt/cipher, pack the exe (But if unpacked you can see the password again), or hide the stuff.

  • Bull shit you can open a exe and look at all its goodys.

  • You can open it with anything, because of it's small size. Notepad, Notepad++, Hex Workshop...

    But when there are bigger executables, you need a good disassembler or string finder. ollyDbg, HDasm, Unix "strings", everything works.

    FanOfGreenDay:

    These aren't "commands" (It's not a batch file), but instructions. The C++ source code gets interpreted, then "converted" to ASM (It's complex). The interpreter sometimes interprets stuff wrong, that's why sometimes simple programs get real big (500kB).

  • There are special flags for making it smaller (Check your Compiler Options for these), and a linker flag called "-s". These make the executables smaller and/or faster.

    But if you're a programming beginner, you don't need to fiddle arround with these.

  • This program is merely for learning. :)

  • @zaxey your teaching inappropriate ways

  • Hmm...How would I do this in Visual Studio? :\

    In Dev it's called Source file..what is it called in V.Studio?

  • i i use v5 and it doesnt work i get alot of errors help please

  • Thanks for this, I'm trying to learn how to program in c++ using Dev C++ but a lot of things teach you how to but by using Microsoft Visual C++...

    Your videos are awesome, Keep up the good work!

  • hey what means void ? :D (sorry for bad english - im german)

  • no your english is fine

  • zaxy can u help i wanna know how to make a .dll plz help

  • I will make a video soon for you! :)! God Bless!

  • I cant start or save it i have mad esomething rong but thx for this anyway Great work!

  • No problem send me your source code and I will tell you what is wrong with it. :)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more