Thread: Login

Results 1 to 9 of 9
  1. #1
    sup h0wl's Avatar
    Join Date
    Oct 2014
    Gender
    male
    Location
    the arctic
    Posts
    624
    Reputation
    10
    Thanks
    1,945
    My Mood
    Sad

    Login

    This is my code
    Code:
    /*    */
    /*Main*/
    /*    */
    int main()
    {
     string password1="password";
     string password;
     
     cout << "NotFire Private Pass: " ;
     cin >> password;
     
     if (password == password1)
     {
         cout << "Hello";
         cout << "\n";
         system("pause");
         return EXIT_SUCCESS;      
                  
                  }   
                  else
                  {
                      cout << "Pass Incorrect";
                      cout << "\n";
                      
                      }
        
        
        system("pause");
        return EXIT_SUCCESS;
    
    
    	thread t1(togglesnotfire);
        thread t2(glowespnotfire);
    	thread t4(triggernotfire);
    	thread t6(bhopnotfire);
    	notfire();
        Mem.Process("csgo.exe");
    	ClientDll = Mem.Module("client.dll");
        t1.join();
        t2.join();
    	t4.join();
    	t4.join();
    }
    i've tried if statements, so if it equals the correct login it continues to execute the threads, but if they get it wrong it stops the cheat and closes down, now i'm having trouble actually getting it to continue to the threads, so can someone help me with this, i'm pretty sure its a simple mistake and i've tried looking at different examples on the internet.
    Last edited by sup h0wl; 08-02-2015 at 01:39 PM.

  2. #2
    Block4o's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Location
    /r/capitalism
    Posts
    197
    Reputation
    55
    Thanks
    8,563
    My Mood
    Asleep
    Try this, PSEUDO CODE I haven't tested it but it must work:
    Code:
    int main()
    {
     string password1="password";
     string password;
     pstart:
     cout << "NotFire Private Pass: " ;
     cin >> password;
     
     if (password == password1)
    	{
         cout << "Hello";
         cout << "\n";
         system("pause");
         return EXIT_SUCCESS;      
                  
    	}   
            else
            {
                      cout << "Pass Incorrect";
                      cout << "\n";
    				  goto: pstart;
            }
    P.S. Some people prefer not to use system(); because it's resource heavy, anti-virus programs "hate" it etc.

    P.S. 2 Ahh, and also just one more thing. I don't think you really need a new thread for every function of your hack. You'll be just fine with 2 or maximum 3. I use 2 threads for my own hack I use, trigger, bhop, rcs, and glow
    Last edited by Block4o; 08-02-2015 at 01:54 PM.

  3. #3
    sup h0wl's Avatar
    Join Date
    Oct 2014
    Gender
    male
    Location
    the arctic
    Posts
    624
    Reputation
    10
    Thanks
    1,945
    My Mood
    Sad
    Quote Originally Posted by Block4o View Post
    Try this, PSEUDO CODE I haven't tested it but it must work:
    Code:
    int main()
    {
     string password1="password";
     string password;
     pstart:
     cout << "NotFire Private Pass: " ;
     cin >> password;
     
     if (password == password1)
    	{
         cout << "Hello";
         cout << "\n";
         system("pause");
         return EXIT_SUCCESS;      
                  
    	}   
            else
            {
                      cout << "Pass Incorrect";
                      cout << "\n";
    				  goto: pstart;
            }
    P.S. Some people prefer not to use system(); because it's resource heavy, anti-virus programs "hate" it etc.

    P.S. 2 Ahh, and also just one more thing. I don't think you really need a new thread for every function of your hack. You'll be just fine with 2 or maximum 3. I use 2 threads for my own hack I use, trigger, bhop, rcs, and glow
    undeclared identifier, and i'm not sure what you did here, basically how my normal code worked, was when you typed in the correct pass, it would just say Hello, and exit, well i want it to continue onto my actual threads, but at the same time, keep where if you do the wrong password, it says, enter correct one, and you have to re open the program, this didn't work, as in it said undeclared identifier, and i don't really even understand what you did there, as in, it should just be telling it to go to the first thread and on from there?


    - - - Updated - - -

    Quote Originally Posted by Block4o View Post
    Try this, PSEUDO CODE I haven't tested it but it must work:
    Code:
    int main()
    {
     string password1="password";
     string password;
     pstart:
     cout << "NotFire Private Pass: " ;
     cin >> password;
     
     if (password == password1)
    	{
         cout << "Hello";
         cout << "\n";
         system("pause");
         return EXIT_SUCCESS;      
                  
    	}   
            else
            {
                      cout << "Pass Incorrect";
                      cout << "\n";
    				  goto: pstart;
            }
    P.S. Some people prefer not to use system(); because it's resource heavy, anti-virus programs "hate" it etc.

    P.S. 2 Ahh, and also just one more thing. I don't think you really need a new thread for every function of your hack. You'll be just fine with 2 or maximum 3. I use 2 threads for my own hack I use, trigger, bhop, rcs, and glow
    i also tried if (password == password1) then goto int main; or goto main;


    - - - Updated - - -

    Quote Originally Posted by Block4o View Post
    Try this, PSEUDO CODE I haven't tested it but it must work:
    Code:
    int main()
    {
     string password1="password";
     string password;
     pstart:
     cout << "NotFire Private Pass: " ;
     cin >> password;
     
     if (password == password1)
    	{
         cout << "Hello";
         cout << "\n";
         system("pause");
         return EXIT_SUCCESS;      
                  
    	}   
            else
            {
                      cout << "Pass Incorrect";
                      cout << "\n";
    				  goto: pstart;
            }
    P.S. Some people prefer not to use system(); because it's resource heavy, anti-virus programs "hate" it etc.

    P.S. 2 Ahh, and also just one more thing. I don't think you really need a new thread for every function of your hack. You'll be just fine with 2 or maximum 3. I use 2 threads for my own hack I use, trigger, bhop, rcs, and glow
    i've also tried a "continue" but that would continue though the code as if it got the wrong password, i'm at my witts end xD

  4. #4
    Block4o's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Location
    /r/capitalism
    Posts
    197
    Reputation
    55
    Thanks
    8,563
    My Mood
    Asleep
    Code:
    #include <iostream>
    #include <string>
    
    using namespace std;
    
    int main()
    {
    	string password1 = "password";
    	string password;
    
    	cout << "NotFire Private Pass: ";
    	cin >> password;
    
    	if (password != password1)
    	{
    		cin.ignore(1024, '\n');				//
    		cout << "Press enter to exit...\n";		//	This is System("Pause") alternative
    		cin.get();					 //
    		return 0; // you can use exit(0) if you want here
    	}
    	
    	cout << "Hello!\n";
    	cin.ignore(1024, '\n');
    	cout << "Press enter to continue...\n";	
    	cin.get();
    	// Here goes your other code... threads and etc.
    }
    P.M me if you want me to explain something, I tested the code and it works fine
    Last edited by Block4o; 08-02-2015 at 02:19 PM.

  5. #5
    Tae's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Location
    Incheon
    Posts
    4,724
    Reputation
    362
    Thanks
    713
    My Mood
    Paranoid
    I dont understand a thing that says

  6. #6
    Block4o's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Location
    /r/capitalism
    Posts
    197
    Reputation
    55
    Thanks
    8,563
    My Mood
    Asleep
    I think I understood it, the code I gave simply does this:
    1. If the password is wrong... Exit the whole program.
    2. If the password is right ... continue doing whatever it is supposed to do

    There are maybe better ways of writing this, but I don't have much time and this works

  7. #7
    sup h0wl's Avatar
    Join Date
    Oct 2014
    Gender
    male
    Location
    the arctic
    Posts
    624
    Reputation
    10
    Thanks
    1,945
    My Mood
    Sad
    Quote Originally Posted by Block4o View Post
    I think I understood it, the code I gave simply does this:
    1. If the password is wrong... Exit the whole program.
    2. If the password is right ... continue doing whatever it is supposed to do

    There are maybe better ways of writing this, but I don't have much time and this works
    ill try that out in a bit, but i just places the threads in side the if and right after that, and then the else, now ima try that.


    - - - Updated - - -

    Quote Originally Posted by Block4o View Post
    I think I understood it, the code I gave simply does this:
    1. If the password is wrong... Exit the whole program.
    2. If the password is right ... continue doing whatever it is supposed to do

    There are maybe better ways of writing this, but I don't have much time and this works
    i got it to work, thanks, for you helping me, but all i had to do was place my threads after the if statement, and i got it working 100% and even in game!

  8. #8
    I'M GONNA HAVE TO EAT EVERY F--KING CHICKEN
    MPGH Member
    Chris's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    1,086
    Reputation
    29
    Thanks
    2,780
    My Mood
    Psychedelic
    Code:
    void CorrectPassword(){
    	printf("Password correct.\n");
    	thread t1(togglesnotfire);
    	thread t2(glowespnotfire);
    	thread t4(triggernotfire);
    	thread t6(bhopnotfire);
    	notfire();
    	Mem.Process("csgo.exe");
    	ClientDll = Mem.Module("client.dll");
    	t1.join();
    	t2.join();
    	t4.join();
    	t4.join();
    }
    int main(){
    	std::string password1 = "password";
    	printf("NotFire Private Pass: ");
    	std::string password;
    	std::cin >> password;
    	if (password == password1) CorrectPassword();
    	else printf("Incorrect password.\n");
    	return 0;
    }
    Vouch Thread
    Thank or +rep me if I helped you ★


  9. #9
    sup h0wl's Avatar
    Join Date
    Oct 2014
    Gender
    male
    Location
    the arctic
    Posts
    624
    Reputation
    10
    Thanks
    1,945
    My Mood
    Sad
    Quote Originally Posted by darkwrath505 View Post
    Code:
    void CorrectPassword(){
    	printf("Password correct.\n");
    	thread t1(togglesnotfire);
    	thread t2(glowespnotfire);
    	thread t4(triggernotfire);
    	thread t6(bhopnotfire);
    	notfire();
    	Mem.Process("csgo.exe");
    	ClientDll = Mem.Module("client.dll");
    	t1.join();
    	t2.join();
    	t4.join();
    	t4.join();
    }
    int main(){
    	std::string password1 = "password";
    	printf("NotFire Private Pass: ");
    	std::string password;
    	std::cin >> password;
    	if (password == password1) CorrectPassword();
    	else printf("Incorrect password.\n");
    	return 0;
    }
    i got it to work, i just placed the threads after the if statement.

Similar Threads

  1. [need help] i can't login to korean warrock?!?!?!?!?!
    By blackdrag0 in forum WarRock Korea Hacks
    Replies: 3
    Last Post: 06-06-2007, 03:25 PM
  2. Login error
    By americanguy in forum WarRock Korea Hacks
    Replies: 6
    Last Post: 05-18-2007, 06:31 PM
  3. Help,i cant login
    By EyalZamir in forum WarRock Korea Hacks
    Replies: 6
    Last Post: 05-16-2007, 04:29 PM
  4. help login
    By alrpcool in forum WarRock - International Hacks
    Replies: 1
    Last Post: 03-26-2007, 06:52 PM
  5. Problem(with login)
    By 22061988 in forum WarRock - International Hacks
    Replies: 3
    Last Post: 11-01-2006, 12:07 AM